Remove Linux and Install Windows XP
I have found that if you have a copy of dos 6.22 you just have to insert the 1st disk and boot up. It will then recommend that it formats your drive before installing dos. Do it and then when it finishes the format exit the dos install without needing to go any further. Then fdisk /mbr and reboot with your windows install disk and you will find dos has totally removed the non dos partitions. (works like a charm).
SUMMARY
This article explains how to remove the Linux operating system from your computer and install Windows XP. This article assumes that Linux is already installed on your computer's hard disk, that Linux native and Linux swap partitions are in use (which are incompatible with Windows XP), and that there is no free space left on the hard disk.
MORE INFORMATION
IMPORTANT: Before you follow the steps in this article, verify that you have a bootable disk or bootable CD-ROM for the Linux operating system, because these steps completely remove the Linux operating system from your computer. If you intend to restore the Linux operating system at a later date, verify that you also have a functional backup of all the information stored on your computer. Additionally, you must have a full release version of Windows XP to use during this installation. If you intend to use a Windows XP upgrade CD-ROM, a CD-ROM of a qualifying Windows product must be available. Setup from the Windows XP upgrade CD-ROM will prompt you for this CD-ROM.
Linux file systems use a superblock at the beginning of a disk partition to identify the basic size, shape, and condition of the file system.
The Linux operating system is generally installed on partition type 83 (Linux native) or 82 (Linux swap). The Linux boot manager (LILO) can be configured to start from either of the following locations:
• | The hard disk Master Boot Record (MBR) -or- |
• | The root folder of the Linux partition |
To remove Linux from your computer and install Windows XP, follow these steps:
1. | Remove the native, swap, and boot
partitions used by Linux:
|
||||||||||||
2. | Follow the instructions on the screen
to install Windows XP. The installation process assists you in creating the appropriate partitions on your computer. |
Sample Linux Partition Tables
Single SCSI Drive
Device Boot Start End Blocks Id System /dev/sda1 * 1 500 4016218 83 Linux native (SCSI hard drive 1, partition 1) /dev/sda2 501 522 176715 82 Linux swap (SCSI hard drive 1, partition 2)
Multiple SCSI Drives
Device Boot Start End Blocks Id System /dev/sda1 * 1 500 4016218 83 Linux native (SCSI hard drive 1, partition 1) /dev/sda2 501 522 176715 82 Linux swap (SCSI hard drive 1, partition 2) /dev/sdb1 1 500 4016218 83 Linux native (SCSI hard drive 2, partition 1)
Single IDE Drive
Device Boot Start End Blocks Id System /dev/hda1 * 1 500 4016218 83 Linux native (IDE hard drive 1, partition 1) /dev/hda2 501 522 176715 82 Linux swap (IDE hard drive 1, partition 2)
Multiple IDE Drives
Device Boot Start End Blocks Id System /dev/hda1 * 1 500 4016218 83 Linux native (IDE hard drive 1, partition 1) /dev/hda2 501 522 176715 82 Linux swap (IDE hard drive 1, partition 2) /dev/hdb1 1 500 4016218 83 Linux native (IDE hard drive 2, partition 1)Additionally, Linux recognizes more than 40 different partition types, including the following:
• | FAT 12 (Type 01) |
• | FAT 16 > 32 M Primary (Type 06) |
• | FAT 16 Extended (Type 05) |
• | FAT 32 w/o LBA Primary (Type 0b) |
• | FAT 32 w/LBA Primary (Type 0c) |
• | FAT 16 w/LBA (Type 0e) |
• | FAT 16 w/LBA Extended (Type 0f) |
You can also use an MS-DOS version 5.0-or-later boot disk, a Microsoft Windows 95 Startup disk, or a Microsoft Windows 98 Startup disk that contains the Fdisk utility to remove an operating system from the hard disk and install a different operating system. When you start Fdisk and multiple drives are installed on your computer, you are presented with five choices; use option 5 to select the hard disk that has the partition to be deleted. After that (or if you have only one hard disk), select option 3 (Delete partition or logical DOS drive), and then select option 4 (Delete non-DOS partition). You should then see the non-MS-DOS partitions that you want to delete. Typically, the Linux operating system has two non-MS-DOS partitions, but there may be more. After you delete one partition, use the same steps to delete any other appropriate non-MS-DOS partitions.
For additional information about how to use the Fdisk utility, click the article number below to view the article in the Microsoft Knowledge Base:
For additional information, click the article number below to view the article in the Microsoft Knowledge Base:
For additional information about how to multiboot with Windows XP, click the article number below to view the article in the Microsoft Knowledge Base:
The third-party products that are discussed in this article are manufactured by companies that are independent of Microsoft. Microsoft makes no warranty, implied or otherwise, regarding the performance or reliability of these products.