On Fri, Sep 07, 2007 at 09:33:21AM -0400, Ken Jones wrote:
The XP side of the machine works fine, but it crashes overnight. Where do I start? What do I do? Can I save the linux half of the hard drive?
It's probably too late. You already have data corruption due to the failed hard drive. First of all, stop using the drive immediately. Get a new one and only connect the old one for rescue purposes, and only try to read from it, not write. You could try using a rescue utility like "ddrescue" or the other one "GNU ddrescue" (yes there are two with the same name) to copy the good sectors to a new hard drive or file, then use a utility like "foremost" to carve the original files out of it if it won't mount normally. If you want to try modifying the copy, make a second copy and always keep the original unmodified copy in case further modifications, fsck, etc. messes it up even more. Next time, make sure to set up smartmontools (smartd) to email you when a hard drive starts to fail, and perhaps get a second hard drive and mirror it using Linux software RAID. If you use Linux software RAID, setup mdadm monitor (mdmonitor) to email you if you have a failed device in the RAID set. These email monitoring steps are crucial, since if you have redundancy, you might not otherwise notice a single failed device until the second one fails, and by then it is too late. I just had a hard drive fail and lost no data thanks to a RAID 1 mirror and mdmonitor/smartd.