Device refers to the device code you want to establish a DOS file system. Such as/dev/hda1. Block_count indicates the number of blocks you want to configure. If block_count is not specified, the system automatically calculates the number of blocks that match the device size for you.
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 check whether there is any bad track before establishing the file system.
- -L read the bad track records from the specified files.
- -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 two FAT tables. This usually does not need to be changed.
- -F specifies the size of the FAT table, usually 12 or 16-bit tuples. The 12-bit tuples are usually used for magnetic discs, and the 16-bit tuples are used for the partition of general hard disks, that is, the so-called FAT16 format. This value is usually selected by the system itself. FAT16 on a disk usually does not work, or FAT12 on a hard disk.
- -I specifies the Volume ID. Generally, it is a number with four tuples, such as 2e203a47. If you do not give it to the system, it will be generated by yourself.
- -M when the user tries to use this disk or shard to start the system, but there is no operating system on it, the system will give the user a warning message. This parameter is used to change the message. You can edit the file with this parameter or use
- -M-
- In this way, the system requires you to enter the text directly. Note that the string length in the file must not exceed 418 characters, including the expanded TAB and line feed characters (line breaks are counted as two characters under DOS !)
- -N indicates the Volume Name, which is the disk label. Like the format command under DOS, it can be left empty. No preset value.
- -R specifies the maximum number of files under the root directory. The number of files includes directories. The default value is 112 or 224 on the disk and 512 on the hard disk. Don't change this number.
- -S indicates the number of magnetic zones of each magnetic cluster. It must be the power of 2. However, unless you know what you are doing, do not give this value randomly.
- -V provides additional information
Instance
Format the disk in slot A to DOS and set the tag to Tester.
Mkdosfs-n Tester/dev/fd0