Mkfs: Unterschied zwischen den Versionen
Erscheinungsbild
	
	
| Keine Bearbeitungszusammenfassung | K Textersetzung - „== Parameter ==↵“ durch „== Argumente == “ | ||
| (53 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
| '''mkfs'''  | '''mkfs''' ('''m'''ake '''f'''ile '''s'''ystem) - Erstellt Dateisysteme | ||
| = Beschreibung = | |||
| = Installation = | |||
| = Syntax = | |||
|  # '''mkfs [Optionen] [-t Typ] [Dateisystemoptionen] Gerät [Größe]''' | |||
| '''mkfs | |||
| == Argumente == | |||
| ; Mögliche Geräte | |||
| * Festplattenpartitionen | |||
| * Dateien | |||
| == Optionen == | == Optionen == | ||
| Ohne Angabe des Dateisystems (-t) wird ein Ext2-Dateisystem erstellt | |||
| {| class="wikitable" | {| class="wikitable" | ||
| Zeile 21: | Zeile 20: | ||
| | -t || --type || gibt den Typ des zu erstellenden Dateisystems an | | -t || --type || gibt den Typ des zu erstellenden Dateisystems an | ||
| |- | |- | ||
| | - | | -V || --verbose || gibt ausführliche Meldungen aus, einschließlich aller dateisystemspezifischen Befehle | ||
| |- | |- | ||
| | -h || --help  || zeigt eine kurze Hilfe an und beendet das Programm | | -h || --help  || zeigt eine kurze Hilfe an und beendet das Programm | ||
| Zeile 27: | Zeile 26: | ||
| |} | |} | ||
| = Konfiguration = | |||
| == Dateien == | |||
| = | = Anwendung = | ||
| '''mkfs''' ein Front-End für die eigentlichen Programme zur Dateisystemerstellung.  | |||
| Eingabe von '''mkfs''' und zweimaliges Drücken der Tabulator-Taste listet die verfügbaren Dateisysteme auf: | * Eingabe von '''mkfs''' und zweimaliges Drücken der Tabulator-Taste listet die verfügbaren Dateisysteme (bzw. die entsprechenden Programme zu deren Erstellung) auf: | ||
|   # mkfs |   # '''mkfs''' | ||
|   mkfs         mkfs.cramfs  mkfs.ext2    mkfs.ext4    mkfs.minix   mkfs.ntfs      |   mkfs         mkfs.cramfs  mkfs.ext2    mkfs.ext4    mkfs.minix   mkfs.ntfs      | ||
|   mkfs.bfs     mkfs.exfat   mkfs.ext3    mkfs.fat     mkfs.msdos   mkfs.vfat |   mkfs.bfs     mkfs.exfat   mkfs.ext3    mkfs.fat     mkfs.msdos   mkfs.vfat | ||
| ohne explizite Angabe eines Dateisystemtyps wird ein Ext2-Dateisystem erstellt: | |||
|  # '''mkfs''' /dev/sdb1 | |||
|  mke2fs 1.44.5 (15-Dec-2018) | |||
|  Creating filesystem with 61293573 4k blocks and 15327232 inodes | |||
|  Filesystem UUID: 95501238-e062-43ac-a92c-5d42444fa061 | |||
|  Superblock backups stored on blocks:  | |||
|          32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,  | |||
|          4096000, 7962624, 11239424, 20480000, 23887872 | |||
|  Allocating group tables: done                             | |||
|  Writing inode tables: done                             | |||
|  Writing superblocks and filesystem accounting information: done | |||
| Erstellung eines Ext4-Dateisystems durch Angabe des Typs mit der Option '''-t''': | |||
|  # '''mkfs -t''' ext4 /dev/sdb1 | |||
|  mke2fs 1.44.5 (15-Dec-2018) | |||
|  Creating filesystem with 61293573 4k blocks and 15327232 inodes | |||
|  Filesystem UUID: 5d02f04a-ad69-459d-8d81-61ab9d7b25f5 | |||
|  Superblock backups stored on blocks:  | |||
|          32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,  | |||
|          4096000, 7962624, 11239424, 20480000, 23887872 | |||
|  Allocating group tables: done                             | |||
|  Writing inode tables: done                             | |||
|  Creating journal (262144 blocks): done | |||
|  Writing superblocks and filesystem accounting information: done | |||
| etwas ausführlichere Ausgabe durch Angabe der Option '''-V''': | |||
|  # '''mkfs -V -t''' ext4 /dev/sdb1 | |||
|  mkfs from util-linux 2.33.1 | |||
|  mkfs.ext4 /dev/sdb1  | |||
|  mke2fs 1.44.5 (15-Dec-2018) | |||
|  Creating filesystem with 61293573 4k blocks and 15327232 inodes | |||
|  Filesystem UUID: 10199b90-499b-4f56-9ebf-434f0d923021 | |||
|  Superblock backups stored on blocks:  | |||
|          32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,  | |||
|          4096000, 7962624, 11239424, 20480000, 23887872 | |||
|  Allocating group tables: done                             | |||
|  Writing inode tables: done                             | |||
|  Creating journal (262144 blocks): done | |||
|  Writing superblocks and filesystem accounting information: done | |||
| [[Kategorie:util-linux]] | |||
| [[Kategorie:Linux/Befehl]] | |||
| [[Kategorie:Linux/Dateisystem/Befehl]] | |||
| {{DEFAULTSORT:mkfs}} | |||
| {{DISPLAYTITLE:mkfs}} | |||
Aktuelle Version vom 1. Januar 2025, 16:43 Uhr
mkfs (make file system) - Erstellt Dateisysteme
Beschreibung
Installation
Syntax
# mkfs [Optionen] [-t Typ] [Dateisystemoptionen] Gerät [Größe]
Argumente
- Mögliche Geräte
- Festplattenpartitionen
- Dateien
Optionen
Ohne Angabe des Dateisystems (-t) wird ein Ext2-Dateisystem erstellt
| Option | Beschreibung | |
|---|---|---|
| -t | --type | gibt den Typ des zu erstellenden Dateisystems an | 
| -V | --verbose | gibt ausführliche Meldungen aus, einschließlich aller dateisystemspezifischen Befehle | 
| -h | --help | zeigt eine kurze Hilfe an und beendet das Programm | 
Konfiguration
Dateien
Anwendung
mkfs ein Front-End für die eigentlichen Programme zur Dateisystemerstellung.
- Eingabe von mkfs und zweimaliges Drücken der Tabulator-Taste listet die verfügbaren Dateisysteme (bzw. die entsprechenden Programme zu deren Erstellung) auf:
# mkfs mkfs mkfs.cramfs mkfs.ext2 mkfs.ext4 mkfs.minix mkfs.ntfs mkfs.bfs mkfs.exfat mkfs.ext3 mkfs.fat mkfs.msdos mkfs.vfat
ohne explizite Angabe eines Dateisystemtyps wird ein Ext2-Dateisystem erstellt:
# mkfs /dev/sdb1
mke2fs 1.44.5 (15-Dec-2018)
Creating filesystem with 61293573 4k blocks and 15327232 inodes
Filesystem UUID: 95501238-e062-43ac-a92c-5d42444fa061
Superblock backups stored on blocks: 
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 
        4096000, 7962624, 11239424, 20480000, 23887872
Allocating group tables: done                            
Writing inode tables: done                            
Writing superblocks and filesystem accounting information: done
Erstellung eines Ext4-Dateisystems durch Angabe des Typs mit der Option -t:
# mkfs -t ext4 /dev/sdb1
mke2fs 1.44.5 (15-Dec-2018)
Creating filesystem with 61293573 4k blocks and 15327232 inodes
Filesystem UUID: 5d02f04a-ad69-459d-8d81-61ab9d7b25f5
Superblock backups stored on blocks: 
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 
        4096000, 7962624, 11239424, 20480000, 23887872
Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (262144 blocks): done
Writing superblocks and filesystem accounting information: done
etwas ausführlichere Ausgabe durch Angabe der Option -V:
# mkfs -V -t ext4 /dev/sdb1
mkfs from util-linux 2.33.1
mkfs.ext4 /dev/sdb1 
mke2fs 1.44.5 (15-Dec-2018)
Creating filesystem with 61293573 4k blocks and 15327232 inodes
Filesystem UUID: 10199b90-499b-4f56-9ebf-434f0d923021
Superblock backups stored on blocks: 
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 
        4096000, 7962624, 11239424, 20480000, 23887872
Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (262144 blocks): done
Writing superblocks and filesystem accounting information: done