Disaster Recovery

It's been a while. I've been called all sorts of nasty names for not updating in ten whole days. But here I am, fulfilling the promise made in my 11th June entry (which, contrary to popular misinterpretation, I have not broken, James).

So what of the title? The disasters (there were two) were PC-related and so the technologically fainthearted are advised to skip to the last few paragraphs.

The first disaster was two weekends ago. Having gone home with the express intention of revising for a Functional Programming exam, I somehow came to open Windows's hard disk management thingy on my "left at home because taking two PCs to uni seemed excessive" PC. Spotting three gigs of unused space (shock horror) where a shiny new partition could be, I hastily clicked "Create". Everything seemed normal. Then a message box: "The Logical Disk Server threw an exception." Then something called "Windows" access-violated. Not "EXPLORER.EXE" or "MMC.EXE". "Windows". I deduced that all was not well.

And I was right. Upon reloading said disk management thingy, I saw the 40Gb drive was now reported as a 16 terabyte (16,000Gb) leviathan. Whee. And where my F: partition and six Linux partitions had been, there were now apparently eight unknown partitions of 2 terabytes each. Awesome.

Needless to say, the machine would no longer boot. The partition table, while mostly fried, still contained valid entries for C: and D:, but the system uses the GRUB bootloader, which was living on one of the now inaccessible Linux partitions.

The most obvious first course of action was to get Windows back, and that was easy. Pop in a Windows CD, boot to the recovery console, FIXBOOT and FIXMBR - sorted. That overwrote the orphaned GRUB stub with a Windows bootsector, and within minutes I was back into Windows. I considered stopping there - after all, I had backups of most of the stuff on the missing F: partition, and I couldn't recall anything important I'd stored on the Linux partitions, although reinstalling the whole thing again was going to be tiresome.

Some mysterious force (revision avoidance) made me download a disk editor and start looking around. Google found me some helpful docs on the layout of partition tables and NTFS, FAT and ext2 boot sectors. To cut a rather boring story long (rather than excruciatingly long), some five hours later I had located the starting sector of each of the missing partitions, calculated, checked and rechecked their offsets, and thus reconstructed the partition tables by hand with a hex editor. I was then able to access the Linux installation by booting from the Red Hat disc (which had previously claimed that Linux was not installed) where I reinstalled GRUB. And after a prayer and a nervous reboot, everything was exactly as it had been before my fateful play with Windows's hapless partition editor.

I allow myself some good, honest geek satisfaction at having bounced back from a computing catastrophe that a few years ago would have had me reaching for the FORMAT command. Sorry if the story bored you to tears :-)

The second disaster occurred towards the end of last week, and while it continued on the theme of hard disks, it moved a few layers closer to the machine. Drive failure. A routine surface scan of my IBM Deskstar (or "Deathstar") revealed a handful of damaged clusters in some large Radiohead videos that I had downloaded that day. Soon, bad sectors were spawning like baddies in a 1994 FPS, damaging bits of NTFS itself and leaving Scandisk unable to get far enough to check for more. So I downloaded IBM's Drive Fitness Test utility and let it scan. For hours. It returned an interesting error code - description "Defective Unit - Excessive Shock". Excessive shock?! As the PC hadn't moved an inch in nine weeks, this was worrying. Are IBM programming their drives to lie to cut down on warranty returns, or did someone come in and give my PC a good kicking while I was down the corridor?

Anyway, a shiny new Seagate Barracuda is on its way from ebuyer, which is going to help make this fortnight a bloody expensive one, as I just took delivery of an equally shiny new laptop (upon which this very entry is being crafted). Time to start sourcing some summer work. In the meantime, the stricken PC is still working, sort of. The damage seems to be spreading slowly backwards from the far end of the drive, meaning that my source code partition is dying, but my system drive is, digits entwined, still very much alive. I'm hoping it'll last long enough for me to install the new drive and simply clone the surviving partitions, negating the need for a Windows reinstallation.

*** START READING AGAIN HERE IF YOU SKIPPED THE TECHIE STUFF ***

Now, in brief closing, I turn to so-called "real life" events. Last weekend I went home to pick up the new laptop, and elected to stay overnight. The following afternoon I fell ill with some random annoying virus, and ended up staying for three more days. I returned to an atmosphere of faint pointlessness, with exams out of the way and a campus united in the search for new ways to waste days. Charles has been running around with Jo and Moz organising the BandSoc stage for Monday's RAG festival, The Big Easy, over at Cryfield. Charles's new blog has many tales of the logistical nightmares they're facing. We (Unreal Coriander) are playing second from last (before headliners The Fire), with Russ on drums (as Mark isn't around) and our newest recruit, Becky, on cello(!). Should be fun...

Also notable gig-wise is tonight's return of The Stolen to The Tiller Pin in Leamington. I've got a reasonable number of uni people coming to see us, and maybe Josh and Sam as well, so we'd better be good. I'm trying not to worry about not having rehearsed with them for weeks. Anyway, we're on sometime after 8pm until about 10.30. If you're a uni person and want to come, speak to Charles, who's leading the expedition to (re-)locate the place.

Ceri and Ben came over yesterday for an unofficial tour of campus and lunch in Xanana's. Charles managed to find us a convoluted way into the biology department avoiding all the locked doors, so she got to see rather a lot considering it was a Saturday. After that, a rehearsal, then transporting a dozen large sheets of hardboard from Health Centre Road to the Cryfield sports pavillion, using nothing but a rickety trolley provided graciously by Warwick Hospitality. Cue daring downhill trolley rides on the way home. And come 10pm, we went to the Offbeat disco in Zippy's, drank far too much, and engaged in much stupid dancing.

This brings us shakily up to date. Right now there's a thunderstorm in progress. Excitement.

I have to get myself and all of my junk out of here by 10am on Saturday morning. Six short days of "campus life" left.

Posted by pwr (site) at June 22, 2003, 3:31pm. Category: blog. semipermalink

Comment on this

StumbleUpon Toolbar Share on Facebook

Post a comment

name:
email:
site:
All three fields are optional. Your email address will only be made available to the site owner.




counter dense cats have plagued this planet since August 2002. You appear to be browsing from country code US.
This site and all its contents (except where otherwise stated) are Copyright © 1996-2007 Paul Roberts.
Powered by clunkyblog release 3.00. clunkyblog is Copyright © 2003, 2004, 2007 Paul Roberts. Generated in 7273ms.
Valid CSS! Valid XHTML 1.1!