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

Linux mkfs command

Linux mkfs command

Linux Command Reference Linux Command Reference

The Linux mkfs (short for make file system) command is used to create a Linux file system on a specific partition.

**Usage**:

mkfs [-V] [-t fstype] [fs-options] filesys [blocks]

**Parameters **:

Example

Create an msdos file system on /dev/hda5, check for bad sectors at the same time, and list the process in detail:

mkfs -V -t msdos -c /dev/hda5

Format the sda6 partition to ext3 format



mkfs -t ext3 /dev/sda6  

Note: The file system here needs to be specified, such as ext3, reiserfs, ext2, fat32, msdos, etc.

Linux Command Reference Linux Command Reference