how to force system to mount USB device after it is inserted?

Greg KH greg at kroah.com
Wed Aug 25 22:42:19 UTC 2010


On Wed, Aug 25, 2010 at 02:07:23PM -0700, hong zhang wrote:
> List,
> 
> I want my system to mount a usb device through my own script if my
> system does not mount it automatically after USB is inserted.
> 
> Where should I start to look (that means my script will be called to
> check if USB is mounted or not when USB device is attached?  

Look at the hooks that udev provides you to do this.  If you have
further questions, please ask them on the linux-hotplug at vger.kernel.org
mailing list.

thanks,

greg k-h



More information about the devel mailing list