Element_Epsilon
May 5th, 2003, 12:27 PM
This is just a quick tutorial on how to remove a Linux partition and boot loader from a dual boot system. The tool I will be using, the Power Quest Partition Magic 7.0.
Let’s just say that your system is a RedHat8.0 and Windows XP
Okay, so you have created a Linux partition, installed a boot loader and now you want to get rid of it and possible go back to windows. But, you don’t want to loose any info that you have on your windows partition.
The first thing that you will want to do is delete the partition. DO NOT do this. Usually, and this depends on the boot loader, if you delete the partition before the boot loader, the system will halt and wont go anywhere because when it gets to the boot loader it cant find what its looking for. I.e., the Kernel and other critical files so you need to delete the boot loader first.
Now, because we are talking about Win XP, it makes things a lot easier by making use of its ‘repair console’ which can be accessed best by the install disk for windows. If your bios is set to load from the CD before the HDD, then the boot loader will be ignored and it will boot into the XP CD. From there, follow the on-screen directions until is requires you to press ‘R’ to get into the recovery console. Do so, and choose the windows partition you want to access. If you only have 1 windows partition, just press 1. you will be required to input the administrators password if there is one.
This password is not the password used for an ‘administrator’ account in XP, but the ‘core’ password if I may. Then it will bring up a command prompt. Type this in the corresponding order:
Fix mbr
Fix boot
Ok, the fix mbr (Master Boot Record) repairs and removes anything written to the boot sector of your HDD. So, your boot information will be gone. This mean that the boot loader is gone. But, so is the info that boot your comp into windows. That is what the second command is for. Fix Boot restores the boot sector to what it would look like after windows was installed. However, if the boot loader was not deleted first, then it would not work. Make sure you place both commands in that order. The exit the CD menu following the prompt.
Once in windows, you can use Partition Magic to delete the Linux partition. Don’t worry about having to boot into partition magic through the boot disks, as the partition you are deleting has nothing to do with the active partition (windows).
The resize your windows partition to which ever you want, and then you will need to restart you computer. Once this is done, you will be all ready to go.
Let’s just say that your system is a RedHat8.0 and Windows XP
Okay, so you have created a Linux partition, installed a boot loader and now you want to get rid of it and possible go back to windows. But, you don’t want to loose any info that you have on your windows partition.
The first thing that you will want to do is delete the partition. DO NOT do this. Usually, and this depends on the boot loader, if you delete the partition before the boot loader, the system will halt and wont go anywhere because when it gets to the boot loader it cant find what its looking for. I.e., the Kernel and other critical files so you need to delete the boot loader first.
Now, because we are talking about Win XP, it makes things a lot easier by making use of its ‘repair console’ which can be accessed best by the install disk for windows. If your bios is set to load from the CD before the HDD, then the boot loader will be ignored and it will boot into the XP CD. From there, follow the on-screen directions until is requires you to press ‘R’ to get into the recovery console. Do so, and choose the windows partition you want to access. If you only have 1 windows partition, just press 1. you will be required to input the administrators password if there is one.
This password is not the password used for an ‘administrator’ account in XP, but the ‘core’ password if I may. Then it will bring up a command prompt. Type this in the corresponding order:
Fix mbr
Fix boot
Ok, the fix mbr (Master Boot Record) repairs and removes anything written to the boot sector of your HDD. So, your boot information will be gone. This mean that the boot loader is gone. But, so is the info that boot your comp into windows. That is what the second command is for. Fix Boot restores the boot sector to what it would look like after windows was installed. However, if the boot loader was not deleted first, then it would not work. Make sure you place both commands in that order. The exit the CD menu following the prompt.
Once in windows, you can use Partition Magic to delete the Linux partition. Don’t worry about having to boot into partition magic through the boot disks, as the partition you are deleting has nothing to do with the active partition (windows).
The resize your windows partition to which ever you want, and then you will need to restart you computer. Once this is done, you will be all ready to go.