mkfs -t ext2 /dev/hda8
This command format partition /dev/hda8
Option -t ext2 refers to the filesystem type to create