mkfs

From RaySoft

mkfs is used to build a Linux file system on a device, usually a hard disk partition. filesys is either the device name (e.g. /dev/hda1, /dev/sdb2) or the mount point (e.g. /, /usr, /home) for the file system. blocks is the number of blocks to be used for the file system.[1]

Documentation

Implementations

Syntax

mkfs [PARAMETER ...] [DEVICE]

Parameters

-c
Check the device for bad blocks before building the file system.
-l FILE
Read the bad blocks list from FILE.
-t TYPE
Specifies the TYPE of file system to be built. If not specified, the default file system type (currently ext2) is used.

References

  1. man 8 'mkfs'