|
|
(194 dazwischenliegende Versionen von 3 Benutzern werden nicht angezeigt) |
Zeile 1: |
Zeile 1: |
| | '''fdisk''' - Programm für die Erzeugung und Manipulation von [[Partitionstabelle]]n |
|
| |
|
| | == Beschreibung == |
| | {| class="wikitable big options" |
| | |- |
| | ! Modus !! Beschreibung |
| | |- |
| | | [[Fdisk/Interaktiv| Interaktiv]] || Menügesteuert |
| | * Abfrage der Parameter |
| | * Änderungen nach Bestätigung |
| | |- |
| | | Nicht-interaktiv || Steuerung Kommandozeilen-[[#Optionen|Optionen]] |
| | * Angabe von Optionen auf der [[Kommandozeile]] |
| | * Änderungen ohne Bestätigung |
| | |} |
|
| |
|
| | == Installation == |
| | ''fdisk'' ist Teil des Pakets [[util-linux]] |
|
| |
|
| '''fdisk (fixed disk) ist ein Kommandozeilen-Programm zur Partitionierung von Festplatten. fdisk gibt es für Windows und Linux. Man kann fdisk in Linux benutzen, um Partitionen anzuzeigen, anzulegen, zu manipulieren oder zu löschen'''.
| | == Aufruf == |
| | <syntaxhighlight lang="bash" highlight="1-3" line copy> |
| | fdisk -l [Gerät …] |
| | fdisk [Optionen] DATENTRAEGER |
| | fdisk [Optionen] Gerät |
| | </syntaxhighlight> |
|
| |
|
| Um fdisk zu benutzen, geben Sie fdisk und den Namen der Festplatte, die Sie partitionieren wollen, ein. Dies wird das fdisk Prompt eröffnen. Um beispielsweise die primäre SATA Festplatte zu partitionieren, benutzen wir den folgenden Befehl
| | == Konfiguration == |
| | === Umgebung === |
| | {| class="wikitable options" |
| | |- |
| | ! Option !! Beschreibung |
| | |- |
| | | FDISK_DEBUG=all || Debug-Ausgabe für fdisk |
| | |- |
| | | LIBFDISK_DEBUG=all || Debug-Ausgabe für libfdisk |
| | |- |
| | | LIBBLKID_DEBUG=all || Debug-Ausgabe für libblkid |
| | |- |
| | | LIBSMARTCOLS_DEBUG=all || Debug-Ausgabe für libsmartcols |
| | |- |
| | | LIBSMARTCOLS_DEBUG_PADDING=on || Sichtbare Auffüllzeichen verwenden |
| | |- |
| | | LOCK_BLOCK_DEVICE=<Modus> || Exklusive BSD-Sperre verwenden |
| | * Der Modus ist ''1'' oder ''0'' |
| | * Siehe --lock für weitere Details |
| | |} |
|
| |
|
| | === Dateien === |
| | # [[/etc/fstab]] |
|
| |
|
| =beispel=
| | <noinclude> |
| *1
| |
| # fdisk -l
| |
| Disk /dev/sda: 637.8 GB, 637802643456 bytes
| |
| 255 heads, 63 sectors/track, 77541 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 2624 20972857+ 83 Linux
| |
| /dev/sda3 2625 4582 15727635 83 Linux
| |
| /dev/sda4 4583 77541 586043167+ 5 Extended
| |
| /dev/sda5 4583 5887 10482381 83 Linux
| |
| /dev/sda6 5888 7192 10482381 83 Linux
| |
| /dev/sda7 7193 7845 5245191 83 Linux
| |
| /dev/sda8 7846 8367 4192933+ 82 Linux swap / Solaris
| |
| /dev/sda9 8368 77541 555640123+ 8e Linux LVM
| |
|
| |
|
| Disk /dev/sdb: 3.8 GiB, 4009754624 bytes, 7831552 sectors
| | == Anhang == |
| Units: sectors of 1 * 512 = 512 bytes
| | === Siehe auch === |
| Sector size (logical/physical): 512 bytes / 512 bytes
| | {{Special:PrefixIndex/{{BASEPAGENAME}}/}} |
| I/O size (minimum/optimal): 512 bytes / 512 bytes
| | * [[cfdisk]](8) |
| Disklabel type: dos
| | * [[mkfs]](8) |
| Disk identifier: 0x1c01bde6
| | * [[partx]](8) |
| | * [[sfdisk]](8) |
|
| |
|
| Device Boot Start End Sectors Size Id Type
| | === Dokumentation === |
| /dev/sdb1 8064 783
| | ; Man-Page |
| | ;Info-Page |
| | === Links === |
| | ==== Weblinks ==== |
| | # [https://linux.die.net/man/8/fdisk https://linux.die.net/man/8/fdisk] |
| | # [https://manpages.debian.org/stretch/manpages-de/fdisk.8.de.html https://manpages.debian.org/stretch/manpages-de/fdisk.8.de.html] |
| | # [https://wiki.ubuntuusers.de/fdisk/ https://wiki.ubuntuusers.de/fdisk/] |
|
| |
|
| Befehl '''fdisk''' [Optionen] DATENTRAEGER1551 7823488 3.7G b W95 FAT32
| | [[Kategorie:Partitionierung]] |
| *2
| | [[Kategorie:Linux/Befehl]] |
| # fdisk -l /dev/sda
| | {{DEFAULTSORT:fdisk}} |
| Disk /dev/sda: 637.8 GB, 637802643456 bytes
| | {{DISPLAYTITLE:fdisk}} |
| 255 heads, 63 sectors/track, 77541 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 2624 20972857+ 83 Linux
| |
| /dev/sda3 2625 4582 15727635 83 Linux
| |
| /dev/sda4 4583 77541 586043167+ 5 Extended
| |
| /dev/sda5 4583 5887 10482381 83 Linux
| |
| /dev/sda6 5888 7192 10482381 83 Linux
| |
| /dev/sda7 7193 7845 5245191 83 Linux
| |
| /dev/sda8 7846 8367 4192933+ 82 Linux swap / Solaris
| |
| /dev/sda9 8368 77541 555640123+ 8e Linux LVM
| |
| *3
| |
| # fdisk /dev/sda
| |
| WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
| |
| switch off the mode (command 'c') and change display units to
| |
| sectors (command 'u').
| |
| Command (m for help):
| |
|
| |
|
| # fdisk /dev/sda
| | </noinclude> |
| | |
| WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
| |
| switch off the mode (command 'c') and change display units to
| |
| sectors (command 'u').
| |
| Command (m for help): m
| |
| Command action
| |
| a toggle a bootable flag
| |
| b edit bsd disklabel
| |
| c toggle the dos compatibility flag
| |
| d delete a partition
| |
| l list known partition types
| |
| m print this menu
| |
| n add a new partition
| |
| o create a new empty DOS partition table
| |
| p print the partition table
| |
| q quit without saving changes
| |
| s create a new empty Sun disklabel
| |
| t change a partition's system id
| |
| u change display/entry units
| |
| v verify the partition table
| |
| w write table to disk and exit
| |
| x extra functionality (experts only)
| |
| Command (m for help):
| |
| =Quellen=
| |
| [ https://linux.die.net/man/8/fdisk https://linux.die.net/man/8/fdisk]
| |
| | |
| [https://manpages.debian.org/stretch/manpages-de/fdisk.8.de.html https://manpages.debian.org/stretch/manpages-de/fdisk.8.de.html]
| |
| | |
| [https://wiki.ubuntuusers.de/fdisk/ https://wiki.ubuntuusers.de/fdisk/]
| |
| | |
| [[Category:Linux:Storage]]
| |
fdisk - Programm für die Erzeugung und Manipulation von Partitionstabellen
Beschreibung
Modus |
Beschreibung
|
Interaktiv |
Menügesteuert
- Abfrage der Parameter
- Änderungen nach Bestätigung
|
Nicht-interaktiv |
Steuerung Kommandozeilen-Optionen
- Angabe von Optionen auf der Kommandozeile
- Änderungen ohne Bestätigung
|
Installation
fdisk ist Teil des Pakets util-linux
Aufruf
fdisk -l [Gerät …]
fdisk [Optionen] DATENTRAEGER
fdisk [Optionen] Gerät
Konfiguration
Umgebung
Option |
Beschreibung
|
FDISK_DEBUG=all |
Debug-Ausgabe für fdisk
|
LIBFDISK_DEBUG=all |
Debug-Ausgabe für libfdisk
|
LIBBLKID_DEBUG=all |
Debug-Ausgabe für libblkid
|
LIBSMARTCOLS_DEBUG=all |
Debug-Ausgabe für libsmartcols
|
LIBSMARTCOLS_DEBUG_PADDING=on |
Sichtbare Auffüllzeichen verwenden
|
LOCK_BLOCK_DEVICE=<Modus> |
Exklusive BSD-Sperre verwenden
- Der Modus ist 1 oder 0
- Siehe --lock für weitere Details
|
Dateien
- /etc/fstab
Anhang
Siehe auch
Dokumentation
- Man-Page
- Info-Page
Links
Weblinks
- https://linux.die.net/man/8/fdisk
- https://manpages.debian.org/stretch/manpages-de/fdisk.8.de.html
- https://wiki.ubuntuusers.de/fdisk/