3TB Disk on Linux

June 6, 2014

I have installed a 3TB disk on Linux, but fdisk isn't up to the job of creating partitions on it.

I need to use parted

# parted /dev/sdc
GNU Parted 2.3
Using /dev/sdc
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) mklabel gpt                                                      
(parted) mkpart pri 1 -1
(parted) quit                                                             
Information: You may need to update /etc/fstab.

Then you can create a file system on it:

# mkfs.ext4 /dev/sdc1

Update

If you get an error around "partitions not properly aligned", you'll need to do the partition create in a slightly different way. See http://superuser.com/questions/349887/gnu-parted-how-to-deal-with-the-error-about-proper-aligment-of-partitions

Tags: 3tb disk parted fdisk