Friday, March 18, 2011

GRUB and stuff

Yesterday and today I talked to Jeff about the purpose of the machine, which I would still like to follow up on. Also wired the LEDs! Thankfully the disc did contain a manual.

Jeff installed CentOS and Fedora yesterday but kinda broke GRUB. Now I managed to fix it with my usually tendency of fixing things right before the end of class and leaving without blogging. But here we go.

CentOS is on sda1, swap on sda2 and Fedora on sda3. I will tell you my solution to the problem but mind you this won't always fix GRUB. I mounted sda1 and chrooted into it so I could access the /boot/grub. I opened menu.lst and copied the entries for CentOS. I then opened the same file on the Fedora partition and copied the entries to the menu.lst there and commented out hiddenmenu.

I believe what happened is GRUB was installed on CentOS and then Fedora as Jeff said. Now GRUB was configured to boot just into Fedora silently since it believed there was no other OS. By copying the entry from menu.lst in CentOS to the one in Fedora it told it GRUB where to find CentOS. Commenting the hiddenmenu option out also meant that when you boot you got to see the GRUB menu again. The End.

2 comments:

  1. When you get to class today, please do the following:

    1. Find the CD for the motherboard you setup last week and use masking tape to attach it inside the computer case.

    2. Investigate the update-grub command and figure write what it does in your blog.

    Your grub solution obviously worked, but I fear it will break when a new kernel comes out on either Fedora or CentOS.

    ReplyDelete
  2. btw Great initiative starting that conversation yesterday. That is exactly how to move a project forward!

    ReplyDelete