-   Linux - General (
-   -   how do i re-install windows while still having my linux distro untouched (

baronobeefdip 10-05-2010 10:34 PM

how do i re-install windows while still having my linux distro untouched
i multibooted with windows 7 and ubuntu 10 lucid, windows crashed for some reason and ubuntu remained running live and strong, but i want to do a clean install of windows while still having my installation of ubuntu untouched. i tried doing this on several machines but windows ended up becoming the dominant bootloader and i couldn't get grub to recognize the windows os partition and the linux partition for booting but when i did i only got the linux distro and i didn't see windows when i tried to boot into the distro it just re-directed to the grub menu it just kept doing this until i decided to turn the machine off

is there a way to install windows and dual boot it with linux if linux was installed first

yancek 10-05-2010 11:39 PM

The first thing I would suggest you do is get your partition information that is current so you know which partitions you have windows 7 on. If it is an OEM you may have a separate boot partition as well as a recovery partition. Make a note of this running: sudo fdisk -l command.

windows 7 will overwrite the Grub entry in the master boot record without informing you and AFAIK, there is nothing to be done about this. You can reinstall Grub after re-installing windows.

Generally in the above circumstances, you would put an entry in the grub menu.lst or grub.cfg file for windows after the install. If you are using Ubuntu Lucid you will have Grub 2. Haven't used it so all I can do is refer you to this tutorial on Grub 2:

baronobeefdip 10-06-2010 07:33 AM

how do youre-install grub though can you use the ubuntu live cd to do it or is there an easier way

yancek 10-06-2010 11:00 AM

I haven't used Grub 2. The tutorial link I posted, go to section 4.G, reinstall grub.

basheer 10-06-2010 11:09 AM

I think you can use gparted livecd and reinstall grub.
Open a terminal
#grub-install /dev/sda

All times are GMT -5. The time now is 01:36 AM.