unix

How do I create a partition larger than 2 TB on my Linux server?

If you attempt to create a partition larger than 2 TB using fdisk it doesn’t work, so instead you will need to use parted.

To create the partition, run parted as root.

(parted) mklabel gpt
(parted) mkpart primary 0 -1
(parted) set 1 lvm on

The label needs to be gpt if it’s larger than 2 TB. The second line allows you to use the whole disk for the partition. The last line enables LVM. You can opt not to use LVM if you’d like.

Click to comment

Leave a Reply

Your email address will not be published. Required fields are marked *

To Top