bad sectors
Posted: 11 May 2012, 06:34
Hi,
I recently (well, not recently, but I recently discovered it) ran into some bad sectors in my bubba. I don't know why this happened or how, and I have thought that drives are supposed to relocate bad sectors behind the scenes. Well, either way, I now have some holes in the drive (and filesystem) that seem to be writable but not readable. Also, trying to read them causes SATA link resets and it in turn makes B3 extremely unresponsive...
During an attempt to fix the issue (e2fsck -c) I have sadly managed to make my b3 unbootable, presumably due to unfixable filesystem errors in /home (e2fsck failed to relocate a bitmap that now collides with blocks allocated into the badblock inode). Well, sad, that. The next step was the rescue image. First attempt failed, so I thought I must have made a mistake in creating the USB disk, started over with mkfs.vfat, etc. and on the second try, forgot to edit bubba.cfg and had my /home formatted. Well, worse thing happened, but I would like to point out that the default of "erase everything" is a tad bit dangerous. (Yes, I have mostly everything mirrored somewhere, but it's still quite annoying.)
Anyway, back to the problem. Of course, the reinstall happily wiped the bad block information from the filesystem, so I am at square one (with the benefit of not having to deal with corrupted files that are all gone anyway). How should I go about this? Right now I am running badblocks, stashing the list in a file, so at some point I can try to do a e2fsck -l and hope it goes better than the last time.
Do you think I should try to get the drive replaced? (It is the original 1TB drive that came with B3.) Or should I just keep around the list of bad blocks and hope it doesn't get worse? Is there a better filesystem (say, ext4?) that would cope better with bad blocks than the default ext3? (I most importantly mean that even if the filesystem was mostly usable for normal operation, e2fsck persistently died with bitmap relocation error).
I recently (well, not recently, but I recently discovered it) ran into some bad sectors in my bubba. I don't know why this happened or how, and I have thought that drives are supposed to relocate bad sectors behind the scenes. Well, either way, I now have some holes in the drive (and filesystem) that seem to be writable but not readable. Also, trying to read them causes SATA link resets and it in turn makes B3 extremely unresponsive...
During an attempt to fix the issue (e2fsck -c) I have sadly managed to make my b3 unbootable, presumably due to unfixable filesystem errors in /home (e2fsck failed to relocate a bitmap that now collides with blocks allocated into the badblock inode). Well, sad, that. The next step was the rescue image. First attempt failed, so I thought I must have made a mistake in creating the USB disk, started over with mkfs.vfat, etc. and on the second try, forgot to edit bubba.cfg and had my /home formatted. Well, worse thing happened, but I would like to point out that the default of "erase everything" is a tad bit dangerous. (Yes, I have mostly everything mirrored somewhere, but it's still quite annoying.)
Anyway, back to the problem. Of course, the reinstall happily wiped the bad block information from the filesystem, so I am at square one (with the benefit of not having to deal with corrupted files that are all gone anyway). How should I go about this? Right now I am running badblocks, stashing the list in a file, so at some point I can try to do a e2fsck -l and hope it goes better than the last time.
Do you think I should try to get the drive replaced? (It is the original 1TB drive that came with B3.) Or should I just keep around the list of bad blocks and hope it doesn't get worse? Is there a better filesystem (say, ext4?) that would cope better with bad blocks than the default ext3? (I most importantly mean that even if the filesystem was mostly usable for normal operation, e2fsck persistently died with bitmap relocation error).