How to install GRUB only from Ubuntu 10.04 Live CD
My GRUB2 has been corrupted after booting into Windows7. I am not able to install the legacy GRUB from Ubuntu 8.04 Live CD becoz the current file system is Ext4.
How to install GRUB2 only from the Ubuntu 10.04 live CD? Will this make me able to boot both windows and linux? I have only one hard drive and Linux is in sda8. |
|
Thanks a lot EricTRA. That will be very helpful.
Thanks and Regards |
Hi,
You're welcome, if you have problems applying the commands or they result in errors, feel free to post here. Kind regards, Eric |
I'm probably living in the past, but this is why I boot using legacy grub installed to a FAT32 partition outside any OS. It's easy to manipulate menu.lst from anywhere, and an OS re-install doesn't foul up the boot files.
Of course, the MBR can get overwritten, but that's why I keep a live CD linux image in the 1st partition of another drive (in a FAT32 partition) that can be booted direct from BIOS and used to fix grub or most anything else. I could have used a normal install there (on the 2nd drive) but then I couldn't manipulate _that_ menu.lst from any OS. There's got to be a better - and safer - way to skin this cat with grub2, but I haven't found it yet... Z. |
Quote:
|
You say your linux is on sda8 and if it is the one you want to boot from this should work from terminal
sudo mount /dev/sda8 /mnt sudo grub-install --root-directory=/mnt /dev/sda sudo umount /mnt exit reboot |
Quote:
Works o.k. for me on the systems I have done it on. The block list forcing a rerun of the lilo command all the time was why I gave up on lilo. grub2 isn't quite as bad. |
Quote:
|
Quote:
|
Thank you Pro !
Larry!
I've registered here just to say you "THankS A loT!" Your solution is awesome! It works for me and get my system back /0x90 Quote:
|
Quote:
|
All times are GMT -5. The time now is 06:22 AM. |