Linux fdisk-Befehl
Linux fdisk ist ein Programm, das Partitionstabellen erstellt und verwaltet. Es ist kompatibel mit Partitionstabellen vom DOS-Typ und Plattenlisten vom BSD- oder SUN-Typ.
Syntax
fdisk [必要参数][选择参数]
Erforderliche Parameter:
- -l Alle Partitionstabellen auflisten
- -u mit-lZusammen verwenden, um die Anzahl der Partitionen anzuzeigen
Optionale Parameter:
- -s<Partitionsnummer> Partition angeben
- -v Versionsinformationen
Menübedienungsanleitung
- m: Menü- und Hilfeinformationen anzeigen
- a: Aktiv-Partition-Flag / Boot-Partition
- d: Partition löschen
- l: Partitionstypen anzeigen
- n: Eine neue Partition erstellen
- p: Partitionsinformationen anzeigen
- q: Beenden ohne Speichern
- t: Partitionsnummer festlegen
- v: Partitionsprüfung durchführen
- w: Änderungen speichern
- x: Erweiterte Anwendung, fortgeschrittene Funktionen
Beispiele
Aktuellen Partitionierungsstatus anzeigen:
# fdisk -l Disk /dev/sda: 10.7 GB, 10737418240 bytes 255 heads, 63 sectors/track, 1305 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 * 1 13 104391 83 Linux /dev/sda2 14 1305 10377990 8e Linux LVM Disk /dev/sdb: 5368 MB, 5368709120 bytes 255 heads, 63 sectors/track, 652 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk /dev/sdb doesn't contain a valid partition table
Die Partitionierungsinformationen jeder SCSI-Festplatte anzeigen
# fdisk -lu Disk /dev/sda: 10.7 GB, 10737418240 bytes 255 heads, 63 sectors/track, 1305 cylinders, total 20971520 sectors Units = sectors of 1 * 512 = 512 bytes Device Boot Start End Blocks Id System /dev/sda1 * 63 208844 104391 83 Linux /dev/sda2 208845 20964824 10377990 8e Linux LVM Disk /dev/sdb: 5368 MB, 5368709120 bytes 255 heads, 63 sectors/track, 652 cylinders, total 10485760 sectors Units = sectors of 1 * 512 = 512 bytes Disk /dev/sdb doesn't contain a valid partition tableWeitere Erweiterungen
Linux-Befehlsreferenz