Uninstall
From MEPIS Documentation Wiki
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
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.

