yc2
November 18th, 2009, 11:45 AM
Hi,
I am writing some instructions (in Swedish) for how to repair the MBR when it has been overwritten by f.ex. the installation of Windows.
I used to have a page describing the traditional method using the
find, root & setup commands
Now that GRUB2 has come I will have to add information.
Here I can find information describing the "simple" and the "chroot" methods for reinstalling GRUB2:
https://help.ubuntu.com/community/Grub2#Reinstalling%20from%20LiveCD
First of all I do not understand one part.
In the link, the instruction says:
#8 Chroot into your normal system device:
sudo chroot /mnt
#9 Reinstall GRUB 2:
Substitute the correct device - sda, sdb, etc. Do not specify a partition number.
sudo grub-install /dev/sdX
is this correct? If I chroot into an older system will not the OLDER GRUB (maybe GRUB Legacy) be reinstalled using this method? (The instruction says that GRUB2 will be installed.)
To my question:
Which method should I recommend to which user?
Are these reasonable recommendations?
1. If you have a Cd with GRUB Legacy and a system with GRUB Legacy, you can use these to repair according to the "find, root & setup commands"
2. If you have a Karmic CD and GRUB2 on your disk you can use either the the "simple" or the "chroot" method in the link. This will install GRUB2 on your MBR.
3. If you have a Karmic CD and GRUB Legacy on your disk, you can use the "chroot" method to reinstall GRUB Legacy on your MBR.
Thanks for advice.
I am writing some instructions (in Swedish) for how to repair the MBR when it has been overwritten by f.ex. the installation of Windows.
I used to have a page describing the traditional method using the
find, root & setup commands
Now that GRUB2 has come I will have to add information.
Here I can find information describing the "simple" and the "chroot" methods for reinstalling GRUB2:
https://help.ubuntu.com/community/Grub2#Reinstalling%20from%20LiveCD
First of all I do not understand one part.
In the link, the instruction says:
#8 Chroot into your normal system device:
sudo chroot /mnt
#9 Reinstall GRUB 2:
Substitute the correct device - sda, sdb, etc. Do not specify a partition number.
sudo grub-install /dev/sdX
is this correct? If I chroot into an older system will not the OLDER GRUB (maybe GRUB Legacy) be reinstalled using this method? (The instruction says that GRUB2 will be installed.)
To my question:
Which method should I recommend to which user?
Are these reasonable recommendations?
1. If you have a Cd with GRUB Legacy and a system with GRUB Legacy, you can use these to repair according to the "find, root & setup commands"
2. If you have a Karmic CD and GRUB2 on your disk you can use either the the "simple" or the "chroot" method in the link. This will install GRUB2 on your MBR.
3. If you have a Karmic CD and GRUB Legacy on your disk, you can use the "chroot" method to reinstall GRUB Legacy on your MBR.
Thanks for advice.