grub-install --root-directory=/tmp/mnt /dev/sda
Should that be boot-directory rather than root-directory? I can find no mention of root-directory in the documentation.
Geoff
]]>cat /proc/partitions
You will get all the existent partitions sda1, sda2, sdd1,... Create a directory:
mkdir /tmp/mnt
and mount the first partition:
mount /dev/sda1 /tmp/mnt
You can see the content of this partition typing:
ls /tmp/mnt
If it contains the /boot directory you hit the target. In this case, you will be able to restore the grub by the following way:
grub-install --root-directory=/tmp/mnt /dev/sda
Otherwise, umount the partition:
umount /tmp/mnt
and try with another one.
]]>error: no symbol table
Just so we have it on the forum I list the solution below.
To list the name of your harddrive type the command:
lsblk
Then:
sudo grub-install /dev/sda (if your harddrive is sda)
sudo update-grub
sudo reboot