fdisk - manipulate disk partition table

mail

Why can't I create a partition larger than 2TiB ?

Situation

I have a LARGE disk (let's say 4TiB) on which I'd like to create a single partition using the full disk space. Using fdisk as usual, I can not create a partition larger than 2 TiB, what's going on ?

Details

This happens on MBR-indexed disks : MBR uses 32 bit addresses, hence can only address 232 sectors :
1 sector	⇒ 512 bytes
232 sectors	⇒ 232*512 bytes = 2199023255552 bytes
2^32*512/1024/1024/1024/1024 = 2 TiB

Solution

Instead of MBR, use the GPT layout of partition tables, which can be done in fdisk with the create a new empty GPT partition table menu option, i.e. g.
mail

fdisk

Usage

Partition table manipulator for Linux

Flags

Flag Usage
-l
-l device
list the partition tables of devices mentioned in /proc/partitions, then exit.
list the partition tables for device, then exit.

Example

WARNING: Re-reading the partition table failed with error 16: Device or resource busy. after running fdisk on Red Hat :

Looks like everything you have to do is run :
partprobe

source : https://access.redhat.com/solutions/1137403