Red Hat Linux 6.2: The Official Red Hat Linux Getting Started Guide
Prev | Chapter 15. Q & A: Quick Answers to Common Questions | Next

# Removing Red Hat Linux

## Q: Removing Red Hat Linux

How do I remove Red Hat Linux from my computer?

## A. Remove LILO

To remove Red Hat Linux, you'll need to remove the LILO information from your Master Boot Record (MBR).

There are several methods to removing LILO from the MBR. Inside of Linux, you can replace the MBR with an earlier, saved version of the MBR using the following command:

    /sbin/lilo -u

In DOS, NT and Windows 95, you can use `fdisk` to create a new MBR with the "undocumented" flag /mbr. This will only rewrite the MBR to boot the primary DOS partition. The command should look like:

    fdisk /mbr

### Removing partitions

If you want to remove Linux from a hard drive, and you attempted to use the default DOS `fdisk`, you will experience the "Partitions exist but they don't exist" problem. The best way to remove non-DOS partitions is with a tool that understands partitions other than DOS.

You can perform this with your Red Hat Linux installation floppy by typing `linux expert` at the `boot:` prompt, such as:

    boot:linux expert

Select the option to install, rather than upgrade and, when you get to the partitioning section, choose `fdisk`. In `fdisk`, type p to print out your partition numbers; then remove the Linux partitions with the d command. When you're satisfied with the changes you've made, you can quit with a w, and your changes will be saved to disk. If you've deleted too much, type q to quit without changes.

When your partitions have been removed, you can reboot with Ctrl-Alt-Del rather than continue with the installation.

Prev | Home | Next
Configuring a Sound Card | Up | Changing Login from Console to X at Startup