imaginary family values presents

yesh omrim

a blog that reclines to the left

Logo

Dept. of “you can’t win for losing”

10 August 2009

I’ve been trying to protect myself from the headaches of another massive hard-drive failure by backing up our home systems to Amazon S3, first by using JungleDisk, and more recently by using duplicity. (JungleDisk is a fine program—it’s one of the few pieces of software running on my Linux box that I’ve put down money for, and I’ve never regretted doing so—but the basic version is oriented towards backing up one user’s personal files, and knows nothing of Unix ownership, file permissions, etc.)

The one problem with this approach is that we have about 20 GB of music files on our desktop system, and our DSL connection is only 128 Kbps upstream, so the music stuff is not being backed up as frequently as everything else.

But this past week, we were on vacation in New York, and my wife and I independently hit on this brilliant idea: start One Great Big Backup right before we leave, and it should be done before we get back. (Well … mostly done. I should have worked out the math first. But that was the least of my problems.)

So I set One Great Big Backup to kick off at 10:00 a.m. Sunday morning, come back at about 4:30 Friday afternoon (the bus having arrived in Boston an hour and a half late), and discover that our system is even less responsive than it usually is under high load, and the console is printing out disturbing messages regarding the hard drive, containing cheerful messages like this:

SError: { PHYRdyChg CommWake Dispr LinkSeq TrStaTrns }

After a panicked reboot and some more panicked fumbling with fsck, I gave up and shut the machine down.

Did I mention that this is the computer that controls our X10 system for turning lights on and off at appropriate times?

Anyway, on Saturday night, I did a more sober assessment of the damage, and determined that:

  1. One Great Big Backup had not finished and seemed hopelessly corrupt, so the music files had not been backed up.
  2. The most recent backup of our music to JungleDisk had happened, umm, some time in July of 2008.
  3. Regular daily backups had been going on as expected, so at least the regular desktop files were safe.
  4. Googling the cheerful messages from the hard drive turned up advice along the lines of “hard drives are cheap, do you really want to keep using one that’s flaking out on you?”

So today’s adventures included a journey to Micro Center, where we picked up

  1. a Hitachi 500-GB internal SATA hard drive, on sale
  2. a Hitachi 640-GB external USB hard drive, on sale
  3. an Ubuntu 8.10 LiveCD

When I tried to install the first of these items, a little nub of plastic broke off the end of the SATA cable. Also, the drive came with two machine screws, wheres the drive bay in our desktop machine requires four screws on a drive to keep it in place. Maybe that’s why these things were on sale. Hopefully, the Micro Center folks won’t give us grief about replacing it tomorrow.

The second one seems to be working so far as well as one might expect, although VFAT’s limitations on file names and size make my attempts at recovery and forensics… well, I’ve used about as much creativity as I think I can stand right now.

The third item, though, has worked like a charm: I booted from the CD, plugged in the external drive, mounted the partition that had the music on it, and as far as I can tell, all those files were copied over without a hitch. I would have backed up disk images from the broken drive to the external one as well, but then I ran into VFAT’s 4-GB-per-file limit. See previous comment about creativity.