Tuesday, February 2, 2010

Grub loading. The symbol ' ' not found. Aborted. Press any key...

The title of this post was the error reported in my friend's lap.She said,she didn't do anything to cause such a error,I also didn't understand why that error came.Anyway my aim was to fix that error,i go-ogled and find a method to fix that problem.I want to share that with my blog readers.
Her lap had ubuntu 9.10 and Windows 7 in dual boot.
I tried the following commands to fix the problem

1. Boot with LiveCD
2. Open terminal
3. sudo fdisk -l (boot partition may be the one with the asterisk)

4. sudo mkdir /media/root
5. sudo mount /dev/sdaX /media/root, where X is your mount partition (often the one with an asterisk in step 3 above). If the partition that has * is not the linux partition,go to gparted and select the boot flag in linux partition and uncheck the boot flag in other partitions.
6. mount /dev/sdaX /media/root/boot(this command should be executed as root,type sudo su to enter root)
7. Check boot by running ls /media/root/boot. If the mount is correct, you will see files like vmlinuz and memtest
8. sudo grub-install --root-directory=/media/root /dev/sda --recheck

If all is good, you should get:

Installation finished. No error reported.
This is the contents of the device map /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'.

(hd0) /dev/sda

reboot the system,got the usual screen now?? enjoy!!

0 comments:

Post a Comment