Automounting USB drives

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi folks:

I know there are plenty of folks that use removable USB flash media
and/or USB external drives, so I'm hoping someone has solved this.  I'm
attempting to have automount mount a Maxtor external USB drive when it's
plugged in, and unmounted when it's unplugged.

With the following entry in /etc/fstab, I have no problem manually
mounting the drive with "mount /mnt/usb":

/dev/sda1      /mnt/usb       auto    defaults   0 0

However, autofs/automount isn't showing anything when attempting to let
it automount the drive (yes, it's already been umounted).  Here's the
configuration:

[/etc/auto.master]
/mnt/usb /etc/auto.usb  --timeout=10

[/etc/auto.usb]
usb     -fstype=auto    :/dev/sda1

After doing a "service autofs restart", mount and "service autofs
status" both show it as being automounted, but an "ls /mnt/usb" reports
nothing...

[jason@lappy ~]$ mount | grep usb
usbdevfs on /proc/bus/usb type usbdevfs (rw)
automount(pid14078) on /mnt/usb type autofs (rw,fd=5,pgrp=14078,minproto=2,maxproto=3)

[jason@lappy ~]$ sudo service autofs status | grep -v '^$'
Configured Mount Points:
------------------------
/usr/sbin/automount --timeout 10 /mnt/usb file /etc/auto.usb
Active Mount Points:
--------------------
/usr/sbin/automount --timeout 10 /mnt/usb file /etc/auto.usb

[jason@lappy ~]$ ls /mnt/usb/
[jason@lappy ~]$


Any ideas or suggestions?  Thanks,

-- 
Jason Dixon, RHCE
DixonGroup Consulting
http://www.dixongroup.net


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux