Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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

So I made a huge mistake and I am in desperate need of help. I had installed Ubuntu 12.04 along side Windows 7. I was planning on switching over so I figured I would copy over all my pictures, music, and other files to my new Ubuntu partition and then delete Windows. I had figured Ubuntu created a separate partition on my hard drive which had nothing to do with Windows so I went ahead and deleted the Windows partitions.

I didn't realize this would destroy my Ubuntu installation as well. When I go to install Windows again with the disc I can see the partition that was created for Ubuntu, but all it shows is free space. I can't even see the installation with a Ubuntu Live CD.

Is there anyway to repair this or did I just completely screw myself?

Any help would be appreciated.

share|improve this question

This is what you need

NOTE: You cannot recover Windows now but you can try to get the data from Data recovery softwares

EDIT: Step - 6

enter image description here

share|improve this answer
Thanks for the quick reply. I don't care to recover Windows but would like to recover my Ubuntu installation and files. I know the partition is still there since I didn't delete it and when I go to the Windows installation, it shows the partition as "extended". – Draz Apr 14 '13 at 5:37
I will give this a shot, thanks. – Draz Apr 14 '13 at 5:39
Okay so I'm currently at step 6 and not sure what the guide means by "select with boot". If someone could help me with this before I mess up even more, I would appreciate it. – Draz Apr 14 '13 at 6:13
I suppose it lists the partitions. Select the partition on which windows is installed. – thefourtheye Apr 14 '13 at 6:37
Hey Fourtheye. I see the partition and I get to this step - then select the broken partition with [Boot], it will display something like : – Draz Apr 14 '13 at 6:38

It seems that you'd deleted the partition that grub was installed on it. so you may use bootrepair to repair your grub installation and update the grub. boot your system with live ubuntu cd (or usb) and then install and use boot repair as 2nd option suggests. it would repair your ubuntu installation. but when you install windows on your system, it would disturb it again and you should use bootrepair again to correct the boot options

share|improve this answer
Thanks for the suggestion Mohammadh. Unfortunately, when I run boot-repair it doesn't give me an option to repair it, only to create a log. – Draz Apr 14 '13 at 17:36
Looking over the log, this is the error I am receiving - Error: Can't have a partition outside the disk! – Draz Apr 14 '13 at 17:46

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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