How to Fix Grub2 on Ubuntu 9.10
Joe Engressia, Monday, December 14, 2009When you install windows OS on your computer, probably your grub of Ubuntu 9.10 will disappear and you will be directed on Windows. Or, when you hit enter you got information that Your grub2 is error. We will share how to repair grub2 of Ubuntu 9.10. Grub2 can be faster to boot on your OS.
- Boot from USB or live cd of ubuntu 9.10, then select Run without change.
- If you have on Desktop of Ubuntu 9.10, please go to terminal. We will check root and boot of your Ubuntu 9.10 via terminal.
e.q. On my pc, root and boot were on /dev/sda1
sudo cfdisk - Mount your root on /media/myroot
Create new folder on /media
sudo mkdir /media/myroot
Mount your root now!!
sudo mount /dev/sda1 /media/myroot - We have to bind mount all our devices from USB to the HDD
sudo mount --bind /dev/ /media/myroot/dev - Chroot on your root and fixing grub2 of Ubuntu 9.10
sudo chroot /media/myroot
run the command grub-install again to install grub to your /dev/sda
sudo grub-install /dev/sda
sudo grub-install --recheck /dev/sda - Exit, unmount and restart
sudo exit
sudo unmount /media/myroot
sudo reboot
After restart, your grub 2 will appear again and ready boot using 2 OS. I don't issue any guarantee It will work for You. Please comment us if you get some troubles, We will help you as soon as possible.^
Let's fix grub2 of Ubuntu 9.10.
Subscribe to:
Post Comments (Atom)
Thank you Joe, these instructions solved my problem! Before that I spent 5 hours trying to recover grub, not realizing that I had grub2 :) On your step 5, I encountered a problem that grub-install did not see the device map which should be in /boot/grub/device.map. So I manually created that file with the following line in it:
(hd0) /dev/sda
After that everyting went smoothly.
@my good friend
yap, don't mention it.
happy ubuntu LOL.
After doing
"sudo grub-install /dev/sda"
I got a nice response:
"sudo: /etc/sudoers is mode 0666, should be 0440
Segmentation fault"
me is not happy :(
@my good friend
please follow these article step by step,
and your grub2 will recovery again. ^_^
^_^
thanks a lot!!!!
@necko
it doesn't matter lol.
thanks this worked well.. And if anybody was wondering it does not work with an older live disk (9.04).
Thanks--restored my grub and saved me time!
thanks man this really works.
The reason it doesn't work with an older live disk such as 9.04 is because 9.04 used Grub Legacy not Grub2.
thanks for sharing..this is my first time i visit your site...hope i'll learn much from this site..