Author Topic: [Solved] How to uninstall a Linux version without destroying grub?  (Read 656 times)

Offline buckeye

  • Full Member
  • ***
  • Posts: 199
So I started with Win XP.  Next I installed Full Monte.  I set it up and I like it.  So then I decided to install the LXDE PCLOS.  No sir, didn't like it.  So now I want to uninstall LXDE, but in a way that restores my grub back to the way it was before I installed it.  I've done this sort of thing in the past, and it usually causes grub issues if not done correctly.  So I'm hoping to avoid that this time.

The problem I foresee is that the last install inserted it's own partition into the MBR.  It then has pointers to boot from either the XP or FM partitions.  When I delete the LXDE partition, the MBR will point to an invalid boot device and it will be lights out.  So my question is... how do I reset the MBR to point to the PCLOS FM partition instead of the LXDE partition?

Thanks.

« Last Edit: July 14, 2011, 12:52:09 PM by buckeye »

Offline buckeye

  • Full Member
  • ***
  • Posts: 199
Re: How to uninstall a Linux version without destroying grub?
« Reply #1 on: July 14, 2011, 12:51:37 PM »
OK, figured it out.  All I had to do was Configure Computer->Boot->Set up boot system, and then just click Next and then Finish.  This rewrites the MBR with a pointer to the PCLOS partition I'm running.  The other partition becomes unbootable and is out of the boot list unless you manually add it.  The extra linux partition can now be deleted without destroying the grub chain.

Online Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11587
  • ----IOFLU----
Re: How to uninstall a Linux version without destroying grub?
« Reply #2 on: July 14, 2011, 11:32:48 PM »
OK, figured it out.  All I had to do was Configure Computer->Boot->Set up boot system, and then just click Next and then Finish.  This rewrites the MBR with a pointer to the PCLOS partition I'm running.  The other partition becomes unbootable and is out of the boot list unless you manually add it.  The extra linux partition can now be deleted without destroying the grub chain.


Or you can do this, and choose whichever Linux installation you want as the one with the master menu.lst.

http://www.pclinuxos.com/forum/index.php/topic,62786.msg508062.html#msg508062

On my machine I get this choice;

grub> find /boot/grub/stage2
 (hd0,0)
 (hd0,6)
 (hd0,7)
 (hd0,8)
 (hd0,12)
 (hd0,13)
 (hd0,14)
 (hd0,15)
 (hd1,0)
 (hd1,7)
« Last Edit: July 14, 2011, 11:34:36 PM by old-polack »
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...