Easy Tutorial
❮ Linux Comm Mv Linux Comm Renice ❯

Linux mkdosfs Command

Linux Command Manual

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

The device refers to the device identifier where you want to create the DOS file system, such as /dev/hda1, etc. block_count is the number of blocks you wish to allocate. If block_count is not specified, the system will automatically calculate the number of blocks suitable for 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 disk in drive A to DOS format and set the label to "Tester":

mkdosfs -n Tester /dev/fd0

Linux Command Manual

❮ Linux Comm Mv Linux Comm Renice ❯