LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Grub menu distorted (https://www.linuxquestions.org/questions/ubuntu-63/grub-menu-distorted-547844/)

Kanesoban 04-21-2007 09:01 AM

Grub menu distorted
 
Helo!

My problem is: from nothing, a bunch of new entrys appeared in my Grub menu. But thats not the big problem, rather that the entry of Windows Xp is no longer in menu.lst, and i can't boot to Windows Xp to play Total Annihilation Spring :P Luckily, i need Windows only for that.
Anyways, these are the Grub entrys, i had originally:

title Ubuntu, kernel 2.6.17-10-generic
root (hd0,1)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/hdb2 ro quiet splash
initrd /boot/initrd.img-2.6.17-10-generic
quiet
savedefault
boot

title Ubuntu, kernel 2.6.17-10-generic (recovery mode)
root (hd0,1)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/hdb2 ro single
initrd /boot/initrd.img-2.6.17-10-generic
boot

title Ubuntu, memtest86+
root (hd0,1)
kernel /boot/memtest86+.bin
quiet
boot

These, and one entry for Win Xp.
Now i have these minus Xp, plus:

title Ubuntu, kernel 2.6.17-11-generic
root (hd0,1)
kernel /boot/vmlinuz-2.6.17-11-generic root=/dev/hdb2 ro quiet splash
initrd /boot/initrd.img-2.6.17-11-generic
quiet
savedefault
boot

title Ubuntu, kernel 2.6.17-11-generic (recovery mode)
root (hd0,1)
kernel /boot/vmlinuz-2.6.17-11-generic root=/dev/hdb2 ro single
initrd /boot/initrd.img-2.6.17-11-generic
boot

title Ubuntu, kernel 2.6.17-10-386
root (hd0,1)
kernel /boot/vmlinuz-2.6.17-10-386 root=/dev/hdb2 ro quiet splash
initrd /boot/initrd.img-2.6.17-10-386
quiet
savedefault
boot

title Ubuntu, kernel 2.6.17-10-386 (recovery mode)
root (hd0,1)
kernel /boot/vmlinuz-2.6.17-10-386 root=/dev/hdb2 ro single
initrd /boot/initrd.img-2.6.17-10-386
boot

If i know this right, the problem is, that there was some Kernel update, and that does this. Or maybe not. :D Anyways, i dont know, how the Xp entry looked like, so i can't just write it back. Also, how can i avoid this thing happening again and again ? I ask this, because this has happened before, but XP never disappeared from menu.lst. So what should i write in menu.lst to have my Win back?

aus9 04-21-2007 09:05 AM

read my tutorial but I am guessing you have left XP as first partition on first drive so its (hd0,0) in grubspeak

boot into linux and using root powers edit the
/boot/menu.lst to add entry

title xp
root (hd0,0)
chainloader + 1

2) you can see a new kernel so you are right to assume it was a kernel upgrade that is likely to have done it...but I do not use your distro so just a guess

Kanesoban 04-21-2007 12:01 PM

Quote:

Originally Posted by aus9
read my tutorial but I am guessing you have left XP as first partition on first drive so its (hd0,0) in grubspeak

boot into linux and using root powers edit the
/boot/menu.lst to add entry

title xp
root (hd0,0)
chainloader + 1

There is a xp entry in the grub menu, but that gives "Error 1: Filename must be either an absolute pathname or blocklist" when i click on it.

Hovewer, with this

title xp
root (hd0,0)
chainloader +1

Windows loads. :)

Difference:
chainloader +1
instead of
chainloader + 1

Thanks for help.


All times are GMT -5. The time now is 01:49 AM.