How to create partitions over 2TB on Linux

Problems

Solutions

  • 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)

How-To

Short

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