Linux Befehl fdisk
Linux fdisk Programm ist eine Partitionstabelle zu erstellen und zu pflegen, die mit der Art der Plattenpartitionstabelle kompatibel ist Verzeichnis DOS, BSD oder SUN-Typ.
Grammatik
fdisk [必要参数][选择参数]
Erforderliche Parameter:
- -l Listet alle prime Partitionstabelle
- -u mit dem "-l" mit der Nutzung, zeigen die Anzahl der Partitionen
Selektionsparameter:
- -s <Partitionsnummer> Geben Sie die Partition
- -v Versionsinformationen
Menüanweisungen
- m: Menüs und Hilfeinformationen
- a: active Partition mit der Bezeichnung / boot-Partition
- d: löschen Partition
- l: Anzeige der Partitionstyp
- n: Neue Partition
- p: Partitionierungsdaten anzeigen
- q: Beenden ohne Speichern
- t: set die Partitionsnummer
- v: Überprüfen Sie Partition
- w: Änderungen speichern
- x: erweiterte Anwendungen, erweiterte Funktionen
Beispiele
Zeigt die aktuelle regionale Situation:
# 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
Jede Partition Vitrine von SCSI-Festplatte
# 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 table