How to format a partition on Linux using the mkfs command.

Posted: August 12, 2014. At: 8:02 PM. This was 4 years ago. Post ID: 7632
Page permalink.
WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters. These cookies expire two weeks after they are set.

The formatting of a hard disk partition on Linux is not very difficult if you use the right command. The mkfs command is used on Linux for this task; I will be showing a simple example of its usage here to make it clear how this is done.

This is a simple example; I am formatting a partition with the NTFS filesystem.

mkfs.ntfs -f /dev/sdc1

This will perform a quick format of the drive.

mkfs.ntfs /dev/sdc1

This example above will perform a full format, which is sometimes a good idea to do when you need more data integrity.

mkfs.ntfs -L  DOS /dev/sdc1

The above example will set the volume label to DOS.

No comments have been made. Use this form to start the conversation :)

Leave a Reply