PDA

View Full Version : Remove a linux XP dual boot


hegemon666
08-04-2004, 08:56 PM
A while ago I downloaded RedHat Linux 9 and thought I would try it out. I installed it onto my second hard drive, with Windows XP Pro staying on the first. This has set up a dualboot system and I can now quite easily choose between which OS I want to use at boot up. I now want to get rid of linux as I require the second drive for storage. What is the easiest way to remove linux and get back the normal boot up that takes me straight into Windows XP? I guess deleting all the partitions that Linux has created on the second drive would get rid of it but will that also remove the boot menu?

I bet it's a question you get a lot, but I need help!

BillLeeLee
08-04-2004, 09:37 PM
You could keep the Linux / partition - you could format the other partitions on the secondary drive and make them into FAT32 for cross compatibility with Linux and Windows, or NTFS for windows read/write, but Linux read-only (NTFS Write support in LInux is dangerous).

However, if you want to totally scrap Linux, then format the partitions on the second drive and use disk manager in Windows to format them.

To have Windows reclaim the master boot record and get rid of LILO or Grub, boot from the Windows install disk. When it gets past all the driver loading and stuff, hit R to go to recovery console.

Give the administrator password, and then give this command:


fixmbr C:


That should fix the MBR and get rid of LILO or whatever linux bootloader you installed.

hegemon666
08-04-2004, 09:58 PM
This looks like it will work fine


thank you

Im thinking of re installing linux on my other pc now since i can get rid of it on my gaming rig

cisco guy
08-05-2004, 01:35 AM
I'd be curious if it works.

Usually you have to do a rescue from linux disc

RancidWAnnaRIot
08-05-2004, 01:42 AM
yo shoudn't do fixmbr.. or fdisk /mbr.. don't!! use a linux CD boot into rescue mode, and there should be an option to restore windows boot.. using the method as state above could leave you with a NTLDR missing error

j4zzee
08-05-2004, 12:22 PM
I do agree with Rancid, in that you should try your linux distro's recommended boot sector restore method first...

But the use of these commands: BOOTCFG, FIXBOOT, & FIXMBR will be able to repair just about any boot sector problems from a Windows 2K/XP recovery console. I would suggest reading Microsoft's documentation on their proper use; as there is a very specific use order and method to the madness... you should be informed before using those commands... ps; an ntldr missing error can be repaired.

Ahriman
08-05-2004, 01:16 PM
I had this EXACT same problem. All I did was go into the recovery console with my windows XP cd and typed fixmbr C: and it took care of it. I either did the fixmbr or format /mbr... I don't know if that's a command, it was a long time ago so I don't remember exactly which command it was. However, this will fix your problem guaranteed. Good luck.

kuyaglen
08-05-2004, 01:30 PM
^ its c:\fdisk /mbr

That was how I was able to get rid of RH8.

One_Eye
08-06-2004, 09:16 AM
I have done exactly what BillLeeLee described many times, and have never had a problem.

BillLeeLee
08-06-2004, 12:28 PM
I've done it many times, and I've never had a problem either. But YMMV.