Tagged Questions
5
votes
2answers
1k views
How to mount a cryptsetup container just with `mount`?
I created an encrypted container via
#!/bin/bash
dd if=/dev/zero of=$1 bs=1 count=0 seek=$2
MAPPER=$(mktemp -up /dev/mapper)
LOOPDEV=$(losetup --find --show $1)
cryptsetup luksFormat $LOOPDEV
...
5
votes
1answer
380 views
Umount all attached usb disks with a single command
Is there a (safe) way to umount all partitions on all attached usb devices (usb-hdds, usb-sticks) with a single commandline command, including several encrypted luks partitions?
Only the partitions ...