Dual-boot grub2

Asked by Tom on 2010-04-04

Hi :)

The advice in
https://help.ubuntu.com/community/WindowsDualBoot#Recovering%20GRUB%20after%20reinstalling%20Windows

does not seem to work with Grub2. Is there a good guide on how to fix the MBR for Grub2?

Regards from
Tom :)

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu yelp Edit question
Assignee:
No assignee Edit question
Solved by:
Maxim Petrov
Solved:
2010-04-05
Last query:
2010-04-05
Last reply:
2010-04-04
Best Maxim Petrov (maximpetrov) said : #1

Boot from LiveCD Ubuntu 9.10 and then execute in shell

sudo grub-setup '(hd0)'

Tom (tom6) said : #2

Thanks Maxim Petrov, that solved my question.

Tom (tom6) said : #3

Hi :)

Maxim, I thought you deserved the karma points for that because you got an answer to me so fast but i think that's for grub1.

This guide for grub2
https://help.ubuntu.com/community/Grub2#Reinstalling%20from%20LiveCD
is what fixed the problem. A full re-install of the entire grub is probably more than i really needed but it ensured the whole problem got fixed. Hopefully i will be able to add the link to the dual-boot page soon :)

Good luck and regards from
Tom :)