How do I format/reformat a partition?

NOTE: The use of this command
will cause data loss. Be sure that this is not done on the root
filesystem, or a filesystem which you have data you wish to keep




If you wish to create a filesystem, or reformat a filesystem, you may
use the mkfs.* utilities. For instance, if you have a partition on
/dev/hda4, which does not have a filesystem on it, and you want to use
EXT3, you would issue the following command:



mkfs.ext3 /dev/hda4



Most of these utilities allow you to specify options for the filesystem, but for most cases, the defaults should work fine.

Your rating: None