heatpumpcontrol
March 27th, 2010, 11:21 PM
I'm using the Live CD and have followed steps to recover grub2 after XP install. (damn Windows)!
Upon rebooting I get the grub> prompt with no where to go. Upon installing grub via the Live CD I get this:
root@ubuntu:~# sudo grub-install --root-directory=/mnt/ /dev/sda
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
(hd1) /dev/sdb
root@ubuntu:~#
Any help?
Update:
When I do this link (http://linux.shocr.com/linux-blog/ubuntu-live-cd-repair-grub2.html), upon doing the
sudo chroot /mnt
I get this:
root@ubuntu:~# sudo chroot /mnt
chroot: cannot run command `/bin/bash': Exec format error
Help
Upon rebooting I get the grub> prompt with no where to go. Upon installing grub via the Live CD I get this:
root@ubuntu:~# sudo grub-install --root-directory=/mnt/ /dev/sda
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
(hd1) /dev/sdb
root@ubuntu:~#
Any help?
Update:
When I do this link (http://linux.shocr.com/linux-blog/ubuntu-live-cd-repair-grub2.html), upon doing the
sudo chroot /mnt
I get this:
root@ubuntu:~# sudo chroot /mnt
chroot: cannot run command `/bin/bash': Exec format error
Help