[Reinstall Windows]

Asked by Random Linux Newbie

LIke the 1000 other people who have posted here, i have an issue with dual booting windows 7, with ubuntu.

I am trying to get the dual booting occurring on the same hard disk. I have a windows partition, a Linux root drive a 8GB swap area partition, and a NTFS storage.

I have come from windows, as a linux newbie, and i must admit, i quite like linux.

The problem i have, that simply cannot be sorted by just "install windows first", is that sometimes i find the need to format my windows drive and reinstall windows. This, as many of you know, wipes out my grub boot loader:(

A fix i have considered my work, would be to install the GRUB boot loader on either the swap space (unlikely that this would work) or my NTFS storage. The problem is, consulting too many sites, that assume you are a Linux guru. For an intermediate windows user, How would you suggest i attempt this? I have gathered the stage 1, stage 2 and menu files, but i have no idea how to do anything with them. And final question, since you are not able to partition the spaces any more (there is a limit to the number of partitions you can create) could i set my NTFS storage one to hold the grub files?

I should probably point out, that at this stage, my entire hard drive is easily formatted for any crazy ninja configurations you Ubuntu gurus think would help me out.

Thanks for reading through this, and i hope you can direct me to some more newbie friendly articles/help that will assist me in my dilemma.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu grub2 Edit question
Assignee:
No assignee Edit question
Solved by:
Nitesh Mistry
Solved:
Last query:
Last reply:
Revision history for this message
Best Nitesh Mistry (mistrynitesh) said :
#1

When dual-booting, it is always better to install Ubuntu after installing windows. However, in case, as you mentioned, you need to reinstall windows do as follows:
1. When installing windows, be very careful, not to touch the Ubuntu partition.
2. After windows is installed, grub must have vanished as expected. So grab a LiveCD of Ubuntu and boot using that cd.
3. When in LiveCD mode, reinstall grub as directed here. https://help.ubuntu.com/community/Grub2#Reinstalling%20GRUB%202

Revision history for this message
delance (olivier-delance) said :
#2

Swap space is totaly excluded, as it has no file system. The core of problem is windows overwrite MBR (1st sector of disk) at each instalation. One workaround is booting on a USB key, which will hold its own MBR but give hand to "/boot" directory of hard disk Ubuntu partition. Another solution will be to backup MBR. I will think at this. Please post tomorrow to awake me.

Revision history for this message
delance (olivier-delance) said :
#3

Swap space is totaly excluded, as it has no file system. The core of problem is windows overwrite MBR (1st sector of disk) at each instalation. One workaround is booting on a USB key, which will hold its own MBR but give hand to "/boot" directory of hard disk Ubuntu partition. Another solution will be to backup MBR. I will think at this. Please post tomorrow to awake me.

Revision history for this message
Random Linux Newbie (cyborg670) said :
#4

Mistry, thankyou for your response (sorry i was so late in responding), this seems like a great way to solve the issue, and i thankyou for providing this

Delance, i would appreciate if you could tell me how i would put the MRB on the USB drive, because this seems like a great answer

Thankyou all for your quick responses

Revision history for this message
Random Linux Newbie (cyborg670) said :
#5

Thanks Nitesh Mistry, that solved my question.