Normally an operating system is installed on the first disk /dev/sda. When you add a new disk OS will pick the next number as /dev/sdb. Use GNU Parted. – … Thanks for the help with parted, though, I just assumed it would be easier to specify the size of the drive, as per fdisk, which defaulted to using all the space. After doing this, data will still be recoverable. A. Partitioning Using Parted (for > 2GB Harddisk) (New) (Updated on 18 Jan 2020) B. Formatting; C. Mounting (including auto mount after reboot) D. … But it does remove the partition information so the entire disk is available for … # parted GNU Parted 2.3 Using /dev/sda Welcome to GNU Parted! I did create a primary partition, as that's all I really needed. To choose the GPT standard, pass in the disk you identified like this: sudo parted /dev/sda mklabel gpt If you wish to use the MBR format, type this instead: sudo parted /dev/sda mklabel msdos Create the New Partition. In this example, I will show you how to create primary partition, but the steps are the same for logical partitions. To illustrate I am using a Xen virtual disk which uses the naming convention as /dev/xvd. When you execute parted command without any argument, by default it selects the first hard disk drive that is available on your system. Thanks, I did end up using fdisk and it was a lot easier than parted. (parted) p Model: SMI USB DISK (scsi) Disk /dev/sdb: 15.9GB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags: Number Start End Size Type File system Flags 1 1049kB 15.9GB 15.9GB primary fat32 lba The actual difference has to do with the partitioning formats that these tools are manipulating. Parted can be used to do many low level partitioning tasks easily. In the following example, it picked /dev/sda automatically as it is the first hard drive in this system. Thanks for the help with parted, though, I just assumed it would be easier to specify the size of the drive, as per fdisk, which defaulted to using all the space.

• GPT Format: The parted command can create can be used to create Globally Unique Identifiers Partition Tables (GPT), while fdisk and cfdisk are limited to msdos partition tables. WARNING: The size of this disk is 4.5 TB (4473980190720 bytes). Once the format is selected, you can create a … GParted is free software. Actually I found Gparted as the most user friendly tool to create/delete/format partitions. I prefer ext4, you may want to use another format. The util fdisk doesn't support GPT. Disk /dev/sdb: 4473.9 GB, 4473980190720 bytes
• Larger disks: An msdos partition table can only format up to 2TB of disk space (although up to 16TB is possible in some cases). Thanks, I did end up using fdisk and it was a lot easier than parted. In order to use parted correctly, you will need a lot of knowledge on the physical structure of the disk such as the block size of the disk.

– …