« 58:21/174 | Main | Back to school, part II »

September 02, 2005

Skipping bad blocks

The old Vaio laptop I have seems to have some bad blocks on the disk. Fabio suggested I make a file system that skips bad blocks. For example, with a Slackware install CD Fabio had lying around:

# mke2fs -c -c -j -m 1 -v /dev/hda1

This presumes the disk is already partitioned but nothing's been installed. The command doesn't seem to work with Ubuntu, because there's no badblocks command when you start installation.

It takes a lot longer to make the file system than to install the OS. Everything was proceeding quickly until it got to the bad part of the disk.

Posted by Mark at September 2, 2005 05:04 PM