Linux mkdosfs Befehl
Linux Command大全
Der Linux-Befehl mkdosfs wird verwendet, um ein DOS-Dateisystem zu erstellen.
device gibt den Bezeichner des Geräts an, auf dem Sie ein DOS-Dateisystem erstellen möchten. Zum Beispiel /dev/hda1 etc. block_count ist die Anzahl der Blöcke, die Sie konfigurieren möchten. Wenn block_count nicht angegeben ist, berechnet das System automatisch die Anzahl der Blöcke, die der Größe des Geräts entsprechen.
mkdosfs [ -c | -l Dateiname ]
[ -f Anzahl der FATs ]
[ -F FAT_size ]
[ -i volume_id ]
[ -m message_file ]
[ -n volume_name ]
[ -r root_dir_entry ]
[ -s Sektor pro Cluster ]
[ -v ]
device
[ block_count ]
Parameter:
- -c überprüft vor der Erstellung des Dateisystems, ob Fehlerbahnen vorhanden sind.
- -l liest Fehlerbahn-Protokolle aus einer bestimmten Datei aus.
- -f gibt die Anzahl der Dateikonfigurationslisten (FAT, File Allocation Table) an. Der Standardwert ist 2 . Derzeit unterstützt das FAT-Dateisystem von Linux keine über 2 eine FAT-Tabelle ist. Dies sollte normalerweise nicht geändert werden.
- -F gibt die Größe der FAT-Tabelle an, was normalerweise 12 or 16 ein Tupel.12 Tupel werden normalerweise für Disketten verwendet,16 Bytes are used for partitions of general hard disks, also known as FAT16 Format. This value is usually selected by the system itself. On diskettes, use FAT16 It usually does not take effect, on the contrary, use FAT12 Also.
- -i Specifies the Volume ID. Generally, it is a 4 The number of bytes, like 2e203a47 . If not given, the system will generate it automatically.
- -m When the user tries to boot the system with this diskette or partition and there is no operating system on it, the system will give the user a warning message. This parameter is used to change this message. You can first edit the file with an archive editor, then specify this parameter, or use
- -m -
- The system will prompt you to enter this text directly. Pay special attention to not exceeding the string length in the file 418 Characters, including expanded tab symbols (TAB) and newline symbols (a newline symbol is counted as two characters in DOS!)
- -n Specifies the Volume Name, which is the disk label. Just like the format command under DOS, it can be given or not. There is no default value.
- -r Specifies the maximum number of files under the root directory. The so-called file count includes directories. The default value is on the floppy disk 112 or 224 On the hard disk, it is 512. Do not change this number unless necessary.
- -s The number of sectors per cluster. It must be 2 The exponent. However, unless you know what you are doing, do not give this value randomly.
- -v Provides additional information
Online Examples
Format the diskette in slot A to DOS format and set the label to Tester
mkdosfs -n Tester /dev/fd0
Linux Command大全