Latest web development tutorials

Linux mkdosfs command

Linux command Daquan Linux command Daquan

Linux mkdosfs command is used to create a DOS file system.

means the device you want to create a DOS file system device code. Such as / dev / hda1 and so on. block_count is the number of blocks you want to configure. If block_count not specified, the system will automatically block number of the device for you to calculate the size of the accord.

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 file system check before establishing whether there is a bad track.
  • -l have to read the bad track record from a given file.
  • -f specifies the file allocation table (FAT, File Allocation Table) number. The default value is 2. Linux currently does not support the FAT file system over two FAT tables. Usually this does not need to be changed.
  • -F Specifies the size of the FAT table, usually 12 or 16 bytes. 12 yuan group commonly used for floppy disk and 16-byte hard disk partition for ships, also known as FAT16 format. This value is normally the appropriate value system of their choice. FAT16 would not normally occur with the floppy disk, and vice versa on the hard disk using FAT12.
  • -i Specifies Volume ID. Usually a digital 4-bit groups, such 2e203a47. If you do not give yourself the system will generate.
  • -m When a user attempts to use this piece of floppy disk or boot partition, but not above the operating system, the system will give users some warning. This parameter is used to change the message. You can first use the edited file, and then specify with this parameter, or use
  • -m -
  • So the system will ask you to directly enter this text. Pay special attention to that file in the string length not more than 418 words, including expanded hurdle symbols (TAB) and line feed (newline number under DOS count two characters!)
  • -n specify Volume Name, it is the disk label. As in DOS format command under the same, can not give. No default value.
  • -r Specifies the maximum number of files under the root directory. Here the so-called number of files include catalog. The default is on the floppy disk is 112 or 224, 512 on the hard disk. Nothing will not change this number.
  • -s number of magnetic cluster (cluster) of each magnetic domain. It must be a perfect power of 2. But unless you know what you do, do not mess this value to.
  • -v additional posts

Examples

A slot of the floppy disk formatted in DOS format, and the label is set to Tester

mkdosfs -n Tester /dev/fd0

Linux command Daquan Linux command Daquan