I was working on reinstalling a system today that had 2x14TB RAID partitions that the client had requested used for backup storage. When working in linux the partition and most of the older standardized tools are limited to working with partitions with a maximum size of 2TB. To work around this problem one must use GNU Parted.
- First identify your disks using Fdisk
fdisk -l (or add sudo if on debian or ubuntu)
- Once you find the partition you want to edit enter parted
parted /dev/sdb
- From here you will want to first setup your GPT partition using the following command
mklabel gpt
- You will want to create a usable partition. In this example we are taking the full space of the drive.
mkpart primary 0 -1
- Exit parted with the quit command.
- Format your drives as you usually would. For example:
mkfs.ext4 -m1 /dev/sdb1
There ya go. Simple as that.
Additional Note: When formatting larger partitions you will want to use the -m switch in your format string to either increase or decrease the percentage of superblocks being used in the partition table. In this instance I’ve reduced it to 1% to give me more usable disk space.