fsck

My sister’s T30 running Ubuntu dapper that I gave her is experiencing some sort of problem with the hard drive.

I upgraded the hard drive less than a year ago. So I am a little dismayed as it is well within its 4 year guarantee.

First I expected to fsck from when Ubuntu’s startup bombed out with its instructions. Instructions that could not work, because the problem is with the root partition where fsck and other utilities live.

Next I get out a Ubuntu alternate CD out and boot it up. Unfortunately when I used rescue mode I could not manage to run fsck on the drive. Useless.

Next I booted from a USB hard drive I have. I managed to boot the kernel from the USB, but I could not manage boot the rest of the system from the USB hard drive.

Next I found a dusty copy of Knoppix from May 2004 and booted the system. Great. Now I run fsck on /dev/hda1 and it asks for prompts that some illegal blocks on inode 8 need to be cleared. Then inode 8 itself needs clearing. Ummmm… ok. I wish I didn’t prompt me and just fixed everything. So there I am pressing yes to bloody well fix it.
Then it restarts itself and again the same problem with inode 8, though this time with different blocks. Oh no. What to do?

I decided to copy and paste the text and upload the output somewhere to show someone. Ah, unfortunately the wavelan configuration of this version of Knoppix does not seem to support the cisco aironet device. How odd.

Hours later I am downloading Ubuntu 6.10 desktop CD and see if I can fix things from their demo mode. Ok, the same problem as with the Knoppix CD. UNEXPECTED INCONSISTENCY. This manual loop of clearing illegal blocks is getting nowhere. Dead hard drive?

Ok, I have since discovered /home is on /dev/hda6 which is fine after fsck. Though /dev/hda1 seems to have serious issues. So if one partition is alright and the other isn’t… then is the hard drive really defective? Ummm, wondering is there some some “memtest86” for hard drives.

With the help of my local user group DCGLUG, I have been pointed to “badblocks”. After a full scan nothing has shown up. I’ve also now fixed all the problems with /dev/hda1 with fsck -y, though boot files are damaged. So right now I conducting an install with Ubuntu 6.10 and praying it does not b0rk the existing /home on /dev/hda6…

Seems to be working! Had to chown -R 1000:1000 on the old home directory from console as it would not log in otherwise. Now I have to install all those silly proprietary codecs my sister requires to listen to music and watch movies…

Advertisement

If you like this, you might like the stateless Web kiosk software I develop. Webconverger typically replaces Windows on PCs and is deployed in public and business environments for ease of deployment and privacy. Once installed it auto-updates making it painless to maintain. Try it where you exclusively use the only viable open platform... the Web!