9

I'm using Lubuntu with WinXP in dual boot for several weeks. Today I've ran update and GRUB now does not show WinXP menu entry in GRUB.

sudo update-grub didn't found Windows.

/boot/grub/menu.lst - no such file.

1
  • 2
    From the terminal run: sudo os-prober , this is the script used by grub to detect OSes, if it's failing to find windows it may show you some error. Nov 7, 2010 at 13:15

3 Answers 3

7

This site should give you everything you need.

Btw, if you are on Ubuntu 10.04 or 10.10 you won't see a /boot/grub/menu.lst, because that's not what grub uses anymore.

6

For Lubuntu 10.10, you need to install os-prober with

sudo apt-get install os-prober

and then update grub again with

sudo update-grub
1
  • Hmm, still did not work
    – cmcginty
    Feb 4, 2013 at 7:12
1

Try to add

menuentry "Windows XP " { set root='(hdX,X)' chainloader +1 }

in boot/grub/grub.cfg to section

BEGIN /etc/grub.d/40_custom

END /etc/grub.d/40_custom

(hdX,X) - drive with windows xp

SAMPLE:

`### BEGIN /etc/grub.d/40_custom ###

menuentry "Windows XP " {

set root='(hdX,X)'

chainloader +1

}

END /etc/grub.d/40_custom ###`

Maybe help to You :) Look for 13 post

UPD1: Full Illustrated Guide for grub2

UPD2:That's I mean

UPD3: Some configs for grub.cfg

6
  • 1
    Editing grub.cfg will only work until the next kernel update (or update of anything else that causes update-grub to be run), because update-grub will overwrite that file based on its configuration files & scripts. One of these scripts runs os-prober and should find WinXP, if not StalkerNOVA needs to find out why (see João's question).
    – JanC
    Nov 8, 2010 at 0:21
  • This answer is wrong. Nov 8, 2010 at 7:01
  • 1
    Granted the answer may be wrong, but if you are that sure, add some detail as to why. All you are doing is leaving the questioner in doubt.
    – Adam
    Nov 8, 2010 at 17:07
  • 1) Yes, This work only until next kernel update. This is non hard to re -add this 4 lines into grub.cfg again
    – litvin05
    Nov 8, 2010 at 21:15
  • 2) This method work for me. Because my win7 don't recognized by grub anyway. Only when i manually add this lines to grub.cfg (Please Explain why my answer is wrong? You have the same situation ?O_o)
    – litvin05
    Nov 8, 2010 at 21:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .