LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 10:15 AM   #1
jkeertir
Member
 
Registered: Mar 2008
Posts: 75

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, 10: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,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
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 09:09 AM
USB Pen Drive / Flash Drive Unmounted but the power is there teluguswan Linux - Hardware 11 10-04-2008 03:36 PM
automounting usb pen edgjerp Linux - Hardware 2 04-24-2008 05:45 AM
USB flash drive (Pen drive) mounts read only prabhatsoni Linux - Hardware 24 07-02-2007 01:28 PM
automounting pen drives saini_mw Linux - Hardware 2 04-03-2006 12:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:11 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
Open Source Consulting | Domain Registration