menu.lst by any other name....

Asked by LEGOManiac

I have an XP system that I've installed lubuntu on. When I first did this, XP appeared at the end of the grub menu.

After an update yesterday or today, there is a new kernel version available, but XP has disappeared as an option.

parted says it's still there, so I went to edit my menu.lst file in /boot/grub but there isn't one.

I checked all the .lst files to see if any of them had the memtest program listed.

matthias@Dimension-2400:/boot/grub$ cat *.lst | grep memtest
matthias@Dimension-2400:/boot/grub$ ls *.lst
command.lst crypto.lst fs.lst handler.lst moddep.lst partmap.lst parttool.lst terminal.lst video.lst
matthias@Dimension-2400:/boot/grub$

I was going to edit menu.lst and put the entry for XP in manually, but I can't find it. What else would it be called, and where would I find it?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu grub2 Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

menu.lst isn't used now. Grub2 uses different files.

Can you give the output of:

uname -a; lsb_release -a

and then run:

sudo apt-get -y install os-prober; sudo os-prober; sudo update-grub

What is output?

Thanks

Revision history for this message
David Glanzman (davidglanzman) said :
#2

Menu.lst is replaced mostly by the files in /etc/grub.d/

This document will guide you through creating a custom windows entry in the new Grub2
https://help.ubuntu.com/community/Grub2

Revision history for this message
David Glanzman (davidglanzman) said :
#3

Menu.lst is replaced mostly by the files in /etc/grub.d/

This document will guide you through creating a custom windows entry in the new Grub2
https://help.ubuntu.com/community/Grub2

Revision history for this message
LEGOManiac (bzflaglegomaniac) said :
#4

uname -a; lsb_release -a
Linux Dimension-2400 2.6.35-27-generic #48-Ubuntu SMP Tue Feb 22 20:25:29 UTC 2011 i686 GNU/Linux
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.10
Release: 10.10
Codename: maverick

Setting up os-prober (1.39) ...
/dev/sda1:Microsoft Windows XP Professional:Windows:chain
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.35-27-generic
Found initrd image: /boot/initrd.img-2.6.35-27-generic
Found linux image: /boot/vmlinuz-2.6.35-22-generic
Found initrd image: /boot/initrd.img-2.6.35-22-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Microsoft Windows XP Professional on /dev/sda1
done

OSProber seems interesting. When it says "Generating grub.cfg..." does that mean that it's re-building the menu? I guess I'll find out when I reboot.

If that doesn't work, I'll read David's suggestion.

Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#5

os-prober generates /etc/grub.d/50-os-prover

This is then used by update-grub to make the new grub.conf

You should now be ok

Revision history for this message
LEGOManiac (bzflaglegomaniac) said :
#6

Thanks actionparsnip, that solved my question.