Umount all attached usb disks with a single command

view full story

http://unix.stackexchange.com – 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 on the usb-devices should be umounted, nothing more! (HowTos)