Problem reinstalling GRUB

Posted by DisgruntledGoat on Super User See other posts from Super User or by DisgruntledGoat
Published on 2010-04-14T20:23:26Z Indexed on 2010/04/14 20:33 UTC
Read the original article Hit count: 276

Filed under:
|
|

I have a PC that dual-boots Ubuntu and Windows Vista. I recently reinstalled Windows Vista after some problems and now the bootloader's gone.

I've been trying to follow this Ubuntu community guide but it's not working. I have Grub Legacy according to the first part (I installed Ubuntu 9.04 originally then upgraded).

From the 9.04 LiveCD, I ran this:

sudo grub-install --root-directory=/media/disk /dev/sda5

sda5 is the Ubuntu partition. I get this output:

grub-probe: error: Cannot open `/boot/grub/device.map`
[: 494: =: unexpected operator
Installing GRUB to /dev/sda5 as (hd0,4)...
Installation finished.No errors reported.
This is the contents...(etc)

(hd0)   /dev/sda

In the bit below, when I run setup (hd0) I get an error, "Error 17: Cannot mount selected partition"

Little help?

© Super User or respective owner

Related posts about ubuntu

Related posts about grub