How can I determine the address of a pen drive in Linux?
My task is to create a file on my pen drive dynamically – as soon as I insert the pen drive, the file should be created.
usb-flash-drive
How can I determine the address of a pen drive in Linux?
My task is to create a file on my pen drive dynamically – as soon as I insert the pen drive, the file should be created.
Best Answer
I would recommend using udev.
Edit: Here's a similar question which was posted in 2007. http://www.linuxquestions.org/questions/linux-software-2/how-to-detect-programatically-if-a-usb-device-is-is-plugged-in-plugged-out-524568/