IgnorantGuru's Blog

Linux software, news, and tips

devmon 1.0.3

devmon 1.0.3 is available. This update corrects a bug introduced in 1.0.1 which causes the exec-on-drive option to not work in some circumstances.

See previous devmon updates

July 3, 2011 - Posted by | Scripts


  1. Thanks a lot for this wonderful software, IgnorantGuru! Tried it on Debian Sid, works like a charm. The only thing — for me — missing is the ability to run a command on device unmount and (maybe) removal events. I used udisks-glue with traydevice that pops a device icon in the notification area, and my wife needs a way to see some feedback when a drive is unmounted from traydevice. Like a notification bubble. Udisks-glue has a post_unmount_command token.

    I actually like devmon better, but for now am back to udisks-glue. Would it be possible for you to add something like –exec-on-unmount?


    Comment by Andrei | August 3, 2011

    • I have added these options to devmon 1.0.4. The exec-on-unmount command can run multiple times, though, so any notification bubble will have to test for the change in device state (consider using udisks ––show-info to get the device state, like the devmon script does in its driveinfo function). This is due to the multiple ways a device can be unmounted – there isn’t a single unmount event produced by udisks which detects them all (for example, if root unmounts a device using umount, udisks doesn’t register an unmount attempt, it only shows the device state change). Feel free to let me know how that works for your setup and perhaps it can be adjusted. Thanks for your feedback.

      Comment by IgnorantGuru | August 3, 2011

      • I quickly decided I didn’t like it this way, so I updated 1.0.5 to run the exec-on-unmount command(s) only once (devmon now monitors the device state for you). (Note that exec-on-unmount may not execute for devices mounted before devmon was started, or for devices which were automounted by devmon during startup.) See if that works as expected.

        Comment by IgnorantGuru | August 3, 2011

Sorry, the comment form is closed at this time.