Forum Home
Press F1
 
Thread ID: 90633 2008-06-10 21:25:00 Ubuntu Grub Error 2 aidanmaz (7180) Press F1
Post ID Timestamp Content User
677298 2008-11-03 08:03:00 I found the solution for my Grub error 2 at least for users of the new Ubuntu release. This is thanks to another forum user and is not my discovery.

Anyway, the new Ubuntu Intrepid release defaults to using a 256 byte inode size for its ext3 file system rather than the older 128 bytes used in Hardy and in prior releases. Unfortunately the Grub version in Hardy and before can't handle the larger inode size, so you will typically get a Grub error 2 if you try to boot one of the newer ext3 partitions.

Things were fine on my IDE drive because the new Grub version installed itself in the MBR so all installations on that drive were fine. However when I would try to boot from the SATA drive, its MBR had the older version of Grub so it could handle everything on itself as well as all older OS's on the IDE, but NOT the new Intrepid Ibex installation which used the larger inode size.

The fix was to download the latest release of Grub, (0.97-29ubuntu45) and remove the two modules e2fs_stage1_5 and stage2 then install them into the old /boot/grub directory of the OS on the SATA drive from which I was trying to boot, then regenerating the MBR on the SATA drive thus:

# sudo grub
grub> device (hd0) /dev/sda
grub> root (hd0,0)
grub> setup (hd0)
grub> quit

Hope this helps someone.

What a pain in the neck all that must have been. Why did they change the inode size? I guess they don't understand about leaving well enough alone.

That sort of thing really confuses the situation in a multi-boot installation. Like the change to UUID did.
rumpty (2863)
677299 2008-11-03 10:49:00 Because with larger drives, it starts making a lot of sense to pack more information into a single inode. If they did actually make this change, then it was a change dictated by necessity. Erayd (23)
677300 2008-11-03 12:47:00 Update to the new Ubuntu 8.10 it maybe better/fix things for you ;):cool:
Good luck and I hope that helps you out.:):thumbs:
memphis (2869)
677301 2008-11-04 00:09:00 Because with larger drives, it starts making a lot of sense to pack more information into a single inode. If they did actually make this change, then it was a change dictated by necessity.

Thanks for that clarification.
rumpty (2863)
677302 2008-11-04 01:35:00 I like to eat grub for dinner.
i get an error if i eat 2 many though...
esayolay (13857)
1 2