Okay, my drive came up fubarred the other day. No big deal, I have a fairly recent backup. Besides, it was time to upgrade to 8.04 anyway, and it was a good excuse to buy a bigger drive too.
But, being new to Linux, I thought I'd take the opportunity to learn some Linux data recovery techniques. I'm old-school tech but a fairly recent convert to Linux. Anyway, I'm interested in some recovery approaches for an ext3 formatted drive. So, ignoring the fact that I have a backup and the only stuff I'm missing is a little non-essential MySQL data and a couple of Dilbert cartoons, where should I have started?
The scenario: the system was up and running but just ground to a halt. A reboot, well, didn't. The boot-loader ran but it reported I/O errors when trying to load the Linux kernel. Oh, BTW, this is on a PPC Mac-mini running 7.04 on a single drive with default partitions.
My actions:
1) boot with the Ubuntu 7.04 live CD I originally installed with and run testdisk. It said it couldn't find any file system on the partition and ground to a halt when "digging deeper."
2) run dd_rescue to copy the entire partition to a file on an external drive. Yes, I know I should have done this first, but, like I said, I'm just learning here. It copied the entire 35G without reporting any errors.
3) ran sleuth-kit on the exported file but it showed nothing.
So, that's where I'm at so far (right now, I'm waiting for my backup files to copy over so I'm killing time).
I guess I have a few things I'd like to figure out:
1) if/how I can rebuild the format information on the drive so I can access the files.
2) how to recover MySQL data from the file structure, rather than an SQL dump.
3) a better automated backup of MySQL data so that I don't have to figure out #2 next time.
4) if it's possible to take a 7.04 full backup and selectively dump it on a 8.04 install to get things going without having to re-install all the details. I don't really want to do this because the original 7.04 install wasn't exactly good - I have learned a few things along the way. But, I am curious if it's possible.
Like I said, this is an educational exercise as I've not really lost much of anything data-wise. But, someday I might, or someone might be begging me because they did. Knowledge is power.
Any suggestions for where to proceed?
David...
Bookmarks