Linux mkdosfs command
Linux Command大全
The Linux mkdosfs command is used to create a DOS file system.
device refers to the device code of the DOS file system you want to create. Like /dev/hda1 etc. block_count is the number of blocks you want to configure. If block_count is not specified, the system will automatically calculate the number of blocks that match the size of the device.
mkdosfs [ -c | -l filename ]
[ -f number_of_FATs ]
[ -F FAT_size ]
[ -i volume_id ]
[ -m message_file ]
[ -n volume_name ]
[ -r root_dir_entry ]
[ -s sector_per_cluster ]
[ -v ]
device
[ block_count ]
Parameters:
- -c to check for bad tracks before creating a file system.
- -l to read bad track records from a specified file.
- -f specifies the number of file configuration tables (FAT, File Allocation Table). The default value is 2 . Currently, Linux's FAT file system does not support more than 2 a FAT table. Usually this does not need to be changed.
- -F specifies the size of the FAT table, which is usually 12 or 16 a tuple.12 Tuples are usually used on disk slices,16 bytes for partitioning on general hard disks, which is also known as FAT16 Format. This value is usually selected by the system itself. Use FAT16 It usually does not take effect, on the contrary, use FAT12 Also.
- -i Specifies Volume ID. Generally, it is a 4 The number of bytes, such as 2e203a47 . If not given, the system will generate it automatically.
- -m When the user tries to boot from 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 and then specify this parameter, or use
- -m -
- So the system will prompt you to enter this text directly. It should be noted that the string length in the file should not exceed 418 Characters, including expanded tab symbols (TAB) and newline symbols (a newline symbol in DOS counts as two characters!)
- -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 if it is not 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 A slot to DOS format and set the label to Tester
mkdosfs -n Tester /dev/fd0
Linux Command大全