Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-30-2010, 12:03 PM   #1
LQ Newbie
Registered: Oct 2010
Posts: 8

Rep: Reputation: 0
automount/unmount usb pendrive on lenny (minimal)

I need your help to configure udev to auto-(u)mount usb pen-drive on my minimal lenny (No X,hal,etc, only udev).
kernel correctly detect :
[287909.514127] usb 1-1.4: new high speed USB device using orion-ehci and address 4
[287909.635454] scsi1 : usb-storage 1-1.4:1.0
[287910.635307] scsi 1:0:0:0: Direct-Access              Patriot Memory   PMAP PQ: 0 ANSI: 0 CCS
[287910.648078] sd 1:0:0:0: Attached scsi generic sg1 type 0
[287911.793129] sd 1:0:0:0: [sdb] 15646720 512-byte logical blocks: (8.01 GB/7.46 GiB)
[287911.802235] sd 1:0:0:0: [sdb] Write Protect is off
[287911.807491] sd 1:0:0:0: [sdb] Mode Sense: 23 00 00 00
[287911.807503] sd 1:0:0:0: [sdb] Assuming drive cache: write through
[287911.817745] sd 1:0:0:0: [sdb] Assuming drive cache: write through
[287911.824003]  sdb: sdb1 sdb2
[287911.837361] sd 1:0:0:0: [sdb] Assuming drive cache: write through
[287911.843581] sd 1:0:0:0: [sdb] Attached SCSI removable disk
I can manually mount.

But I would like an hot-plug automount like in my ubuntu desktop, on /media/{us_label_or_uuid}

thank you!
Old 10-30-2010, 12:50 PM   #2
Senior Member
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Hello vrusu and welcome to LQ,

an additional line in your /etc/fstab should solve that:
/dev/sdb1   /media/usb   auto   defaults auto user   0 0
the downside of this is that the mountpoint is not automatically created and you'll have to add a line for every possible device (e.g. additionally /dev/sdc1). I'm not sure if there are other ways without hal.


EDIT: another idea one can define actions for udev rules.

Last edited by markush; 10-30-2010 at 12:54 PM.


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
OpenOffice locks Pendrive; can't unmount ctkroeker Ubuntu 3 04-22-2010 12:56 PM
*solved* Lenny automount NTFS partition, and USB and other removable media bezdomny Member Success Stories 4 05-16-2009 08:08 AM
How does automount / unmount work for USB memory sticks? pwabrahams Linux - Hardware 6 09-05-2008 04:05 PM
automount won't unmount fskmh Slackware 1 01-15-2005 09:44 AM
How do i make my frive automount and unmount automatically? sbilstein Linux - Software 1 06-03-2003 02:15 PM > Forums > Linux Forums > Linux - Newbie

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

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