When i was trying to reinstall grub for my ubuntu 10.04 from a 11.04 live cd, i was getting error as:
grub-probe error: error: cannot find a drive for /media/Linux/boot/grub (is /dev mounted?)My ubuntu partition is sda6 and i was using the following command:
sudo grub-install --boot-directory=/media/Linux/boot /dev/sda6 --recheckPlease resolve this error for me..
2 Answers
I rebooted and the issue wasn't any more.
6nagi9, the shortest way is, from a terminal in a live CD environment:
sudo fdisk -l(to figure out in which patition is your boot directory located)sudo mount /dev/sdxX /mntsudo grub-install --root-directory=/mnt/ /dev/sda --recheck(to install in the MBR of your first harddrive)
It should say: Instalation finished. No error reported.
...umount your /mnt and reboot. If you have a recent windows install probably you won't see it in your grub menu, bet that's no sweat, from within your ubuntu install run sudo update-grub and it will find your windows install and update your grub.cfg accordingly.
Hope it helps...
1