Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Since Windows still does not offer means to skip rewriting the MBR, what can I do before reinstalling Windows to get Grub2 back into the MBR as easy as possible? (I'll also appreciate it if the answer then describes how to restore Grub)

share|improve this question
add comment

2 Answers

up vote 3 down vote accepted

Some people have been able to get NTLDR to chain to grub: http://stringofthoughts.wordpress.com/2009/04/27/booting-linux-from-ntloader-windows-bootloader/

Although in practice it's easier to use a live CD. I usually do something like:

mount /dev/sda2 /mnt/somewhere # mount the linux partition
chroot /mnt/somewhere bash
mount /proc
grub-install /dev/sda2
share|improve this answer
    
+1, I took the liberty to quote your answer to my similar question at SU, but if you repost it there yourself I'll accept your post and delete my quote –  Tobias Kienzler Mar 18 '11 at 10:26
add comment

Nothing. Just make sure that you have a live CD around. After you install Windows and by the way let it overwrite the MBR, just boot into the live CD and restore Grub.

Regarding restoring Grub, it has been asked before.

share|improve this answer
    
+1 and thanks (I accept pjc50's answer though for the link and the minimal code) edit though your answer here also helps –  Tobias Kienzler Mar 17 '11 at 11:28
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.