From owner-freebsd-questions@FreeBSD.ORG Wed Oct 22 07:38:54 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5899916A4B3 for ; Wed, 22 Oct 2003 07:38:54 -0700 (PDT) Received: from catapult.CyberPaladin.com (www.cyberpaladin.com [192.55.203.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3A27143F85 for ; Wed, 22 Oct 2003 07:38:51 -0700 (PDT) (envelope-from cjohnson@CyberPaladin.com) Received: by catapult.CyberPaladin.com (Postfix, from userid 2455) id B21DBA; Wed, 22 Oct 2003 10:39:00 -0400 (EDT) In-Reply-To: <3F969360.1080407@quynh-and-brian.org> To: Brian Skrab Date: Wed, 22 Oct 2003 10:39:00 -0400 (EDT) X-Mailer: ELM [version 2.4ME+ PL99b (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Message-Id: <20031022143900.B21DBA@catapult.CyberPaladin.com> From: cjohnson@CyberPaladin.com (Christopher T. Johnson) cc: freebsd-questions@freebsd.org Subject: Re: Automatic mounting of removable meadia X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Oct 2003 14:38:54 -0000 > Heinrich Rebehn wrote: > > > > > Yes. Although it does not provide automatic mounting upon insertion of > > the disk (like windows does), it would be a solution. > > Unfortunately "man amd" does not say anything about the format of the > > map for a local device and i was unable to find anything in > > /usr/share/examples. Can anyone give me an example? > > This article provides a tutorial for adding this functionality using amd. > It may be a little out-of-date, but it has worked for me in the past. > > http://www.daemonnews.org/200202/automounting.html > > This solution mounts the media on access, and unmounts it on quiescence. > Not exactly "like windows does", but still useful. > > Hope this helps. > > ~brian I use amd for doing just this. it works for most cases. My map file looks like cdrom type:=cdfs;dev:=/dev/acd0c;addopts:=ro floppy type:=pcfs;dev:=/dev/fd0 zip type:=ufs;dev:=/dev/da0s1a pczip type:=pcfs;dev:=/dev/da0s4 pczipF type:=pcfs;dev:=/dev/da0 flash type:=pcfs;dev:=/dev/da0s1 (minus the NFS filesystems) This works for everything but the type:=ufs. When amd mounts a unix filesystem it will never unmount it. I had to patch amd to unmount ufs. My amd.conf is the default. The parameters for amd are: /usr/sbin/amd -p -a /.amd_mnt -l syslog /u /etc/amd.u Best, -Chris