Automatically mounting USB w/o GUI?

Tom Buskey tom at buskey.name
Tue Jul 27 12:24:32 EDT 2010


Tom Buskey <tom at buskey.name> writes:

>  >
> > 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.
>
>
It looks like udev can do what I want.

http://snipt.net/rschu68/mount-usb-disk-with-udev-and-autofs/ which links to
http://en.gentoo-wiki.com/wiki/Autofs

It looks like I'll have to put some identifying info in udev/rules.d for
each device I want to get mounted.

It's still not as easy as volcheck; ls /cdrom/cdrom0/ :-/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.gnhlug.org/mailman/private/gnhlug-discuss/attachments/20100727/4f77d367/attachment.html 


More information about the gnhlug-discuss mailing list