Linux: Festplatten richtig und komfortabel partitionieren

fdisk-Beispiel

Das folgende Beispiel zeigt, wie auf einer 16 GByte großen Festplatte eine zusätzliche Linux-Partition eingerichtet wird. Bei der Festplatte handelt es sich um die zweite IDE-Festplatte im Rechner. fdisk wird deswegen mit dem Parameter /dev/hdb gestartet.

Das Kommando "P" gibt Auskunft über den aktuellen Zustand der Festplatte. Die Festplatte ist 255 * 63 * 2055 * 512 Byte = 16.120 MByte groß. Ein Zylinder ist 16.065 * 512 Byte = 7,8 MByte groß.

Es gibt eine primäre Partition (13 Zylinder, 102 MByte, FAT-Dateisystem für DOS/Windows) sowie eine erweiterte Partition (alle weiteren Zylinder, 16.018 MByte). Darin befinden sich zurzeit fünf Linux-Datenpartitionen und eine Linux-Swap-Partition. In der erweiterten Partition sind die Sektoren 1334 bis 2055 noch frei (5663 MByte).

root# fdisk /dev/hdb
The number of cylinders for this disk is set to
2055. There is nothing wrong with that, but this
is larger than 1024,and could in certain setups
cause problems with:
1) software that runs at boot time
(e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p
Disk /dev/hdb: 255 heads, 63 sectors, 2055 cylinders
Units = cylinders of 16065 * 512 bytes


Device Boot Start End Blocks Id System
/dev/hdb1 * 1 13 104391 6 FAT16
/dev/hdb2 14 2055 16402365 5 Extended
/dev/hdb5 14 17 32098+ 83 Linux
/dev/hdb6 18 50 265041 82 Linux swap
/dev/hdb7 51 369 2562336 83 Linux
/dev/hdb8 370 687 2554303+ 83 Linux
/dev/hdb9 688 1006 2562336 83 Linux
/dev/hdb10 1007 1333 2626596 83 Linux