Whole document tree 5. Format the new diskUse the following command to format Linux partitions using ext2fs on the new disk:
To check the disk for bad blocks (physical defects), add the -c option just before /dev/hdb1. If the new disk will have more than one Linux partition, format the other partitions with mkfs.ext2 /dev/hdb2, mkfs.ext2 /dev/hdb3, and so on. Add the -c option if desired.
To format a swap partition, use this command:
Again, you can add the -c option before /dev/hdb1 to check for bad blocks. |