Posts Tagged ‘hdd’

Formatting larger than 2 TB drive on Linux

January 17, 2014

A gpt partition table is needed when the drive is larger than 2 TB. That means used parted instead of fdisk. Here’s the process I followed for a 3 TB drive. (Note a lot of the stuff is specific to my hardware).

$ parted /dev/sdc
(parted) mklabel gpt
(parted) unit TB
(parted) mkpart primary 0.00TB 3.00TB
(parted) print
(parted) quit
$ mkfs.ext4 -L label /dev/sdc1
# Remove the reserved space since this is used for backup
$ tune2fs -m 0 /dev/sdc1

Some useful links on ext4 partition overhead and tuning.

Advertisements