grub 2 ubuntu 9.10 – error

I try to install Ubuntu 9.10 on a computer with specification like this:
CPU AMD Athlon
Motherboard Matsonic ms8158e with VGA Chipset VIA
Memory DDR1 256mb
Harddisk seaget 40gb

The installation went well. Nothing error. But after finish installation and rebooting, the grub won’t show up. Only give me an error of invalid. I don’t know what happened. So Try to re-install again but no result. Then fixing the grub only. But still the same.

I found out then the grub already using grub 2. A new grub version. The grub I know is grub 0.94 or 1.5. So after reading the manual in wiki, it is said that grub 2 has a different command in prompt of grub >.

Grub 2 do not use menu.lst anymore. All configuration is autodetect. And create grub.cfg as a replacement of menu.lst. But something funny, we can not edit grub.cfg manually. Everything goes auto. We have to use grub-install and grub-update to modify the grub.cfg and also create device.map in /boot/grub.

So there are some possibilities that your grub2 won’t work.
1. If you miss “grub.cfg” file,use following to recreate:
mount –bind /proc /mnt/proc
mount –bind /dev /mnt/dev
mount –bind /sys /mnt/sys
chroot /mnt update-grub
umount /mnt/sys
umount /mnt/dev
umount /mnt/proc
exit

2. If your grub just need to re-install to MBR
sudo -i
mount /dev/sda1 /mnt
grub-install –root-directory=/mnt/ /dev/sda

3. Grub 2 command that I noticed
grub rescue>set prefix=(hd0,1)/boot/grub
grub rescue>set root=(hd0)
grub rescue>insmod normal
grub rescue>normal

Then your grub menu supposed to be appear.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.