22. How to Uninstall Linux

If for any reason you want to uninstall Mandriva Linux, you can do so. The process of uninstalling Mandriva Linux is done in two steps:

[Warning] Warning

Removing partitions on your hard drive will inevitably result in the loss of all data stored on those partitions. Please make sure you've backed up all of the data you want to keep before proceeding.

  1. Delete all partitions related to Mandriva Linux on your hard drive (usually partitions hosting ext3 file systems and the Swap partition) and — optionally — replace them with a single partition using DiskDrake.

  2. Remove the bootloader, LILO in this example, from the Master Boot Record (MBR). To do so, execute lilo -U in a console, as root. Doing this will not only uninstall LILO but will also restore the previous master boot record, if any.

    If you have a different boot loader, please refer to its documentation to determine how to regenerate the master boot record.