View Full Version : [ubuntu] executing command on usb disk mount

December 7th, 2008, 02:02 AM
Hi there,
Im creating a simple terminal based on ubuntu linux, which will be used to copy some data on users flash disk, but I do not want the users to need to do anything, so basicaly what I need is

* user inserts flash disk
* command is executed
* data is beeing copied to the flash disk while showing progress
* disk is unmounted
* user is notified

I got to the point of using zenity to the the gui parts, but what i still do not get, is how to execute the script, when the disk is mounted.

Im using Ubuntu 8.04.