-1

This question already has an answer here:

While installing Ubuntu, by mistake I gave my C drive as the Swap space. It ended up formatting the logical drive(E, but not C !). I realised my mistake in the middle and forcefully ended installation. However it formatted the disk. On windows, the disk space appears to be unallocated. Is there a way I can recover the data?

marked as duplicate by Panther, Takkat, Thomas Ward, karel, Avinash Raj Jan 7 '14 at 3:28

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.

0

You gave it as swap?! And you're currently using this Linux? I think you lost all your files. Disable this swap space immediately (swapoff). The longer it remains active the less chance you have of saving anything. If you can keep this PC off, it's better.

I suggest you boot your computer with Hiren's Boot CD. It has a number of tools for maintenance... among these, there are a few for recovering deleted files/files from lost partitions.

Good luck. If your computer has sufficient RAM, maybe Linux hasn't used your swap partition yet and you may have a chance of recovering your important files.

  • I realised my mistake in the middle and forcefully ended installation. However it formatted the disk. On windows, the disk space appears to be unallocated. Do you think the softwares like TestDisk can recover the data? (It was NTFS). Thank you :) – Kartik Jan 6 '14 at 16:50
  • I don't remember the names of any specific applications I've used in similar situations. But you can find a number of them in the Boot CD I suggested. There are also a few Linux tools you can use if you prefer to boot to a live CD. But it's important to keep your swap off as soon as you boot. But since you have probably not used this swap partition, I believe your chances are good. – GabrielF Jan 6 '14 at 16:53
  • Check the links in comments for your question. They seem to give better answers. – GabrielF Jan 6 '14 at 16:55
  • (askubuntu.com/questions/98790/…) has the answers. Thank you very much. – Kartik Jan 6 '14 at 17:05

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