YouTip LogoYouTip

Linux Comm Mkfs

# Linux mkfs Command [![Image 3: Linux Command Manual](#) Linux Command Manual](#) The Linux mkfs (full English name: make file system) command is used to create a Linux file system on a specific partition. **Usage**: mkfs filesys **Parameters**: * device: The hard disk partition to be checked, for example: /dev/sda1 * -V: Verbose mode * -t: Specify the file system type, the default for Linux is ext2 * -c: Check the partition for bad blocks before creating the file system * -l bad_blocks_file: Add the bad block data to the bad_blocks_file * block: Specify the block size ### Examples Create an msdos file system on /dev/hda5, check for bad blocks, and display 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 type must be specified here, such as ext3; reiserfs; ext2; fat32; msdos, etc. [![Image 4: Linux Command Manual](#) Linux Command Manual](#)
← Linux Comm SfdiskLinux Comm Losetup β†’