From 92f8c55a3dfc86df3f3454d0cb7c8e09431df841 Mon Sep 17 00:00:00 2001 From: skyper <5938498+SkyperTHC@users.noreply.github.com> Date: Sat, 28 Oct 2023 13:49:16 +0100 Subject: [PATCH] Update README.md --- README.md | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index e2834b8..9132514 100644 --- a/README.md +++ b/README.md @@ -1571,24 +1571,22 @@ Create a 256MB large encrypted file system. You will be prompted for a password. ```sh dd if=/dev/urandom of=/tmp/crypted bs=1M count=256 iflag=fullblock cryptsetup luksFormat /tmp/crypted -mkfs.ext3 /tmp/crypted +cryptsetup open /tmp/crypted sec +mkfs -t ext3 /dev/mapper/sec ``` Mount: ```sh -losetup -f -losetup /dev/loop0 /tmp/crypted -cryptsetup open /dev/loop0 crypted -mount -t ext3 /dev/mapper/crypted /mnt/crypted +cryptsetup open /tmp/crypted sec +mount -o nofail,noatime /dev/mapper/sec /mnt/sec ``` Store data in `/mnt/crypted`, then unmount: ```sh -umount /mnt/crypted -cryptsetup close crypted -losetup -d /dev/loop0 +umount /mnt/sec +cryptsetup close sec ``` **8.ii.b. Linux transportable encrypted filesystems - EncFS**