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

I had Windows 7 installed on my laptop, I installed Ubuntu and chosen the option to delete everything. But when I clicked that, it deleted my windows 7 partitions.

C: Windows 
E: Documents
F: Important Files

When doing a full wipe with Windows 7 it does not touch any other partitions just the C: drive. Now I have all the partitions merged together and I have lost my files. I have some really important files in the partitions that was deleted E:, F: is there anyway I could get them back.

I am new to Ubuntu and now I am stuck on it till I try and find my files back and change my partition to NTFS so windows can install.

share|improve this question

Yes, and once all the partitions have been deleted, it is very difficult to recover the files, sometimes impossible.

Basically, it depends on how the drive was formatted.

  • If it was fast format, i.e. don't zero out the harddisk but just delete the file information (headers, etc), there is a possibility that you can recover some of the files using softwares such as TestDisk and PhotoRec.

  • If it was a complete format, i.e. zero out the hard disk, then it is impossible to recover data.

In your case, it is very difficult to recover. If you want to do it with TestDisk or similar softwares, you'd need another harddisk which has atleast the same storage space as your harddisk, and you'd need to boot from either a Live USB or some other computer and connect your hard disk to that computer.

Ubuntu needs ext4 or ext3 (usually) to get installed. To install Windows you'd need one more partition of type NTFS.

If you have only one partition, you have to compress that partition to make space for new partitions, or you can delete that partition and format it as NTFS to install Windows.

share|improve this answer
Thank you for your quick response, I will try and using the programs you suggested, allot of the files deleted are text files and .PSD files but are really important to me. I do not have access to another computer or hard drive. – Terry Feb 10 '13 at 17:11
If you don't have access to another computer, boot up using a flash drive, run the programs mentioned, and recover your hard disk to another hard disk having atleast the same amount of free space. However, please note, that it is extremely unprobable that you'd be able to recover all your data, and also the process would take up a lot of space. In case, you succeed, don't forget to make backup. :) – green Feb 10 '13 at 17:16

As i answered in kind of same question:
Yes. You have lost them.

  1. If you partition is at the same space as you "lost" partitions were then i recommend you to IMMEDIATLY SHUT DOWN YOU UBUNTU! (as it will write TMP files that will make situation ever worser)
  2. Make a Knoppix live (or what ever you like) CD/USB/DVD/whatever and boot from it.
  3. Mount all you disks (If it didnt do it automaticaly)
  4. Open up console and launch "testdisk". (You will find it easy to use)
  5. Recover the files that you still can recover to USB/Portable HD (But not to you Ubuntu HD)

It wont save all you files. And probably some filenames will be also lost. But its the only option i see. (Tested by me on FAT32)

share|improve this answer

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.