PDA

View Full Version : [ubuntu] grub reinstalled but in shell mode, can't load ubuntu or windows



daudiam
May 20th, 2010, 07:38 PM
I had Ubuntu 9.04. But when I installed Windows also, the grub was overwritten. To reinstall the grub, I took a live cd of 9.10 and typed the following

sudo mount /dev/sda8 /mnt
sudo grub-install --root-directory=/mnt /dev/sda

No error message came, but when I restarted my computer, it showed


GRUB 1.97~Beta4

sh:grub>

Perhaps its the command line mode of grub. I want a graphical mode so that I can easily boot either Windows or Ubuntu.

daudiam
May 24th, 2010, 03:27 AM
Is there any way or should I just reinstall ?

wojox
May 24th, 2010, 03:38 AM
What does this command tell us:


sudo fdisk -l

Try reinstalling it again like this:


sudo grub-install --root-directory=/mnt/ /dev/sda

You may have left out a forward slash.