Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have in my computer an installation of ubuntu (11.04) and Windows (7)

I want to remove the ubuntu installation and upgrade the windows to windows 8 without formatting my machine.

All the installations are located at C:

How can i do it? without formatting


I'm not using wubi

share|improve this question
By that I understand you installed Ubuntu with Wubi? I.e. it resides within C drive instead on its own partition(s) right? – Xandy Nov 11 '12 at 15:32
Yeah... Windows André ubuntu are In c: – Nicos Karalis Nov 11 '12 at 15:48
Not using Wubi, yet Ubuntu doesn't have its own partitions, how did you install Ubuntu? Do you have a folder named ubuntu in your C drive? – Xandy Nov 11 '12 at 22:47
it was a long time ago and i don't remember. All i do remember is: i tried wubi and it didn't work, file permissions or something, then i installed manually on c: i can't remember why – Nicos Karalis Nov 12 '12 at 0:45

I guess you still have the Ubuntu ISO or Ubuntu Live DVD. You can use Gparted partition editor which came with Ubuntu to delete the ubuntu partition and format it to NTFS.

Or On Windows open up Disk Management and just simply delete the Ubuntu partition. This will unallocate the space. Now create a logical partition from Disk Management.

If you installed using Wubi then run-> appwiz.cpl (add/remove programs) and there will be a uninstaller link. Use that to uninstall Ubuntu.

share|improve this answer
There is no Ubuntu partition – Nicos Karalis Nov 11 '12 at 15:48
And there is no wubi – Nicos Karalis Nov 11 '12 at 21:27

In this case you can upgrade without problems, and because Ubuntu is installed within the Windows partition you don't need to repartition either.

You can delete Ubuntu before or after performing the upgrade to Windows 8 but in any case to remove Ubuntu you'll have to do this:

  1. In your C drive you'll see a folder called ubuntu, everything related to your Ubuntu installation resides there, delete this folder to uninstall Ubuntu.

  2. The next step is getting it out of the boot menu:

    2.1. Open an elevated command prompt, i.e. run cmd as an administrator.

    2.2. Execute bcdedit /enum and you'll see some information regarding the entries that are in your boot menu. Locate one similar to this one:

    Ubuntu entry

    2.3. Delete that entry from the BCD store with the following command:

    bcdedit /delete {identifier}

    Where identifier is the one in the Ubuntu entry you see in the output of the previous command. In this case for example it would be {2eafb0df-2780-11e2-bfee-acc23b564ea2}. After executing that you should see a text saying that the operation was successful.

Done, you'd have Ubuntu effectively. Note that you can execute those steps in reverse order too, you can first delete the entry from the BCD store and then remove the ubuntu directory.

Just as a reminder, to perform an upgrade insert your Windows 8 DVD and run it from within Windows.

share|improve this answer

In your computer Ubuntu and windows 7 is installed in two different drives so while upgrading only the windows drive gets upgraded and Ubuntu files remain untouched. After up gradation you will find a folder on the windows drive named windows old in which all your windows 7 files will be there. The Ubuntu files remained untouched but you will have to re install since after up gradation you will not find the option to select the Ubuntu at the start up.

share|improve this answer

If you are using Wubi, it installs Ubuntu in C: and adds an entry in Add or Remove Programs. Just go to add or remove programs and uninstall Ubuntu from there. Then go ahead with your upgrade from Windows 7 to Windows 8 :)

share|improve this answer
I don't have installed with wubi – Nicos Karalis Nov 11 '12 at 21:28
Then how can Windows and Ubuntu both reside in C: ? – pratnala Nov 12 '12 at 9:12
@PratyushNalam - Its easy you just install your own bootloader. – Ramhound Dec 5 '12 at 12:21
I still don't understand.. – pratnala Dec 10 '12 at 9:10

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .