How to restore Grub after Windows 7 installation
I just installed Windows 7 beta and as usual my Grub installation gone :/ (thanks)
Googling a bit... i read some topics in ubuntuforums.org about this problem and then i decided to make a how to about restoring grub correctly (tested, it works).
1. Boot Ubuntu from a Live cd (i used Ubuntu 7.04 disc, it worked anyway :p )
2. Open a terminal window and put these commands:
sudo grub
root (hd0,0) <---- Here you have to put the partition where your Ubuntu is installed, my Ubuntu partition is sda1 so it's hd0,0 for grub (if sda2, then hd0,1, etc)
setup (hd0) <---- The hard drive where you are installing Grub
quit
Someone at this point talk about changing grub menu list...updating it with Windows 7 option... but it's not needed.
I always had dual-boot with Ubuntu and Windows XP, and the option i used to boot Windows XP this time works for both Windows versions. I explain:
now i've istalled in my HD: Ubuntu, Windows XP and Windows 7. When i wanna boot WinXP or Win7, i just select the usual option (the one called Windows, in my menu.lst) cause it will show me what of two Microsoft's OS i wanna boot :)
Then this is my menu.lst:
title=WindowsAttention, some lines are in multiple rows because the page isn't large enough.
rootnoverify (hd0,1)
makeactive
chainloader +1
title Ubuntu 8.10, kernel 2.6.27-11-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.27-11-generic root=UUID=6b957e6b-1539-403f-b322-38e7776f5947 ro quiet splash
initrd /boot/initrd.img-2.6.27-11-generic
quiet
title Ubuntu 8.10, kernel 2.6.27-11-generic (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.27-11-generic root=UUID=6b957e6b-1539-403f-b322-38e7776f5947 ro single
initrd /boot/initrd.img-2.6.27-11-generic
title Ubuntu 8.10, memtest86+
root (hd0,0)
kernel /boot/memtest86+.bin
quiet
I hope this post will help you :) Tell me if any part isn't easy to understand (i know my english isn't best).
Bye


0 commenti:
Posta un commento