![]() Next, create the mount points sudo mkdir /mnt/cloud1Īnd with that you should now be able to successfully access the content from the /dev/sda1 device under /mnt/cloud1. I use the mount points /mnt/cloud1 through /mnt/cloud3 to mount three drives but your location can obviously be any location that you like! I use the editor nano for this purpose sudo nano /etc/fstabĪdd a new line in this file containing the following information:īelow you can see my fstab file for three cloud storage points # Cloud storage TYPE="ext4" PARTLABEL="primary" PARTUUID="d37fecad-5236-4a52-be97-c11f8abeb8dd"Īnd open the fstab file to specify where you want your drives to be mounted upon boot. ![]() Get the UUID for the drive that you want to mount sudo blkid Make sure NOT to format the entire drive /dev/sda instead of the partition /dev/sda1 4. Next, you need to format the previously created partition sudo mkfs.ext4 /dev/sda1 The operation has completed successfully. OK writing new GUID partition table (GPT) to /dev/sda. Hex code or GUID (L to show codes, Enter = 8300):įinally, type “w” to write the changes to the drive and confirm by typing “Y” Command (? for help): w Next, create a new GPT partition table by typing sudo gdisk /dev/sdaĬreate a new partition by typing n followed by the partition number 1 Command (? for help): nĪnd agree to all further prompts First sector (34-11721045134, default = 2048) or : Note that this will make any data on your drive inaccessible! Absolutely make sure to have a backup before proceeding 2. THIS WILL OVERWRITE EXISTING PARTITIONS!! dev/sda) using sudo fdisk -lįound valid GPT with protective MBR using GPT.Īnd delete all existing partitions Command (? for help): dįinal checks complete. This step is optional if you are using new drives, but if you have previously used this hard drive in say a Windows machine, you first will need to remove the old partitions on the drive. A new (or used) hard drive which you have recently connected to your machine.Additionally, I also show how to fuse together different hard drives, to make it them appear as one large hard drive which can be used e.g. First, I explain how to quickly partition new hard drives using gdisk, then I show you how to format a hard drive using the ext4 file system, and finally how to auto mount hard drives in Linux. This blog post describes how to partition and format a disk on Ubuntu 20.04. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |