I want to plug my 8GB-SDHC-card-in-a-USB-adapter in, and immediately be able to add and remove files to it. With a little digging in, I got the job done. This is going to make my life a LOT easier. Now I can trigger any action I want for every single device I plug in to my boxxen. Sweetness.

I use gentoo, but this should apply to any modern linux distribution. With a less hands-on distribution like Ubuntu, everything should be already done for you, but you still might want to dig in here to see what’s going on under the hood. Also, there’s a LOT of outdated material out there, as this stuff has been hammered out over the years. So without further ado, here’s an up-to-date summary to get you up to speed fast:

  1. udev: Assign unique names to your devices
  2. Automatically mount and unmount your devices
  3. udev: Autorun programs when connecting your devices

Leave a Reply