#!/bin/sh
lsblk
lsblk -lpno"name,type,mountpoint" \
| awk '($1~/.dev.sd/&&$2=="part"){printf($3=="")?"mount -b %s\n":"unmount -b %s\n",$1}' \
| fzy -p "udisksctl " \
| xargs -r udisksctl
sleep 1