0

I used to map and mount a truecrypt container with

cryptsetup --type tcrypt open /path/to/file
mount /dev/mapper/file /mnt/file

and unmap / unmount it with

umount /mnt/crypt
cryptsetup --type tcrypt close file

I have a feeling that the last time I used the container I forgot to unmap/unmount the volume after I used it. However, I'm not sure.

The bad thing is, after I mounted the volume today, the ext volume inside the container appeared to be empty.

Its unlikely that I deleted the files, hence I assume that the filesystem got somehow damaged. Typically the drive gets only read from, hence the data should be still there.

How would I approach the rescue of this volume?


edit: testdisk still finds multiple superblocks and gets the correct used space.

  • 2
    Go straight to your backups. – Michael Hampton Jul 23 '16 at 9:00
  • Unfortunately the backups don't contain the most recent changes. – Harald Thomson Jul 23 '16 at 10:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.