Automatically mounting USB w/o GUI?

Tom Buskey tom at buskey.name
Tue Jul 27 10:01:16 EDT 2010


I want my USB drive to show up mounted on /media/<some label> after I plug
it in.
I don't mind having to type something on the command line to trigger it.

In Solaris, I put a CD/Floppy/USB in and type "volcheck".  Then it checks
for the presence of something and mounts it.
I can type df and see where it mounts it.  I don't run mount or anything
else that requires root.  If I want to use a file manager, I can.  But I
don't have to.

That's what I want.

Here's the scenario:
    Server in basement w/o monitor.  No one is logged in.  No gnome, no KDE,
no X11 anything
    Plug USB in (ummmm tuesday)
    login remotely via SSH (friday?)
    want to transfer files to USB from server.
    eject USB device (monday)
    grab USB & put in backpack on way out door


When I'm using Ubuntu/Gnome or Fedora/Gnome, I usually have to fire up
thunar or some other GUI file manager and the device then gets mounted and I
quit the file manager and use the command line.  They don't work so well on
a slow SSH tunnel.


So, does anyone know how to have linux mount the USB drives to /media like
the GUI file managers do w/o using the mount command?

FWIW, I'm using Fedora 12 but I should be able to do this in Ubuntu 10.04 as
well.  And I'm *not* using a GUI tool to do it, so please no Gnome/KDE or
"Click on System -> ..." or anything else using a mouse.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.gnhlug.org/mailman/private/gnhlug-discuss/attachments/20100727/856c65c1/attachment.html 


More information about the gnhlug-discuss mailing list