Automounting of USB drives - Why is it a problem?
Matthias Apitz
guru at unixarea.de
Wed Apr 15 12:34:02 UTC 2009
El día Wednesday, April 15, 2009 a las 02:50:03PM +0300, Odhiambo Washington escribió:
> Hello List,
>
> For some time now, I have been baffled by one thing: Mac OS X somehow has
> FreeBSD under the hood. When you connect a USB stick (flash disk, external
> drive) to a Mac, it gets automounted, yet the same does not happen on
> FreeBSD.
> I have seen several questions being asked on this list about this feature,
> but the answer is neither here nor there.
> There is even a port (sysutils/automounter) that I believe is supposed to
> help towards this, but again it's not as easy as it seems to be.
> Now my question is just one: Why should it be this difficult for FreeBSD to
> have the automount feature within the base system?
Hello,
Before doubting and blaming, read all man pages; for example just do
$ man -k auto | fgrep mount
amd(8) - automatically mount file systems
amq(8) - automounter query tool
pawd(1) - print automounter working directory
> If OS X is doing it, Linux is doing it, FreeBSD can do it.
Ofc FreeBSD base system can do it for you if you configure it to do so;
read my attached paper for more help;
matthias
> "Clothes make the man. Naked people have little or no influence on
> society."
> -- Mark Twain
I agree and would add: Reading makes the man wise :-)
CU
matthias
--
Matthias Apitz
Manager Technical Support - OCLC GmbH
Gruenwalder Weg 28g - 82041 Oberhaching - Germany
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e <matthias.apitz at oclc.org> - w http://www.oclc.org/ http://www.UnixArea.de/
People who hate Microsoft Windows use Linux but people who love UNIX use FreeBSD.
-------------- next part --------------
$Id: automount.txt,v 1.4 2006/09/18 14:59:29 guru Exp $
for automounting CDROM, USB (and other devices) you configure
/etc/amd.conf:
[ global ]
normalize_hostnames = no
print_pid = no
restart_mounts = yes
auto_dir = /a
log_file = /var/log/amd
log_options = all
#debug_options = all
plock = no
cache_duration = 6
dismount_interval = 20
selectors_on_default = yes
# config.guess picks up "sunos5" and I don't want to edit my maps yet
# os = sos5
# if you print_version after setting up "os", it will show it.
print_version = no
map_type = file
search_path = /etc/amdmaps:/usr/lib/amd:/usr/local/AMD/lib
browsable_dirs = yes
[ /a ]
map_name = amd.cdrom
[ /u ]
map_name = amd.usb
/etc/amdmaps/amd.cdrom:
cdrom type:=cdfs;fs:=/cdrom;dev:=/dev/acd0;opts:=ro
/etc/amdmaps/amd.usb:
usb type:=pcfs;fs:=/mnt/usb;dev:=/dev/da0s1;opts:=rw
/etc/rc.conf:
#
# automount daemon
rpcbind_enable="YES"
nfs_client_enable="YES"
amd_enable="YES"
amd_flags=""
then you just pick-up the directory /a/cdrom with Konqueror and
drag and drop the (video) file there to the Xine window, for example.
More information about the freebsd-questions
mailing list