LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   automounting pen drive (https://www.linuxquestions.org/questions/linux-newbie-8/automounting-pen-drive-784036/)

jkeertir 01-22-2010 10:15 AM

automounting pen drive
 
Dear ALL,

I want to mount usb pendrive when plugged usb.My kernel doesn't support hotplug.I know making entry in fstab will mount at boot time ,but not when plug in.Is there any other way to do it except udev?

Please help

with regards,
Keerti

tronayne 01-22-2010 10:24 AM

You need, at least, to be in the plugdev group and, probably (can't hurt) the usbfs group for UDEV to mount it automagically. You can use the usermod utility to do this.

You may -- may -- need an entry in /etc/fstab that looks like
Code:

#none            /proc/bus/usb    usbfs      devgid=83,devmode=664 0 0
Note that the example is commented-out; you can stick that entry in /etc/fstab and uncomment it if just the group add doesn't work for you. You will probably need to log out and log back in for changes to take effect and you may even need to reboot (probably not).

Hope this helps some.


All times are GMT -5. The time now is 05:06 AM.