LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 02-02-2004, 12:48 PM   #1
ksoma
Member
 
Registered: Jun 2003
Location: Austin,TX most of the year...in Euless,TX the rest of it
Distribution: RH 9.0
Posts: 154

Rep: Reputation: 30
What will happen to GRUB if i reinstall windows?


The setup I have right now is Windows is on C: and i have a separate drive on D:...I have my C: drive backed up on linux and am going to delete the C: partition and install windows to that drive. Will that cause problems with GRUB recognizing the DOS partition even though I have re-installed windows in the same place? Thanks.

-Keerthan
 
Old 02-02-2004, 12:54 PM   #2
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
Hi.

Windows *will* overwrite your MBR, so you'll have to re-install grub after. Better keep a boot disc handy...

Dave
 
Old 02-02-2004, 01:21 PM   #3
ksoma
Member
 
Registered: Jun 2003
Location: Austin,TX most of the year...in Euless,TX the rest of it
Distribution: RH 9.0
Posts: 154

Original Poster
Rep: Reputation: 30
Ahh...ok..thanks. Just to make sure, after reinstalling, and then putting in the GRUB boot disk....there should be no problems when GRUB is identifying all the linux drives.. Is that correct?

-Keerthan
 
Old 02-02-2004, 01:35 PM   #4
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
When you install windows, you won't be able to get into Linux without either a boot floppy, or a rescue CD and you'll have to boot Linux to re-install grub

Once you've booted Linux, make a copy of your grub.conf file (just to be sure), then re-install grub (see 'info grub' for details). After that copy your old grub.conf file back to where it should be (if it was overwritten by re-installing grub), and you should be all set.

Basically, all you have to do is get grub back onto the MBR, and use the same grub.conf that you're using now.

Dave

P.S. There is an easier way to do this:
Once you've installed windows, put the first redhat cd in, and go through the motions of reinstalling Linux. Don't repartition or install anything except the kernel, then the installer will detect the windows installation, and your Linux installation, and install grub and grub.conf for you.

Be extremely careful with this, though - one wrong move could nuke everything. I accept no responsibility if this goes titsup.

Last edited by ilikejam; 02-02-2004 at 01:39 PM.
 
Old 02-02-2004, 03:30 PM   #5
ksoma
Member
 
Registered: Jun 2003
Location: Austin,TX most of the year...in Euless,TX the rest of it
Distribution: RH 9.0
Posts: 154

Original Poster
Rep: Reputation: 30
Im using the cd, and it's at the point where it says to skip the media test and start the installation. This should take me to a page where it asks which packages to install right? Which one exactly should I install....I'm scared to go ahead with pushing the OK until I'm assured it's not going to just start doing a clean install ....

-Keerthan
 
Old 02-02-2004, 04:07 PM   #6
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
OK, you should opt for the upgrade option, and keep your current partitions.

Select a minimum install, and select 'Select individual packages' (or similar). Then deselect ALL packages except the kernel (a single package called kernel-2.4.20-8, i believe).

The install should then go as usual and at some point you'll get the grub installer part, which should detect your windows installs.

Dave

P.S. I say again, this can be dangerous.
 
Old 02-04-2004, 01:20 PM   #7
ksoma
Member
 
Registered: Jun 2003
Location: Austin,TX most of the year...in Euless,TX the rest of it
Distribution: RH 9.0
Posts: 154

Original Poster
Rep: Reputation: 30
Thanks ilikejam Everything worked out like you said. I was just wondering what the reason was for installing the kernel for GRUB to reinstall itself. I tried doing it w/o any packages at first and it said I needed to choose a kernel package for it to work. Was just curious to why it did that...thanks again.

-Keerthan
 
Old 02-04-2004, 02:53 PM   #8
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
I'm not too sure. I would have thought it was because it needed to know exactly which kernel to tell Grub to boot (so installing the kernel from the CD would be ideal).

Having thought about it, though, the installer can recognise other Linux installations as well as windows installations (or so I'm led to believe), so I actually can't think of any reason for it.

Dave

P.S. Glad it's working!
 
  


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Grub error 17, and wont reinstall using grub-install! chiefreborn Linux - General 6 06-06-2007 10:29 AM
How to reinstall GRUB after WIndows installation Oracbase Linux - Software 9 11-18-2005 08:43 PM
reinstall windows, reinstall GRUB too? leupi Linux - Software 1 05-07-2005 10:50 AM
Can't get rid of LILO or GRUB bootloaders to reinstall Windows on Laptop CorpChAoS Linux - Newbie 5 11-25-2003 01:23 AM
Reinstall GRUB Staticreator Linux - Software 0 08-10-2003 04:14 PM


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

Main Menu
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