How can I manually delete my Ubuntu partition?

5

Can anyone tell me how to delete Ubuntu from a Linux / Windows dual boot system without harming Windows?

I ran sudo fdisk /dev/sda in a linux terminal and got the following output:

  • /dev/sda1 - system
  • /dev/sda2 - Compaq diagnostics
  • /dev/sda3 - HPFS/NTFS/exFAT
  • /dev/sda5 - W95 Ext'd (LBA)
  • /dev/sda6 - Linux
  • /dev/sda7 - Linux swap / solaris

From my online searches, I know how to delete any of these partitions but what I don't know is if I should delete any of the other non-linux labeled partitions to complete the process.

sisko

Posted 2012-06-02T10:31:28.450

Reputation: 173

4Do it from Windows - the disk manager will display what's in use and what not. – Mat – 2012-06-02T10:56:42.030

3Be careful, you first have to restore the Windows boot loader!!! – None – 2012-06-02T11:00:12.977

About the Windows boot loader, is there anything I can do if I don't have a Winddows CD/DVD ? – None – 2012-06-02T12:36:27.963

1I wanted to flag the question for migration, but somehow it became a "vote to close". I think the solution is probably to "do it from Windows", and that suits SU better. – phunehehe – 2012-06-03T11:02:06.420

Answers

1

When in doubt, leave it alone. To remove Linux, delete the partitions sda6 (Linux) and sda7 (Linux swap). Do not touch the others. While you're at it, make sure that the Windows partition (sda3) is marked as bootable.

This will not give any space back to Windows. If you want Windows to expand, you'll have to do it with Windows tools.

If your system is currently configured with dual boot, it's probably using a Linux bootloader. If you remove Linux, your system will become unbootable. You can try restoring the Windows boot sector by installing the mbr package and running install-mbr:

install-mbr /dev/sda

I don't guarantee that this will work. Your best bet is really to use a Windows installation CD.

Gilles 'SO- stop being evil'

Posted 2012-06-02T10:31:28.450

Reputation: 58 319

0

This is actually quite easy. Go to Start > Computer

Click on the internal hard drive. In my one, it is C drive.

In this folder, you will see some other folders. Especially windows and Ubuntu.

From this folder delete Ubuntu. This will delete or remove Ubuntu from your computer.

The if you want to connect that free space to your windows, follow these steps.

Start > type in disk management > create and format hard disk partitions > wait to load > on the bottom panel under "disk 0" find internal hard drive(C: on my one as before) > right click on internal hard drive > Extend volume... > choose how much > default is all free space > okay.

Vikum

Posted 2012-06-02T10:31:28.450

Reputation: 1

2This is true only assuming that it's a WUBI install. – gronostaj – 2013-08-31T06:25:27.417