diff options
author | Jonas Smedegaard <dr@jones.dk> | 2019-06-03 20:09:01 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2019-06-03 20:09:01 +0200 |
commit | dd275be3eeb4eb614f5bf04992b9836ecb0744f7 (patch) | |
tree | 3449abc94267c3f4d889a1b350e2c127e7a26ecd | |
parent | edce916b134b695edb92210fa2ddc48beb2aeb8e (diff) |
Updates to mount storage.
-rw-r--r-- | SETUP.md | 14 | ||||
-rw-r--r-- | USE.md | 6 |
2 files changed, 9 insertions, 11 deletions
@@ -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 @@ -16,11 +16,7 @@ You need package `cryptsetup-bin`. Install it if not done already. Connect the device (if removable) -and locate its device name (first column): - - lsblk --paths --nodeps - -Mount the encrypted partition on the device: +and mount the encrypted partition on the device: cryptdisks_start mysecrets |