mkfs

Aus Foxwiki


mkfs (make file system) erstellt Dateisysteme

Beschreibung

Installation

Syntax

# mkfs [Optionen] [-t Typ] [Dateisystemoptionen] Gerät [Größe]

Parameter

Als Gerät können Festplattenpartitionen, aber auch Dateien angegeben werden

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


Dokumentation

Man-Pages

Info-Pages

Links

Intern

Weblinks

Kontrollfragen

Testfrage 1

Antwort1

Testfrage 2

Antwort2

Testfrage 3

Antwort3

Testfrage 4

Antwort4

Testfrage 5

Antwort5