LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Uninstall Ubuntu running alongside windows 7 (https://www.linuxquestions.org/questions/linux-newbie-8/uninstall-ubuntu-running-alongside-windows-7-a-900235/)

Mac-Anthony 08-30-2011 06:27 AM

Uninstall Ubuntu running alongside windows 7
 
I few months ago I installed Ubuntu alongside windows 7 (window 7 was already on the system) using an ubuntu CD. I'm loving Ubuntu but is there a way I can uninstall Ubuntu in the future if i want to do so without removing window 7 also? Or is there a way i can remove win 7 without uninstalling Ubuntu. both OS are seperately installed on the same hard disk. Thanks

andrewthomas 08-30-2011 07:56 AM

To remove windows 7 all you have to do is to delete the partition using either GParted or Disk Utility, since your Ubuntu install most likely uses UUIDs to refer to the partitions, then all you should have to do is to
Code:

sudo update-grub
To remove your Ubuntu install, you should boot to your Ubuntu LiveCD and delete the partitions ( /, swap and /home if you have one,) then you will need to restore the windows bootloader to the MBR.

How to restore the Ubuntu/XP/Vista/7 bootloader

http://ubuntuforums.org/showthread.php?t=1014708

johnsfine 08-30-2011 08:20 AM

Quote:

Originally Posted by andrewthomas (Post 4457008)
To remove your Ubuntu install, you should boot to your Ubuntu LiveCD and delete the partitions ( /, swap and /home if you have one,) then you will need to restore the windows bootloader to the MBR.

I don't think there is any good reason to do those things in that sequence. The opposite sequence gives you a much better chance to find a work around if something goes wrong.

1) Follow those instructions andrewthomas linked to get and use a bootable recovery CD to give control of the MBR boot code back to Windows 7. There might be ways to retake the MBR from inside the Windows system and not need a bootable CD, but I don't know where to find those instructions. (If you do find the way to fixmbr from inside the Windows system, you obviously need to do that step before deleting Grub).

After that works (and Windows boots directly without Grub).

2) Use the partition manager in a bootable Linux CD to delete the Linux partition(s). That might not really be necessary, because the partition manager in Windows also can delete foreign partitions.

3) Use the partition manager inside the Windows system to grow the Windows partition and/or create a Windows data partition to use the space freed by deleting Linux.


All times are GMT -5. The time now is 05:43 PM.