From owner-freebsd-questions@FreeBSD.ORG Mon Jul 6 15:54:45 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 A81BD1065676 for ; Mon, 6 Jul 2009 15:54:45 +0000 (UTC) (envelope-from unga888@yahoo.com) Received: from web57004.mail.re3.yahoo.com (web57004.mail.re3.yahoo.com [66.196.97.108]) by mx1.freebsd.org (Postfix) with SMTP id 511C28FC22 for ; Mon, 6 Jul 2009 15:54:45 +0000 (UTC) (envelope-from unga888@yahoo.com) Received: (qmail 13817 invoked by uid 60001); 6 Jul 2009 15:54:44 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1246895684; bh=KNtc8i3MfRhv4aXcrsq/3A0DC3dYpTr4J726XzK5NOQ=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=R8G/itfPySr2piKjZktcUwH8MEuMfqW4wgZVciYdi3BPCd33JVJF521McAby5cu3s+LfieP/osFhyo7h2iueV9sLkd/nEZUdBhKST2Cjam1F6euhUFBF6/yGKvbPvff3g7R3KV9p3Tpj/W0fUbdiVhngHnSvfXfWwdNlgmTlIxA= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=rhvNJnhoDSZ7cGqQpUmt925A+QvhKCG+1ZYIbiAPXejOOD1n/+z/rqZzlx0mAMITeTzXcCFQ0h26S0Teq8kIMGvUdLdZ34jh2AWXvP279d1qLDcnFWMmh++eM/bywbMrY4sHlb4VZXIOg13boxo101if4Il4CqdRVS7+BAXA1NY=; Message-ID: <761956.13353.qm@web57004.mail.re3.yahoo.com> X-YMail-OSG: zu7K6jQVM1k3dyCyX_Y7Iqg8RtWjpDqqz0.aGCdXY9sjvReiYcIFMv05_lyXM6cIQfjUo5oo41ATrvWfuHqqE.642kyhwZrGsoNycWzNf1eFiYmAHa8UwPP5E0MDJ22UdaijY2wQ1WmPcT4nrfuct4O8pPljTKJXAe5xNdSFDmzpY_Apv0LvVufuGuzS.ecQs3iiLGsAvGkuuRhlEQYgVNUrsP5wDRKQhMU.7wv8I2g0PZCppt7h Received: from [220.255.7.197] by web57004.mail.re3.yahoo.com via HTTP; Mon, 06 Jul 2009 08:54:44 PDT X-Mailer: YahooMailClassic/5.4.17 YahooMailWebService/0.7.289.15 Date: Mon, 6 Jul 2009 08:54:44 -0700 (PDT) From: Unga To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: How to modify the default unmount time of automounter (amd)? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Jul 2009 15:54:46 -0000 Hi all I'm using the amd that comes with the FreeBSD 7.2 i386. I want to automatically mount and unmount an USB thumbdrive. Mounting part work well, but the unmounting part does work as specified. I have set "utimeout=1" but amd still take 120 seconds to automatically unmount. cat /etc/rc.conf amd_flags="-a /.amd_mnt -l syslog -x all /media /etc/amd.map" amd_enable="YES" cat /etc/amd.conf [ global ] map_type = file [ /media ] map_name = /etc/amd.map cat /etc/amd.map /defaults type:=host;fs:=${autodir}/${rhost}/host;rhost:=${key} * opts:=rw,grpid,resvport,vers=3,proto=tcp,nosuid,nodev,utimeout=1 thumdrive type:=pcfs;opts:=longname;dev:=/dev/da0s1;fs:=${autodir}/thumdriv I want to automatically unmount of 1 second of inactivity. Have I specified the unmounting incorrectly? Thanks in advance. Best regards Unga