Find the answer to your Linux question:
Results 1 to 2 of 2
Alright I am running debian 3.1 with the default kernel (2.4.27-2-386). What I am trying to do is that when I put in an USB flash drive, doesn't matter what ...
  1. #1
    Just Joined!
    Join Date
    Jul 2006
    Posts
    3

    Automounting any USB flash drive and then running a script.

    Alright I am running debian 3.1 with the default kernel (2.4.27-2-386). What I am trying to do is that when I put in an USB flash drive, doesn't matter what type of brand but basically *any* USB flash drive that it will automount and run a specific script.

    So in short:
    A flash drive is mounted
    Debian automounts it
    Runs a script

    Right now I have it set to only listen to a specific device ID, however that specific flash drive is no longer manufactured and I need to future proof this as it will be used in a live production environment all over the country.

    I have looked at this: http://www.buberel.org/linux/usb-automounter.php, however again that is just a specific device ID.

    Ideas / suggestions?

  2. #2
    Just Joined! bgagan911's Avatar
    Join Date
    Feb 2006
    Location
    WWW
    Posts
    67
    IDEA :: Try detecting when the USB is mounted...and when a USB Mount is detected RUN the script..I don't think you need any Device ID for that..!!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •