add scripts to mount/umount crypted sdxc card with photos
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
This commit is contained in:
parent
9b42d1e85a
commit
f586fc390b
2 changed files with 15 additions and 0 deletions
12
mount-photos
Executable file
12
mount-photos
Executable file
|
@ -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"
|
3
umount-photos
Executable file
3
umount-photos
Executable file
|
@ -0,0 +1,3 @@
|
|||
umount /dev/mapper/photos
|
||||
cryptsetup luksClose photos
|
||||
|
Loading…
Reference in a new issue