1

I've just reinstalled Ubuntu, and I chose a partition full of data as a swap area. I didn't realize that the swap area would overwrite my files.

Can I recover my partition or my data now?

Braiam
  • 67,791
  • 32
  • 179
  • 269

1 Answers1

2

What you could do, is take a dd image of your swap, bit by bit:

dd if=/your/swap of=/path/to/file.dd

"Your swap" is usually a separate partition. To find out which one do:

fdisk -l

once you obtain the .dd file, install autopsy:

 apt-get install autopsy

run it as root in your terminal, and open a browser as instructed.

Create a case in autopsy, and try recovering data in this way. It may be complicated, but first secure the .dd file, then try forensic techniques recovering files. You may want to read up on autopsy as a forensic tool for data recovery.

N.N.
  • 18,219
den4uk
  • 432