7 ms·
Ask HN: How to you encrypt your external hard drives?
Which programs do you use to you encrypt your external SSD/HDD?
Would TrueCrypt [0] be still fine for that task? (Its security audit did not reveal anything serious [1].) Is there a reason to use VeraCrypt (and trust some additional people)?
Is there anything more reliable than those two? I am especially interested in GNU/Linux.
[0] https://en.wikipedia.org/wiki/TrueCrypt
[1] Except privilege escalations, not relevant for QubesOS users.
- Iolaum 6y agoI just format them with Gnome Disks (that uses LUKS in the background and supports many filesystems) and use a strong (LUKS) passphrase that goes in the password manager. Has been pretty reliable and widely available.
- theandrewbailey 6y agoI've used LUKS on my external drives for over 6 years without issues. I use them with BTRFS for good measure.
- fsflover 6y agoAny good tutorials?
- theandrewbailey 6y agoThis is a good step by step guide: https://loganmarchione.com/2015/05/encrypted-external-drive-with-luks/ https://loganmarchione.com/2015/05/encrypted-external-drive-... As for decrypting (unlocking) and mounting the drive, most desktop environments have the capability. For my purposes, I use a script to unlock, backup, and lock when I attach an external HD to my server and SSH in: #! /bin/bash backupfrom="/srv/fileshares/" echo "disk password first, then login password twice" # a reminder because I forget which one to put in blockdev=${1:-/dev/sdd1} device=$(udisksctl unlock -b $blockdev | grep -Po "(?<= as )/[0-9A-Za-z/-]+") direct=$(udisksctl mount -b $device | grep -Po "(?<= at )/[0-9A-Za-z/-]+") if [[ $? -eq 0 ]] ; then rsync -atP --del $backupfrom $direct fi udisksctl unmount -b $device udisksctl lock -b $blockdev There's probably a better way to do this.
- runjake 6y agoLUKS, FileVault, encrypted DMG, or Veracrypt, depending on the platform(s).
- yamrzou 6y agoI once used TrueCrypt for an external HDD and I regretted it. After some years the disk failed, and I had no chance to recover its content as touching a few bits meant the inability to decrypt it or recover a part of it. It had some of my most valuable memories and unfortunately, I had no backup. Now, I prefer a solution which preserves the directory structure like EncFS and I make sure to backup.
- stuxnet79 6y agoThis is precisely the reason why I don't encrypt full drives. A bad sector, which let's be honest, will happen eventually is a death sentence. I'm paranoid about security but not paranoid enough to take a chance like that. I've never heard of EncFS but I'll take a look. The gold standard for me is being able to easily recover my data from a corrupted and encrypted drive.