LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 04-21-2007, 09:01 AM   #1
Kanesoban
Member
 
Registered: Oct 2006
Distribution: Gentoo
Posts: 34

Rep: Reputation: 15
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. 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?
 
Old 04-21-2007, 09:05 AM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
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
 
Old 04-21-2007, 12:01 PM   #3
Kanesoban
Member
 
Registered: Oct 2006
Distribution: Gentoo
Posts: 34

Original Poster
Rep: Reputation: 15
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
GRUB menu.lst/grub.conf file with multiple partitions dasy2k1 Linux - General 1 04-19-2007 08:42 AM
/grub/menu.lst file disappeared but computer still boots (grub) rrrssssss Linux - General 5 04-08-2007 09:02 AM
cant see the grub menu just the grub command promt an2ny_18 Fedora 1 03-09-2006 07:06 AM
Grub 0.97 issues on slackware - grub-install is very slow, & updating menu.lst fails dieyouspammer Linux - Software 1 02-27-2006 01:06 PM
Setting password on grub, wha to do after changing default values in /boot/grub/menu. sarajevo Linux - Security 1 08-17-2005 08:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 09:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration