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.

This question already has an answer here:

I installed Ubuntu 12.04 and now I want it deleted from my computer. I installed Ubuntu on a USB stick so I could dualboot my HP with windows 7 but now I want it removed. How do I do this?

share|improve this question

marked as duplicate by Eliah Kagan, Luis Alvarado Aug 8 '13 at 9:49

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.

1 Answer 1

I would remove the partition. If this is on a usb stick then format it, however if you were using grub, and it was installed to the MBR you will need to boot into the windows install disk, and use the startup repair option, to restore window's boot code, A nice guide is here. http://www.sevenforums.com/tutorials/20864-mbr-restore-windows-7-master-boot-record.html

to remove a partition from a HDD simply use fdisk, or some other tool, like partition magic for windows, conversely if Linux was installed on a separate HDD, then simply remove the disk, or format it.

Since you weren't too specific, if you want windows removed, then I would suggest installing Linux over it with a live CD, or not so sure about this but i believe you usb stick might have an option to install to hard disk some where in it's GUI-land.

share|improve this answer

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