parted

Univerzális partícionáló eszköz

Disk elemzése

sudo parted /dev/sda print

Model: ATA OCZ-VERTEX2 (scsi)
Disk /dev/sda: 115GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 538MB 537MB primary ext4 boot
2 538MB 97.2GB 96.6GB primary lvm

sudo parted /dev/sda unit GiB print

Model: ATA OCZ-VERTEX2 (scsi)
Disk /dev/sda: 107GiB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 0.00GiB 0.50GiB 0.50GiB primary ext4 boot
2 0.50GiB 90.5GiB 90.0GiB primary lvm

Partícionálás 1 paranccsal

parted -s /dev/sda \ mklabel gpt \ mkpart primary ext4 2048s 4000000s \ mkpart primary swap 4000001s 8000000s \ mkpart primary ext4 8000001s 7234521230s \ set 1 boot on