Posted: . At: 8:02 PM. This was 10 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.


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


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.


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.