LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-28-2004, 08:41 AM   #1
pete-wilko
LQ Newbie
 
Registered: Apr 2004
Posts: 14

Rep: Reputation: 0
Re-install corrupted windows on dual-boot


Hi everyone,

apologies if this has been covered before, but I havn't seen it covered so far in the searches i've done.

I have a friend who has an existing dual boot machine with Win2K & RedHat 9. The boot loader is Grub.

For some reason Win2K has gotten itself corrupted and none of the people around here have any idea what's happened (explorer has been corrupted and file associations are kaput).

So the ideal plan is to re-install win2K (or even change to XP pro) in the same windows partition and keep the existing linux partition.

Will the windows installer detect the existing windows partition and install there, and (fingers crossed) will it leave the MBR alone? Even if we selected an upgrade as opposed to an install option? Or will Windows more than likely overwrite the MBR in which case I guess we'd need a linux bootdisk to recreate the linux partition? (i'm pretty sure I saw a thread on doing that).

Any advice greatly appreciated

Cheers,

Pete
 
Old 04-28-2004, 09:02 AM   #2
gburch
LQ Newbie
 
Registered: Apr 2004
Location: Sheffield, UK
Distribution: Debian Sarge
Posts: 13

Rep: Reputation: 0
Before I give you an answer, let me just state that I've not actually tried this, so what I say may not be accurate, but from experience I can make an educated guess.

When you run the Windows installer, pretty early on it shows a list of hard drives, and asks which you want to install to. The partitions which Windows can see will have a drive letter, so you should select the orginal 2k partition, and use that one. It shouldn't touch the linux partitions at all. Given that Windows can't read/write to linux partitions anyway, there's no reason to assume that the installer can!

As far as grub is concerned, I believe it works by pointing to the appropriate dsk partition, but I've not altered that at all before, so I could be wrong.

If in doubt, my advice would be to run the installer by booting from the CD, and see if it gives any error messages at the disk selection stage. But be careful not to actually re-format that partition until you're ready!

Hope this helps
 
Old 04-28-2004, 09:08 AM   #3
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 64
Hi pete-wilko!

Windows 2000 will overwrite the MBR. There's nothing we can do against that. Still, Win2k and XP plays nice with Linux(seriously). During win2k installation, you will see all your hard-drivers and partitions. Linux partitions may appear as non-dos or non-formated, but Windows won't touch them if you don't want it to. Meaning you can simply install Win2k on the partitions it was and it will work perfectly. I've done it .

But you will lose your boot loader. What you could do is to reinstall _only_ grub again after Win2k.

With Slackware, I put the first disk on the drive and start Slackware as a normal installation. I then mounted the Linux partitions _without_ formating then, skipping a lot of process until I reached the boot loader part (lilo) and reinstalled it. It works perfectly.

I believe Redhat has a repair mode that should work for fixing grub loader. I will leave it for the Redhat experts in this forum since I've not used Redhat for ages (kinda miss it though..ghehe).

Good luck!

Last edited by Mega Man X; 04-28-2004 at 09:11 AM.
 
Old 04-28-2004, 12:46 PM   #4
bruno buys
Senior Member
 
Registered: Sep 2003
Location: Rio
Distribution: Debian
Posts: 1,509

Rep: Reputation: 46
Just take care to backup the menu.lst file, in case you need to copy those lines that grub uses to init the systems.
When I did that, I printed the file, to re-enter manually in the bootloader install part, just in case.
 
  


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
Windows / Mandrake 10.0 dual boot - MBR corrupted rdsmith4 Linux - General 1 08-25-2004 07:48 PM
Linux/Windows dual boot with Windows re-install dhowell1129 Linux - Newbie 6 04-25-2004 04:21 AM
Windows Re-install Question on Dual Boot PC marktin Linux - General 2 04-01-2004 08:16 PM
Preserving my dual-boot after Windows install MissMetal Linux - Newbie 2 02-11-2004 09:57 PM
On Windows and LInux dual boot - why install Windows first? yanar99 Linux - Newbie 13 12-18-2003 09:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:56 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration