Dual boot Windows XP and Ubuntu: XP won't boot.

NoOp glgxg at sbcglobal.net
Mon Aug 17 18:01:52 UTC 2009


On 08/17/2009 08:18 AM, Markus Schönhaber wrote:
> Dotan Cohen:
> 
>> Windows is on sda1 and Ubuntu is on sdb1, with Grub on sdb and
>> the BIOS configured to boot from sdb. Before the install, BIOS was
>> configured to boot from sda, which was the existing Windows install.
>> 
>> Upon startup, the computer gets to the Grub screen just fine, and if
>> the user selects Ubuntu then the computer boots as expected. However,
>> if the user selects Windows then he gets a black screen with the text
>> "Starting up...". This screen does not change, I have waited over an
>> hour to see if it would continue. However, if I change the BIOS
>> setting to boot from sda then Windows boots up fine. I tried changing
>> the Grub boot configuration for windows from (0,0) to every other
>> logical value, but Windows would not get past that "Starting up..."
>> screen.
> 
> My guess would be that Windows gets confused from not being on the first
> (BIOS) disk any more as it was when installed.
> Maybe it's as easy as changing the mapping of the drives, i. e. adding
> map (hd0) (hd1)
> map (hd1) (hd0)
> to the Windows entry in GRUB's menu.lst.

Similar to this:
### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the
Debian ones
title		Other operating systems:
root

# Non-linux OS on /dev/sdb1
title              Windows XP
root               (hd1,0)
savedefault
makeactive
map                (hd0) (hd1)
map                (hd1) (hd0)
chainloader        +1

Of course, modify/swap hd0 & hd1 as necessary.
...
https://help.ubuntu.com/community/GrubHowto
On this system:
$ df /boot
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda1             36985736  31265484   3841452  90% /

grub> find /boot/grub/stage1
 (hd0,0)

Also for my linux, note the 'root':
## ## End Default Options ##

title		Ubuntu 9.04, kernel 2.6.28-15-generic
root		(hd0,0)
kernel		/boot/vmlinuz-2.6.28-15-generic
root=UUID=77bd82c4-c1ff-4a63-88e5-19ddac9a252d ro quiet splash vga=773
initrd		/boot/initrd.img-2.6.28-15-generic






More information about the ubuntu-users mailing list