GRUB error 24 in Ubuntu Karmic and the fix

Posted by Double Compile. Thursday, November 12. 2009, 11:59 AM in GNU/Linux

I applied a bunch of updates to my installation of Ubuntu 9.10 Karmic Koala this morning. Let it be known that I upgraded to Karmic from a clean install of Jaunty, and my root partition was once an ext3 file system turned into ext4. I returned from taking a shower to find the system had completely locked up, so I rebooted. Anyway, I got just past GRUB and received the following error:

24 : Attempt to access block outside partition
ohhaybadnewz

As it turns out, the GRUB Manual gives the following as a possible reason.

"This error is returned if a linear block address is outside of the disk partition. This generally happens because of a corrupt filesystem on the disk

So I inserted the Live CD and ran fsck.ext4 -f on the device in question, and no errors were found. Peculiar.

Some Google searching turned up this Launchpad issue, which in turn pointed me to a blog post called "Grub voodoo error no 13/24 and how do i fixed it" for a possible fix.

Allow me to quote from that post (thanks so much, Marius) the correct procedure to fix this beast in case anyone else runs into this little problem. Fill in /dev/sda with the correct device name for your disk containing the root partition.

$ sudo su
$ mount /dev/sda1 /mnt
$ mount --bind /dev /mnt/dev
$ mount --bind /dev/pts /mnt/dev/pts
$ mount --bind /dev/shm /mnt/dev/shm
$ mount -t proc none /mnt/proc
$ mount -t sysfs none /mnt/sys
$ grub-install /dev/sda --root-directory=/ --recheck

I rebooted and everything was fine; crisis averted.

Defined tags for this entry: , , , , ,

Furthering Ubuntu

Posted by Double Compile. Wednesday, April 29. 2009, 11:13 AM in GNU/Linux

In recent months, I've taken to spreading the love that is Ubuntu. 

For Christmas, I gifted it to my parents and installed it on their PCs.  My dad uses the Internet and checks his e-mail, my mom does some more power user things, like scanning documents, syncing music to her iPod Nano, and managing her photos (I even got her dated Windows Pocket PC syncing correctly).  They both enjoyed not having to pay to renew their security packages.

When Jaunty Jackalope came out, I made sure my friend Dustin got it installed—who had more malware infections on his Windows XP laptop than I've ever seen.  He was blown away by how simple the software installation process is, and he's now considering marriage with Compiz Fusion.  Alas, I couldn't get Planescape Torment working for him under Wine.

Deidre, one of the players in my tabletop roleplaying group, has requested a Live CD to try it out—soon she too will be one of us.

Not too long ago, I set up my friend Serge with a dual boot of Ubuntu on top of pre-existing Vista.  The only reason he even agreed to keep Vista there was because his Intel graphics chipset did not play well with WoW on Wine.

Serge's wife Cristi has been declaring that she's fed up with her Windows XP laptop and just today mentioned it's now unusable thanks to malware infections.  We have plans to get together soon to get her hooked up as well.  The best part—her direct words were: "I would like to destroy Windows forever with the IRON FIST OF UBUNTU JUSTICE!!"

Defined tags for this entry: , ,

Ubuntu Hardy Heron Install Live Blog

Posted by Double Compile. Friday, April 25. 2008, 05:42 PM in GNU/Linux

Ubuntu 8.04 Hardy Heron came out yesterday. I meant to upgrade yesterday but, on a whim, I thought I'd install from scratch and live blog it. What follows is the result of that effort.

Did I mention I ordered the limited edition Hardy Heron t-shirt from the Canonical store? Because I did.

Continue reading "Ubuntu Hardy Heron Install Live Blog"

Defined tags for this entry: , , , , , ,