Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-30-2011, 07:27 AM   #1
LQ Newbie
Registered: Aug 2011
Posts: 1

Rep: Reputation: Disabled
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

Last edited by Mac-Anthony; 08-30-2011 at 07:29 AM.
Old 08-30-2011, 08:56 AM   #2
Senior Member
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 309Reputation: 309Reputation: 309Reputation: 309
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
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
Old 08-30-2011, 09:20 AM   #3
LQ Guru
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190
Originally Posted by andrewthomas View Post
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.

Last edited by johnsfine; 08-30-2011 at 09:22 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
No 'Alongside' option when trying to install Ubuntu 11.04 to dual boot with Windows 7 UnfairBear Linux - Newbie 16 09-16-2012 06:34 PM
[SOLVED] Ubuntu 11.04 installed alongside Windows 7 resized partition now cannot access either Stuck109 Linux - Newbie 22 05-05-2011 01:50 AM
Ubuntu LiveCD from ext. HDD alongside Windows Owndapwn Linux - Newbie 18 02-20-2011 05:24 AM
Error msg on trying to install Ubuntu 10.4 alongside Windows ZombyWoof Ubuntu 2 01-28-2011 06:00 AM
Ubuntu says disk is full installed alongside windows and... Dygital_Karma Linux - Laptop and Netbook 2 05-17-2009 11:21 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:31 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration