Commit f586fc39 authored by Nico Schottelius's avatar Nico Schottelius

add scripts to mount/umount crypted sdxc card with photos

Signed-off-by: default avatarNico Schottelius <nico@brief.schottelius.org>
parent 9b42d1e8
#!/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"
umount /dev/mapper/photos
cryptsetup luksClose photos
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment