Formatting larger than 2 TB drive on Linux

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

Tags: , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: