I have a luks encrypted external usb ssd drive (Samsung T3) which is unable to use the trim command. This leaves me to search for a different way to securely erase the free space inside the encrypted ssd drive.

With photorec I was able to succesfully recover a lot of pictures and files even though I used scrub to write random data and zeros to the ssd drive.

This leaves me to the question: Is scrubbing effective in deleting free space on a ssd drive? I'm not concerned with the drive degrading in any way, shape or form.

  • Hi! So you had data on the drive, then encrypted it, used scrub to write random data on all the free space and were still able to recover unencrypted data from the raw drive?
    – GnP
    Sep 7, 2016 at 13:11
  • Encrypted external usb ssd drive -> unlocked drive during boot -> ran scrub on the free space inside the drive -> ran photorec to try to recover files = 20k+ 'deleted' files were still recoverable.
    – user638145
    Sep 7, 2016 at 17:51
  • Did you run photorec on the luks volume (unencrypted) or the thumb device (encrypted)
    – GnP
    Sep 7, 2016 at 18:59
  • I ran luks on the decrypted /dev/mapper/root filesystem, not on the /dev/sdb partition.
    – user638145
    Sep 8, 2016 at 7:43
  • If you're doing that it doesn't really matter that you're using encryption at all, you're accesing the decrypted data and it seems your concern is someone with the decryption key could recover deleted data from it.
    – GnP
    Sep 8, 2016 at 8:36

1 Answer 1


After more intensive scrubbing with the command line scrub tool (scrub -X -p schneier test which does 7 passes) I could recover only 1/10th of what I could recover before. So I guess it does have effect.

You must log in to answer this question.

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