PDA

View Full Version : [ubuntu] 2 HDDs, 2 OSs, grub signature error



Dayofswords
January 29th, 2010, 10:48 AM
i've had xp on a hard drive for a while and also had a hard drive just doing nothing, si i put ubuntu on it and had it as the first booting disk with xp still hooked up, installed fine, everything works, but after running update-grub2 to get the xp as an option, it outputted this

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/sdb1
grub-probe: error: Cannot find a GRUB drive for /dev/sdb1. Check your device.map.

done


with that error there i decided to see if it even worked with xp. restarted and choose xp, it gave me a signature error and press any key to continue.

can i fix this? so that i can boot into ubuntu or xp even though they are on different drives, currently i manually switch the cables to boot

byStanderone
January 29th, 2010, 12:33 PM
...sudo update-grub

audiomick
January 29th, 2010, 12:46 PM
...sudo update-grub

to elaborate a bit,

you need to be booted into Ubuntu with both HDs plugged in.

Open a terminal
system> accessories> terminal

type in

sudo update-grub
an then you user password when asked for it. You wont see what you are typing.

That makes grub go off and have another look at what is there, and update it's config file.

darkod
January 29th, 2010, 01:12 PM
Also if it keeps complaining about device.map I think you generate a new one with:

sudo grub-install --recheck

meierfra.
January 29th, 2010, 11:56 PM
Also if it keeps complaining about device.map I think you generate a new one with:


sudo grub-install --recheck

The command to generate the device.map is


sudo grub-mkdevicemap

darkod
January 30th, 2010, 12:12 AM
The command the generate the device.map is


sudo grub-mkdevicemap

Sorry. :oops:

Dayofswords
January 30th, 2010, 10:42 AM
...sudo update-grub

to elaborate a bit,

you need to be booted into Ubuntu with both HDs plugged in.

Open a terminal
system> accessories> terminal

type in

sudo update-grub
an then you user password when asked for it. You wont see what you are typing.

That makes grub go off and have another look at what is there, and update it's config file.
well, that is what i did, just didnt put sudo in the description(guess i should next time), thought it was implied for grub changes.
they are both plugged in, i just have to manually switch them to boot since i have yet to figure out how to get into bios to changed the boot order(its old, doesnt tell me how, eg. F5=setup, google didnt help so much so far)

off to go to try 'sudo grub-mkdevicemap', i did attach the xp drive after installing, so that could be why
*opens cover to swap*

munnster
April 14th, 2010, 01:11 PM
The command to generate the device.map is


sudo grub-mkdevicemap

Thanks for this! It worked perfectly! :P