PDA

View Full Version : [ubuntu] Ubuntu 9.04 Grub Error 2



apoorva.iitm
October 29th, 2009, 08:45 AM
Hi,

I am receiving grub error 2 after installing ubuntu 9.04 on my machine which was previously having win xp on another drive.
I have attached the result.txt generated by running
sudo bash ~/Desktop/boot_info_script*.sh
Please help.

Thanks,
Apoorva

apoorva.iitm
October 30th, 2009, 06:22 AM
ubuntu@ubuntu:~$ sudo mount /dev/sda3 /mnt
ubuntu@ubuntu:~$ sudo grub-install --root-directory=/mnt --recheck /dev/sda
Probing devices to guess BIOS drives. This may take a long time.
grub-probe: error: Cannot open `/boot/grub/device.map'
[: 494: =: unexpected operator
Installing GRUB to /dev/sda as (hd0)...
Installation finished. No error reported.
This is the contents of the device map /mnt/boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.

(fd0) /dev/fd0
(hd0) /dev/sda