How to create partitions over 2TB on Linux
- fdisk and cfdisk (from the util-linux package in Debian) can't do it. They have overflows at 2TB.
- fdisk refuses to do it
- cfdisk claims to do it, but the overflow is visible after a restart of cfdisk
- Citation: fdisk doesn't understand GUID Partition Table (GPT) and it is not designed for large partitions. In particular case use more advanced GNU parted(8).
- See also e.g. http://blog.jensthebrain.de/archives/2007/10/28/LVM-ueber-2-TB
- Install parted (e.g. from Etch)
- Install gnu-fdisk (e.g. from Etch-Backports, is based on libparted, installs diversions of fdisk and cfdisk. but can't do it alone, parted itself is needed, be aware of #445304 and #461888)
Use parted and GUID Partition Tables (GPT)
Step by step example
# parted /dev/sdb (parted) mklabel GPT (parted) mkpart primary ext3 0 100% (parted) name 1 vg01 (parted) set 1 lvm on (parted) print Disk /dev/sdb: 16.5TB Sector size (logical/physical): 512B/512B Partition Table: gpt Number Start End Size File system Name Flags 1 17.4kB 16.5TB 16.5TB vg01 lvm (parted) quit