Solved: Re-installing Windows While Linux is Installed

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

nuaimat

Thread Starter
Joined
Jan 13, 2006
Messages
7
Hi everybody

I have two OS's , Windows XP(C:\) and RedHat Linux 9 (on other partition i think /dev/hda6)


My Micro$hit windows is 'ill' ,lol , i really can't find another word describing my windows status ...:p


windows is very slow , no reason as always ..

I have to Re-Install my Windows XP ..
I have GRUB and as a default bootloader ..



My Question is :

How can i install a fresh copy of Windows on C:\ drive without effecting the MBR (and as a result i cant run GRUB) ... i didn't install Windows yet , i just think it will update the MBR and erase GRUB ?? am i wrong ?

Thanx in advance
 

jiml8

Guest
Joined
Jul 2, 2005
Messages
2,634
You can't.

What you should do is back up your MBR from Linux. This command:

dd if=/dev/hda of=mbrimage bs=512 count=1

will do it.

Also make sure you have a linux boot disk so that you can boot into linux from the boot disk.

Then, blow off the mbr and replace it with a standard Windows mbr using the windows repair facilities, and repair your Windows installation (if you can).

After you have repaired your windows system, boot into linux with your boot disk, then execute this command:

dd if=mbrimage of=/dev/hda bs=512

and your dual-boot mbr will be rewritten.
 

nuaimat

Thread Starter
Joined
Jan 13, 2006
Messages
7
Really Thanx for ur fast reply (y)
i will Do what u have said ...

but i was wondering (i am curious .. :p )

isn't 512 in
"dd if=/dev/hda of=mbrimage bs=512 count=1"
is a Computer Speicific , depends on my FileSystem ?? or what ? :confused:


can u explain it please ...
 

jiml8

Guest
Joined
Jul 2, 2005
Messages
2,634
The master boot record is the first block on the hard drive and is 512 bytes in length. This is pretty much an industry standard and applies to any IDE, SATA, or SCSI HD (also fibre channel, I am pretty sure).

The MBR is not part of any file system and will be found on every hard drive, whether a boot loader is there or not, because the last 128 bytes is taken up by the partition table.
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Members online

Top