Uninstall

From MEPIS Documentation Wiki

Jump to: navigation, search

If you need to remove MEPIS from your dual boot system and restore the original single partition structure, take these steps:

Remove the Linux partitions

  • Boot up the LiveCD and log in.
  • Click KMenu --> System --> File System --> GParted, and supply the root password.
  • In the upper right corner of the screen, select the hard drive (you will see a Windows partition when you have the right one).
  • Right-click the MEPIS Linux drive or drives, and select delete from the menu. If delete is not there, choose resize and shrink it to zero.
  • When all Linux drives are done, then resize the Windows drive to the maximum.
  • Reboot without the CD into Windows, which will probably tell you it has to check the drive.

Restore the MBR

With Windows XP and later, you need to boot into the Windows Recovery console on the hard drive in the following manner:

  • Insert the Windows XP CD into your CD drive and restart your computer. If you are prompted, select any options required to start (boot) from the CD.
  • When the text-based part of Setup begins, follow the prompts. Select the repair or recover option by pressing R.
  • If you have a dual-boot or multiboot system, select the installation that you want to access from the Recovery Console.
  • When you are prompted, type the Administrator password.
  • At the command prompt, type Recovery Console commands, and then you can refer to the commands that are listed in the "Available commands within Windows Recovery Console" section.


If the Windows Recovery console isn't available by default, you can create it in Windows by finding WINNT32.EXE on the install CD and running this from the Windows command line, rebooting afterwards:

C:\I386\WINNT32.EXE /cmdcons

NOTE: once installed from the I386 folder on the CD, the program WINNT32.EXE resides on the hard drive in \WINDOWS\system32\.


If you do not have the Windows CD, you can repair the MBR with third-party software such as Active@ Partition Recovery for DOS (link below); you need the commercial version for this feature. It may require that you had backed up the MBR.


For Windows Vista, follow the link below on how to use the Bootrec.exe tool.



!!! Warning! The info contained in this article pertains to older versions of MEPIS !!!

If Grub was installed on the MBR you will probably also have to reinstall the Windows bootloader in one of the following ways:
1) For XP, you do that by booting the Windows install CD and picking the repair option. Once you get to a DOS screen you can issue the command:

fixmbr

2) If you do not have the Windows CD, you can repair the MBR with third-party software such as Active@ Partition Recovery for DOS. You may need to have backed up the MBR.
3) Alternatively, you can boot into the Windows Recovery console on the hard drive, and run fixmbr from there. For booting, use the MEPIS Live CD and run grub from the command line. Then enter the following commands from the grub prompt:

root (hd0,0)
chainloader +1
boot

Note: (hd0,0) may have to be changed, depending on which disk/partition Windows is installed.
4) If the Windows Recovery console isn't available by default, you can create it in Windows by finding WINNT32.EXE and running this from the Windows command line:

C:\I386\WINNT32.EXE /cmdcons

Note: The I386 folder may appear in different places on different systems. Then reboot.
5) Alternatively, the MEPIS Live CD has a built-in application, ms-sys, to restore the Windows 2000/XP/2003 MBR on the hard disk. Run this command from the Konsole as root:

ms-sys -m /dev/sda

If the boot disk is different than sda, then change accordingly.

Links

Personal tools
In other languages