Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to remove Linux and install Windows XP 1

Status
Not open for further replies.

bgauntt

Programmer
Dec 19, 2001
292
US
To install Windows XP on a computer on which Linux is currently installed (and assuming that you want to remove Linux), you must manually delete the partitions used by the Linux operating system. The Windows-compatible partition can be created automatically during the installation of Windows XP.

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


The Fdisk tool included with Linux can be used to delete the partitions. (There are other utilities that work just as well, such as Fdisk from MS-DOS 5.0 and later, or you can delete the partitions during the installation process.)

To remove Linux from your computer and install Windows XP, follow these steps:
Remove the native, swap, and boot partitions used by Linux:


Start your computer with the Linux Setup floppy disk, type fdisk at the command prompt, and then press ENTER.

NOTE : For help with using the Fdisk tool, type m at the command prompt, and then press ENTER.


Type p at the command prompt, and then press ENTER to display partition information. The first item listed is hard disk 1, partition 1 information , and the second item listed is hard disk 1, partition 2 information .


Type d at the command prompt, and then press ENTER. You are then prompted for the partition number that you want to delete. Type 1 , and then press ENTER to delete partition number 1. Repeat this step until all the partitions have been deleted.


Type w , and then press ENTER to write this information to the partition table. Some error messages may be generated (because information is written to the partition table), but they should not be significant at this point because the next step is to restart the computer and then install the new operating system.


Type q at the command prompt, and then press ENTER to quit the Fdisk tool.


Insert either a bootable floppy disk or the bootable Windows XP CD-ROM, and then press CTRL+ALT+DELETE to restart your computer.


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)


Note that there are other ways to remove the Linux operating system and install Windows XP. The preceding method is included in this article because of the assumptions that the Linux operating system is already functioning and there is no more room on the hard disk. There are methods for changing partition sizes with software designed for managing partitions. Disk partitioning software may cause instability with the Windows XP installation. Microsoft does not support the installation of Windows XP on partitions manipulated in this manner.

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.
 
Um, do you work for Microsoft?

This appears to be a copy of one of their knowledgebase articles.

:p

 
Yes and I posted it as a tip because I have seen many posts about wiping out Linux to install Windows. I felt like it might help out anyone with that issue and save them some time looking anything up. I didn't think there was anything wrong with what I posted.
 
why would you want to install windoze XP anyway?
 
bigbroNozU:

What exactly do you recommend other than Windows XP. I have been running it for some time on our LAN with Office XP and have yet to run into any problems. I loaded RedHat on a seperate PC and I seem to like XP much better, although RedHat is OK.
 
bgauntt,

As a LAN admin, wouldn't you want to be able to fix any and all security holes on the fly? Or would you prefer to wait until M$ decides when to offer a fix...all the while some 16 year old kid is crashing your network with a simple perl script. Also, M$ has done very little to provide a TRUE secure OS. Kernel memory space in a windoze OS is very simple to breach. And to be able to customize an OS to be tailored specifically for your business makes a lot of sense to me. O.K. I tend to be a real Linux/UNIX biggot sometimes and I believe that you should work with what is comfortable for you, but I have to ask...what good is a padlock made of plactic?
 
The problem with where I work, in the healthcare industry, is that our software that we use to register and bill patients, as well as other vendor based software is only compatible with versions of Windows. I have been working here for 3 years and the other programmer has been here for 13 years and neither one of us have ever experienced a problem of security breaches or anything similar.

Why change 16 servers and 1400 workstations when no change is needed and hasn't been needed for years?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top