Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Linux mkdosfs command

Linux mkdosfs command

Linux Command Reference Linux Command Reference

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

device refers to the device for which you want to create a DOS file system, such as /dev/hda1, etc. block_count is the number of blocks you wish to configure. If block_count is not specified, the system will automatically calculate the number of blocks matching the device size.



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:

Example

Format the floppy disk in drive A to DOS format and set the label to Tester

mkdosfs -n Tester /dev/fd0

Linux Command Reference Linux Command Reference