From owner-freebsd-questions@FreeBSD.ORG Wed Apr 15 12:34:02 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3BE7A106566B for ; Wed, 15 Apr 2009 12:34:02 +0000 (UTC) (envelope-from Matthias.Apitz@oclc.org) Received: from mail.pica.nl (mail.pica.nl [192.87.44.30]) by mx1.freebsd.org (Postfix) with ESMTP id C3A2D8FC0C for ; Wed, 15 Apr 2009 12:34:01 +0000 (UTC) (envelope-from Matthias.Apitz@oclc.org) Received: from rebelion.Sisis.de ([10.0.1.29]) by mail.pica.nl with Microsoft SMTPSVC(6.0.3790.3959); Wed, 15 Apr 2009 14:33:59 +0200 Received: (from guru@localhost) by rebelion.Sisis.de (8.14.2/8.13.8/Submit) id n3FCXwgx012865; Wed, 15 Apr 2009 14:33:58 +0200 (CEST) (envelope-from matthias.apitz@oclc.org) X-Authentication-Warning: rebelion.Sisis.de: guru set sender to matthias.apitz@oclc.org using -f Date: Wed, 15 Apr 2009 14:33:58 +0200 From: Matthias Apitz To: Odhiambo Washington Message-ID: <20090415123358.GA12758@rebelion.Sisis.de> References: <991123400904150450p56d24ba5vcd15de8c34096ab0@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="J2SCkAp4GZ/dPZZf" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <991123400904150450p56d24ba5vcd15de8c34096ab0@mail.gmail.com> User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 7.0-STABLE (i386) X-OriginalArrivalTime: 15 Apr 2009 12:33:59.0557 (UTC) FILETIME=[737DD350:01C9BDC6] Cc: PC-BSD Testing list , "mail.list freebsd-questions" Subject: Re: Automounting of USB drives - Why is it a problem? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Apr 2009 12:34:02 -0000 --J2SCkAp4GZ/dPZZf Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit 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 - w http://www.oclc.org/ http://www.UnixArea.de/ People who hate Microsoft Windows use Linux but people who love UNIX use FreeBSD. --J2SCkAp4GZ/dPZZf Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="automount.txt" $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. --J2SCkAp4GZ/dPZZf--