December 2018
Beginner
826 pages
22h 54m
English
First, it's recommended that you fill your drive with random data, prior to creating an encrypted partition on top of it; this is so that data that wasn't encrypted can't be recovered later.
I'm going to accomplish this with shred:
$ sudo shred -v -n1 /dev/sdb1 shred: /dev/sdb1: pass 1/1 (random)...shred: /dev/sdb1: pass 1/1 (random)...1.6GiB/2.0GiB 82%shred: /dev/sdb1: pass 1/1 (random)...2.0GiB/2.0GiB 100%
Now that we've filled our drive with random data, we have to format our partition as a Linux Unified Key Setup (LUKS), an encryption specification:
$ sudo cryptsetup luksFormat /dev/sdb1 WARNING!========This will overwrite data on /dev/sdb1 irrevocably.Are you sure? (Type uppercase yes): YESEnter passphrase: Verify passphrase: ...
Read now
Unlock full access