How do I detect SD card insertion (just the SD card, not the card reader) in Linux?

Solution 1:

Here's how I've solved this problem:

  1. Install the udisks package
  2. Run udisks --poll-for-media

Via a udev rule I then trigger a script that takes care of downloading the data from my CF card automatically.