[audio: http://validateyourlife.com/vylab/lingeek_20110917_mkfscommand.mp3%5D
Time: 06:27
Edify on the Go!

The bulk of this article is obviously going to be about the mkfs command and all of its awesome 5 options.

For someone who likes 1)CLI and 2)everything related to partitions, hard drives, and the like, this command holds obvious significance and is very dear to me!

  • -V Produces “verbose” output. V for verbose. Verbose just means “detailed” and displaying a lot of system-specific information during the execution of the command. The “-V” option normally isn’t used, but it’s very useful for someone testing/debugging and just those curious about the system interworkings of a command
  • [-t filesystem_type] This is an important option as it enables specification of the filesystem type to be used. Without it, a default filesystem type is used, in linux this is likely ext2 which is pretty useless because even the main linux filesystem is ext4. Plus, one of the best parts of formatting a drive is specifying the file system, so the -t option is an important one.
  • -c A useful safety and security option. I would recommend this option always being used with every implementation of the mkfs command because when you execute mkfs with the -c option you check the drive for bad blocks before building a file system, an excellent and important computer “house-keeping” thing to do!
  • -v Produces verbose output again but I think of the bad-block checking component
  • [-l filename] Reads bad blocks from whatever filename is specified.

Good Links for More Info

http://www.go2linux.org/mkfs-linux-command-line
http://linux.die.net/man/8/mkfs
http://www.cyberciti.biz/faq/howto-format-create-linux-filesystem/

About V.P.

meh meh.

Leave a comment