Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a specific USB thumb drive for backups. I'd like to know which options I have to detect when this thumb drive is inserted and execute a BASH-script. And I'm interested in which way you recommend.

share|improve this question

You might want to look at the HAL/Udev events framework

This article explains how to get scripts and programs to run on HAL events such as a new USB device being added.

That being said, any modern Gnome desktop allows you to set actions for before automounting of new volumes.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .