-1

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?

2

1 Answer 1

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.

4
  • 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, 2014 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, 2014 at 16:53
  • Check the links in comments for your question. They seem to give better answers.
    – GabrielF
    Jan 6, 2014 at 16:55
  • (askubuntu.com/questions/98790/…) has the answers. Thank you very much.
    – Kartik
    Jan 6, 2014 at 17:05

Not the answer you're looking for? Browse other questions tagged .