Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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.

share|improve this question
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. –  João Pinto Nov 7 '10 at 13:15
add comment

3 Answers

up vote 5 down vote accepted

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
share|improve this answer
    
Hmm, still did not work –  Casey Feb 4 '13 at 7:12
add comment

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.

share|improve this answer
add comment

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

share|improve this answer
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 '10 at 0:21
    
This answer is wrong. –  Martin Owens -doctormo- Nov 8 '10 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 '10 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 '10 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 '10 at 21:26
show 1 more comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.