So, a few days ago I was performing a highly unauthorized, extremely warranty-voiding, amazingly license-violating installation of Mac OS X on my very non-Mac desktop, primarily because I could. I have a rather complex partition structure, involving three primary partitions and four logical ones, to allow me to keep my old Windows partitions around and upgrade my Ubuntu Linux installation safely.
Now, Mac OS and Windows have something in common: they're both attention-seeking brats. Whereas Linux is a good citizen and allows itself to be installed onto any partition, both Mac OS and Windows insist on having primary partitions. (To be fair, Linux has its own flaw--its partitioning tools tend to produce labyrinth partition tables that confuse other operating systems.) As a result, I had to shuffle my partitions around to free up hda2, where my home directory had been, for Mac OS. I used my Ubuntu Live CD to rearrange things, then booted into the Mac OS installer, used the Disk Utility to format the primary partition I had vacated, and installed Mac OS, which went smoothly. I tried to boot my new operating system, but got an error almost immediately:
"GRUB Error 22"
I looked it up on my laptop. Error 22 means that the partition GRUB was on has vanished into thin air.
Uh-oh.
Booted the Live CD again and, sure enough, my root directory and secondary Linux data partitions were gone; Disk Utility had truncated my whole extended partition. Apparently the drivers for my chipset weren't so hot. Fortunately, there's a simple trick to deal with this problem.
A partition table is basically just a table of contents for a disk. When a partition disappears, it hasn't really been deleted; only its entry in the partition table has. If you can recreate the partition table precisely as it once was, you can restore the partitions. Since I had just rearranged everything, and since I always size partitions in multiples of 1 GB (I'm anal), I knew exactly how the disk was laid out, so I put it back to rights, being careful to keep gparted from formatting the "new" partitions. I fsck'd the partitions, which fixed a few errors, and then rebooted.
No Error 17. I booted into Linux--no problem there; it hummed along as if nothing had happened.
I rebooted into Mac OS and got a black screen with only a cursor. It wasn't very happy with my graphics card.
Oh well. There's no such thing as a panacea.
Showing posts with label operating systems. Show all posts
Showing posts with label operating systems. Show all posts
Friday, February 23, 2007
Subscribe to:
Posts (Atom)
