Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

Possible Duplicate:
How to remove Ubuntu and put Windows back on?

i have ubuntu 12.10 with windows 7 installed on the same hard drive. ubuntu and windows are both installed on different partitions. I would like to remove ubuntu but I don't know which partition it is installed on to remove it. is there a partition manager in ubuntu to tell me which one it is on. because I want to keep my windows 7 but remove ubuntu. Thanks,

share|improve this question

marked as duplicate by gertvdijk, Eliah Kagan, fabricator4, Eric Carvalho, Ringtail Jan 13 '13 at 1:39

This question was marked as an exact duplicate of an existing question.

In Windows it is the one NOT formatted as NTFS but is shown as unknown ;) Gparted can tell you this or even fdisk but you will see them shown as sdb1 and windows does not show them as that. sda1 is the 1st (a) disc, 1st partition (1), sdb2 is the 2nd disc 2nd partition. – Rinzwind Jan 12 '13 at 21:00

Your hard drive should be /dev/sda. If it is not, change to the hard drive number. type sudo fdisk /dev/sda Then type "p" to print table. Look for linux partition id (83) and swap. It will have a nuber after it, like sda6. To avoid any changes to your partition, make sure to tyoe "q" to exit. type "n" to show all option. It is self explanatory, but dangerous if you mess up.The NTFS is the windows partition.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.