LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 10-05-2010, 11:34 PM   #1
baronobeefdip
Senior Member
 
Registered: Jul 2009
Distribution: Debian Squeeze
Posts: 1,203

Rep: Reputation: 32
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
 
Old 10-06-2010, 12:39 AM   #2
yancek
Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 5,098

Rep: Reputation: 810Reputation: 810Reputation: 810Reputation: 810Reputation: 810Reputation: 810Reputation: 810
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:

http://www.dedoimedo.com/computers/grub-2.html
 
Old 10-06-2010, 08:33 AM   #3
baronobeefdip
Senior Member
 
Registered: Jul 2009
Distribution: Debian Squeeze
Posts: 1,203

Original Poster
Rep: Reputation: 32
how do youre-install grub though can you use the ubuntu live cd to do it or is there an easier way
 
Old 10-06-2010, 12:00 PM   #4
yancek
Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 5,098

Rep: Reputation: 810Reputation: 810Reputation: 810Reputation: 810Reputation: 810Reputation: 810Reputation: 810
I haven't used Grub 2. The tutorial link I posted, go to section 4.G, reinstall grub.
 
Old 10-06-2010, 12:09 PM   #5
basheer
Member
 
Registered: Mar 2009
Location: Bangalore, India
Distribution: CentOS6.5, CentOS7, Ubuntu14.04
Posts: 178

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Windows Guy Tries Linux Mint: Part 2 Of Our Distro For Windows Converts Review LXer Syndicated Linux News 0 09-10-2008 08:12 PM
Frugal install of GRUB based distro on a USB flash drive from Windows/DOS ? kumarkumar Linux - Newbie 3 06-02-2008 05:26 PM
Help with deleting a linux distro partition to install another linux distro instead gexecuter Linux - Newbie 1 08-04-2007 05:44 PM
Recorded audio sounds horrible, but the untouched line-in sounds ok? justin218 Linux - Newbie 1 10-14-2003 06:11 PM
How do I partition my disk leaving "untouched" the win? roque Linux - Newbie 1 02-05-2002 10:24 AM


All times are GMT -5. The time now is 10:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration