3
votes
4answers
689 views

Run a bash script just before a USB device is unmounted?

Is it possible on Linux (Ubuntu in my case) to configure the system to run a bash script just before a USB key is unmounted? I have a portable personal wiki on a pendrive, and every time I unmount it ...