PDA

View Full Version : Remove linux from a dual boot with XP


jfelux
April 9th, 2003, 01:11 AM
I want to remove my RedHat Linux 8.0 from my machine, and I have a dual boot with Windows XP. I was just going to delete the Linux partitions, but I have the boot loader and I wanted to know how to get rid of that first. Any help?

ceh383
April 9th, 2003, 02:13 AM
If Linux Is Still Installed

At a command prompt, run the lilo command and use either the -u or the -U option. The device name must be the second parameter. The only difference between the two options is that -u checks the time stamp on the current MBR and on the backed-up MBR, and -U does not check the time stamp at all.

1-If LILO is installed to the MBR of the master drive on the primary IDE controller, type
lilo -u /dev/hda
where dev is the device directory, hd indicates an IDE hard disk, and the a option indicates the master on the primary IDE channel.

2-If you want to use the command on a SCSI drive, type
lilo -u /dev/sda
where sd indicates a SCSI drive and a indicates the first drive in the SCSI chain.

3-If the drive has multiple partitions, indicate the partition from which you want to uninstall LILO by adding the number that corresponds to the partition number on the drive, starting the count at 1 (not 0). For example, to remove LILO from the first partition of the first SCSI drive, type:
lilo -u /dev/sda1

Note that sda is not related to the SCSI ID number.

If Linux Is Not Still Installed

NOTE: The following procedure is not supported by Microsoft and is performed strictly at the discretion of the user. Microsoft assumes no liability for lost or corrupted data. This procedure should be performed only as a last resort.

IMPORTANT: Running fdisk /mbr removes the disk signature from the MBR. If the drive is a member of a Windows fault tolerance set, the drive is no longer recognized as a member of that set.

1. Boot to MS-DOS, and then type the following:
fdisk /mbr

2. Restart your computer.

jfelux
April 9th, 2003, 06:05 AM
Linux is installed (I think). I probably have a problem with getting my Nvidia card working with the linux, and I'm tired of trying to fix it for now. I tried all three of the options you gave me and each time I got the same message:

"/etc/lilo.conf: No such file or directory"

I don't know what that is supposed to mean to me. Any clue now?

ceh383
April 9th, 2003, 11:39 AM
The easiest way is remove it as if Linux were not installed.....

1. Boot to MS-DOS, and then type the following:
fdisk /mbr

2. Restart your computer.