mkfs
DisksAdvanced In real LinuxCreate a file system (format a partition)
Name: mkfs = make file system
This command needs a real Linux system; you can practise it in real Linux mode.
Description
mkfs creates a new file system on a partition, i.e. formats it, erasing whatever was there. It is a front end that calls specific tools such as mkfs.ext4, mkfs.xfs and mkfs.vfat.
Syntax
mkfs [-t TYPE] DEVICECommon options
| -t TYPE | Type, or use mkfs.ext4, mkfs.vfat directly |
| mkfs.ext4 / mkfs.xfs / mkfs.vfat | The command for one format, with all its options (mkfs.ext4 -L data /dev/sdb1 sets a label) |