View Full Version : [SOLVED] Window boot missing

November 16th, 2011, 06:52 PM
Hi All
I have installed Ubuntu 9.10 on my PC which already has windows XP on it. But, while installing Ubuntu, I disconnected HDD having windows XP OS.

Now, when I reconnected the HDD that has XP, it does not show boot option for XP - Ubuntu is booted automatically. Can anyone please help me to recover the windows boot to allow dual boot option.

November 16th, 2011, 06:54 PM
Because the disk was disconnected during install, ubuntu did not discover it to include it in the boot menu.

Boot ubuntu, open the terminal and run:

sudo update-grub

That will sort it out.

November 17th, 2011, 03:36 PM
Thanks for help!

I tried the update-grub command and but following error ...

Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.31-14-generic
Found initrd image: /boot/initrd.img-2.6.31-14-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Microsoft Windows XP Professional on /dev/sdb2
grub-probe: error: Cannot find a GRUB drive for /dev/sdb2. Check your device.map.


Is there some way to fix this? I would appreciate any help.

November 17th, 2011, 04:10 PM
This is why it's better not to disconnect other disks while installing so that they can be properly discovered.

First run a command to generate new device map and then to update grub:

sudo grub-mkdevicemap
sudo update-grub