LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-22-2010, 11:15 AM   #1
jkeertir
Member
 
Registered: Mar 2008
Posts: 70

Rep: Reputation: 15
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
 
Old 01-22-2010, 11:24 AM   #2
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,480

Rep: Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Boot iso on pen drive by grub installed on pen drive jena Linux - Hardware 2 11-01-2008 10:09 AM
USB Pen Drive / Flash Drive Unmounted but the power is there teluguswan Linux - Hardware 11 10-04-2008 04:36 PM
automounting usb pen edgjerp Linux - Hardware 2 04-24-2008 06:45 AM
USB flash drive (Pen drive) mounts read only prabhatsoni Linux - Hardware 24 07-02-2007 02:28 PM
automounting pen drives saini_mw Linux - Hardware 2 04-03-2006 01:33 AM


All times are GMT -5. The time now is 08:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration