My main hard disk that stores /home and most of my important stuff recently failed. I went to save a file to a directory, only to find the directory missing. After seeing “IO error” all over the logs, I thought rebooting was needed to clear up a buggy controller or driver. Big mistake! The first sector, the MBR where the boot loader and partition table live, was already bad, making the drive unusable by the OS.
Lesson One: when you notice IO errors, immediately begin copying files to a safe disk.
I reboot, and at this point, I see my OS telling me “drive is unusable.” So I freaked out, thinking about the 16 months of digital pictures, years of e-mail, thousands of hours of source code all lost. I decided I would recover the drive no matter what the cost. I called half a dozen places like OnTrack and Drive Savers and got the bad news: with an 80 gig drive, it’s gonna cost in the range of $1000 to well over $3000. I felt sick, very sick.
Lesson Two: do your research and don’t let people take advantage of you.
So I keep hearing about and seeing web sites for data recovery software that doesn’t require the expensive trip to the clean room. In particular, I find software from R-TT that supports ext2 and is good quality. Unfortunately, the open source programs out there like e2extract are a little scary at alpha level and no documentation.
I was able to recover my data! And I didn’t even have to put my hard disk in the freezer (I’m speaking literally — this apparently works on drives with heads crashed on the platter). It turned out the disk was covered in bad sectors, but I still got 99% of my data back. And I learned a few things about super nodes and block groups along the way.
Lesson Three: backup your data! It’s not “if” your drive will fail, it’s “when.” Hard drives last on average 3-5 years. With 7200 RPM drives, the heat build-up makes them more likely to fail.
So now I am shopping for a RAID-5 controller card with 4 channels. The ATA RAID cards from Promise look very attractive. Maybe a bigger case with lots of fans too.