From dd275be3eeb4eb614f5bf04992b9836ecb0744f7 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Mon, 3 Jun 2019 20:09:01 +0200 Subject: Updates to mount storage. --- SETUP.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'SETUP.md') diff --git a/SETUP.md b/SETUP.md index 01c67d5..1812506 100644 --- a/SETUP.md +++ b/SETUP.md @@ -46,15 +46,17 @@ Format selected device luksformat -t ext4 PATH_TO_YOUR_DEVICE -Locate the UUID of the formatted device -(replacing PATH_TO_YOUR_DEVICE with your actual device path): +Add info about the encrypted device to the file `etc/crypttab`: + + echo "mysecrets UUID=$(lsblk --noheadings -o UUID PATH_TO_YOUR_DEVICE) none luks,noauto" >> /etc/crypttab + +Create mountpoint for the partition inside the encrypted device: - lsblk --fs --nodeps PATH_TO_YOUR_DEVICE + mkdir /mnt/mysecrets -Add/extend the file `etc/crypttab` with a line about the device -(replacing YOUR_UUID with your actual UUID): +Add info about the partition inside the encrypted device to the file `/etc/fstab`: -> mysecrets UUID=YOUR_UUID none luks,noauto + echo "UUID=$(lsblk --noheadings -o UUID /dev/mapper/mysecrets) /mnt/mysecrets ext4 noauto" >> /etc/fstab ## Secrets -- cgit v1.2.3