Now format and then mount the partition and add the same in /etc/fstab which controls the file systems to be mounted when the system boots. Just for curiosity, let’s see how this new partition is listed in fdisk. Set the partition table format to GPT (parted) mklabel gptĬreate the Primary partition and assign the disk capacity, here I am using 20GB (in your case it would be 2TB). Now its time to partition a new hard disk using parted command. Important: You need to be careful while deleting the partition. Use d switch for the command to delete the partition and w to write the changes and quit. In such cases, you can use fdsik to delete the same before using parted. Tip: If you are adding a physical hard disk, you may find that partitions already created. Once you added a disk, verify the partition table using same fdisk command as shown. # fdisk -lįor the purpose of this article, I am attaching a hard disk of 20GB capacity, which can be followed for disk larger than 2TB as well. First list the current partition details using fdisk command as shown.
0 Comments
Leave a Reply. |