HPR2791: LUKS like truecrypt


Fetch error

Hmmm there seems to be a problem fetching this series right now. Last successful fetch was on May 21, 2019 02:23 (3d ago)

What now? This series will be checked again in the next hour. If you believe it should be working, please verify the publisher's feed link below is valid and includes actual episode links. You can contact support to request the feed be immediately fetched.

Manage episode 231309833 series 108988
Discovered by Player FM and our community — copyright is owned by the publisher, not Player FM, and audio streamed directly from their servers.

Create an empty file of a predetermined size:

$ fallocate --length 512M foo.img 

Create a LUKS container on it:

$ cryptsetup --verify-passphrase luksFormat foo.img 

Set it up:

$ sudo cryptsetup luksOpen foo.img foo $ ls /dev/mapper foo $ 

Make a file system on it:

$ sudo mkfs.ext2 /dev/mapper/foo 

If you don't need it for anything now, you can close it:

$ sudo cryptsetup luksClose foo $ ls /dev/mapper $ 

Mount it as a usable filesystem:

$ sudo mkdir /crypt $ sudo mount /dev/mapper/foo /crypt 

Depending on your system configuration, you may need to set up reasonable permissions:

$ sudo mkdir /crypt/mystuff $ sudo chown klaatu:users /crypt/mystuff $ sudo chmod 770 /crypt/mystuff $ echo "hello world" >> /crypt/mystuff/file.txt 

When you're finished using your encrypted vault, unmount and close it:

$ sudo umount /crypt $ sudo cryptsetup luksClose foo 

2832 episodes available. A new episode about every day .