How to create a large partition on a 4TB HDD

Dec 20, 2011 00:00 · 113 words · 1 minute read Linux

If you decide to create a large (greater than 2TB) partition under your Linux box, you will find that fdisk does not help you with it. The problem is that the MBR (used by fdisk) has a 2TB addressable limit. The GUID partition table (GPT) is the solution for this issue. So, you need a) support for GPT in the Linux kernel (CONFIG_EFI_PARTITION should be defined and should be ‘y’) and b) a GNU tool called parted.

Example of how to use GPT to create a large partition:

# parted /dev/sde
(parted) mklabel gpt
(parted) unit s
(parted) mkpart primary 2048 -1
(parted) quit

Links: