Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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 has been asked before and already has an answer. If those answers do not fully address your question, please ask a new 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
add comment

1 Answer 1

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
add comment

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