Wednesday, 25 April 2007

Editing the GRUB installer after a clean install (Mepis 6.5)

Allow your machine to boot into GRUB. Choose an OS from the menu and click enter. GRUB will try to load but will quickly come up with an error 22, stating that the partition doesn't exist, or some such. It will then revert back to a text version of GRUB. Again, highlight an OS, but instead of pressing "enter" press "e" to go into edit mode. You can then manually change the text string from hd1,2 to hd0,2, hit enter and then "b" (to boot).

After Mepis has loaded, with super user privileges, edit the /boot/grub/menu.lst files to make the changes permanent.

Your menu.lst file should look something like this......

timeout 15
color cyan/blue white/blue
foreground ffffff
background 0639a1

gfxmenu /boot/grub/message

title MEPIS - newest kernel
root (hd0,4)
kernel /boot/vmlinuz root=/dev/sda5 nomce quiet vga=791 resume=/dev/sda6
boot

title MEPIS - previous kernel (if any)
root (hd0,4)
kernel /boot/vmlinuz.old root=/dev/sda5 nomce quiet vga=791 resume=/dev/sda6
boot

title MEPIS - kernel 2.6.15-27-desktop
root (hd0,4)
kernel /boot/vmlinuz-2.6.15-27-desktop root=/dev/sda5 nomce quiet vga=791 resume=/dev/sda6
boot

title Windows XP
rootnoverify (hd0,0)
chainloader +1


title MEMTEST
kernel /boot/memtest86+.bin

Save the file and then reboot. You should now be able to log into either OS on the menu.

No comments:

Post a Comment