diff --git a/mount-photos b/mount-photos new file mode 100755 index 0000000..4ffb117 --- /dev/null +++ b/mount-photos @@ -0,0 +1,12 @@ +#!/bin/sh -ex + +dev=/dev/sdc3 +#dev=/dev/disk/by-id/usb-APPLE_SD_Card_Reader_000000000310-0:0-part3 +name=photos +dev_plain=/dev/mapper/photos +key=/home/users/nico/privat/rechner/eigene/brief-macbook-air/sd-karte + +cryptsetup --key-file "$key" luksOpen "$dev" "$name" + +fsck "$dev_plain" +mount "$dev_plain" diff --git a/umount-photos b/umount-photos new file mode 100755 index 0000000..c46f33f --- /dev/null +++ b/umount-photos @@ -0,0 +1,3 @@ +umount /dev/mapper/photos +cryptsetup luksClose photos +