PDA

View Full Version : [ubuntu] 10.04 Grub does not add Windows XP entry



DigitalJunkie
May 1st, 2010, 08:51 PM
Hi everyone,

I upgraded a Karmic/WinXP dual boot installation to Lucid today. When the upgrade tool asked me what to do about menu.lst, I chose to overwrite the existing version with the packaged version.
The result was that it now no longer contains an entry for Windows XP.

When I run grub-mkconfig, the section for 30_os-prober indicates that it detects Windows just fine:


### BEGIN /etc/grub.d/30_os-prober ###
Found Microsoft Windows XP Professional on /dev/sda1
menuentry "Microsoft Windows XP Professional (on /dev/sda1)" {
insmod ntfs
set root='(hd0,1)'
search --no-floppy --fs-uuid --set c20815a10815960f
drivemap -s (hd0) ${root}
chainloader +1
}
### END /etc/grub.d/30_os-prober ###


But when I run update-grub, it does not add an entry to menu.lst. I've also tried adding several different manual entries to 40_custom, which it completely ignores when updating. (It has +x permission set).

I'm kind of at a loss what to do next. Does anyone know what could be causing Grub to not add the entry for XP?

For what it's worth, I've attached the output of bootinfoscript (http://bootinfoscript.sourceforge.net/):

Morganman
May 2nd, 2010, 10:55 AM
Hi
I am pretty new to Ubuntu so this may not work but could be worth a try.

This problem sounds like the bug reported on the Ubuntu site on Thursday.
Have a look there.
else
Try
sudo apt-get grub-update
sudo apt-get grug-mkconfig

then look at this site
http://sourceforge.net/apps/mediawik...ms:Boot_Sector

I had a similar problem and it sorted it for me.

frantid
May 2nd, 2010, 12:18 PM
You have grub-legacy installed in the MBR of sda. You have a mixture of grub-legacy and grub2.

try


sudo grub-install -v

it should report (GNU GRUB 1.98-1ubuntu5)

if it's right, try


sudo grub-install /dev/sda

run the script again.

sabi689
May 2nd, 2010, 01:21 PM
I think I've got a similar problem.
I have Windows 7 installed beside Ubuntu 10.4 (not newly installed but upgraded). Both show up in the boot menue. When I'm trying to boot Windows the screen turns black with a blinking underscore on it. But nothing else happens.

I tried everything I found on the internet so far - but mostly the problem is that Windows - or any other OS installed - not even shows up in the boot menue... So maybe I have a different problem!?

Thanks for your help!

frantid
May 2nd, 2010, 01:35 PM
I think I've got a similar problem.
I have Windows 7 installed beside Ubuntu 10.4 (not newly installed but upgraded). Both show up in the boot menue. When I'm trying to boot Windows the screen turns black with a blinking underscore on it. But nothing else happens.

I tried everything I found on the internet so far - but mostly the problem is that Windows - or any other OS installed - not even shows up in the boot menue... So maybe I have a different problem!?

Thanks for your help!


Please follow this post and post the results.

http://ubuntuforums.org/showthread.php?t=1291280

sabi689
May 2nd, 2010, 01:44 PM
That's the result.

frantid
May 2nd, 2010, 02:16 PM
That's the result.

It seems grub was installed in the boot partition of your win7 boot partition.


sda1: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Grub 2
Boot sector info: Grub 2 is installed in the boot sector of sda1 and
looks at sector 720131902 of the same hard drive for
core.img, but core.img can not be found at this
location. No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs: /bootmgr /Boot/BCD


You need to fix the win7 boot files.

try following this post:

http://ubuntu-ky.ubuntuforums.org/showpost.php?p=8930595&postcount=3

fatigue
May 3rd, 2010, 06:29 PM
You can boot/fix grub menu by Super Grub Disk


Download Super Grub Disk (http://forjamari.linex.org/projects/supergrub/)
Burn into a cdrom (better) or a floppy
Boot from it


This program, QGRUBeditor is really good program to fix/add new Grub menu.

http://linuxappfinder.com/package/qgrubeditor (http://linuxappfinder.com/package/qgrubeditor)

1 First, use super grub disk and "advance and tool" and "show partition"
Find out what is your windows root number (hd0,?). ? part is important

2 By using QGRUBeditor, you can add windows grub menu.

It will be like this

title Windows 7 (Boot)
root (hd0,*)
chainloader +1

kaspin
May 5th, 2010, 06:36 PM
My computers were happily running 9.10 alongside WinXP. After upgrading to 10.04 I could boot into Ubuntu, but WinXP was dead (flashing - sign). I spent countless hours trying the fixes suggested above and elsewhere, but nothing worked. So I took off 10.04, repaired the WinXP MBR, reinstalled 9.10 and all is well again (except that Grub is extremely slow to load).I'll put up with that until the upgrade problems are fixed.

Can someone please explain in simple terms why Grub2 works fine with 9.10 but screws up in 10.04? And why do we have to chose where to install Grub in the 10.04 setup, but not in 9.10?

kaspin](*,)

wilee-nilee
May 5th, 2010, 07:18 PM
For those of you that are not the thread starter you have to start your own threads, if you really want help, otherwise this is considered as hijacking another's thread.
Post the boot script in each case, highlight in thread post hit # to have a scrolling view.
http://bootinfoscript.sourceforge.net/
If you really want help do not post a download link just post the script as described in a personal thread titled appropriately.

Padua
May 5th, 2010, 10:44 PM
I just intsalled the Ubuntu upgrades now available, and the problem got solved.

wilee-nilee
May 5th, 2010, 11:18 PM
I just intsalled the Ubuntu upgrades now available, and the problem got solved.

Don't hijack threads.