From owner-freebsd-questions@FreeBSD.ORG Tue Sep 9 00:23:17 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 21BDB16A4BF for ; Tue, 9 Sep 2003 00:23:17 -0700 (PDT) Received: from accms33.physik.rwth-aachen.de (accms33.physik.RWTH-Aachen.DE [137.226.46.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id BFC5243FEA for ; Tue, 9 Sep 2003 00:23:15 -0700 (PDT) (envelope-from kuku@accms33.physik.rwth-aachen.de) Received: (from kuku@localhost) by accms33.physik.rwth-aachen.de (8.11.6/8.9.3) id h897Mx525876; Tue, 9 Sep 2003 09:22:59 +0200 Date: Tue, 9 Sep 2003 09:22:59 +0200 From: "Christoph P. Kukulies" To: "Michael W. Oliver" Message-ID: <20030909072259.GA25697@gilberto.physik.rwth-aachen.de> References: <200309080805.h8885RT13026@accms33.physik.rwth-aachen.de> <200309081712.59846.tbstep@tampabay.rr.com> <200309082358.05763.michael@gargantuan.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200309082358.05763.michael@gargantuan.com> User-Agent: Mutt/1.4i cc: Christoph Kukulies cc: freebsd-questions@freebsd.org cc: Todd Stephens Subject: Re: USB stick 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: Tue, 09 Sep 2003 07:23:17 -0000 On Mon, Sep 08, 2003 at 11:57:53PM -0400, Michael W. Oliver wrote: Content-Description: signed data > > Here is an entry from my custom /etc/usbd.conf: > > > device "Memorex ThumbDrive" > product 0x9988 > vendor 0x0a16 > release 0x0100 > class 0x0000 > subclass 0x0000 > protocol 0x0000 > devname "umass0" > attach "/sbin/mount_msdosfs -u michael -g users /dev/da0 /mnt/ThumbDrive" > > > and as soon as I plug it in, it is automatically mounted. Do you have these > options in your kernel config file? Will take care that I will have it in my kernel config :-). This seems to me the best solution of all suggestions I got so far. Only drawback, which probably cannot be solved, to automatically unmount :-) when the user is about to pull the stick. Is there a detach line? Or can the writing to the msdosfs be flushed everytime (if not adjusted that way per se)? > device scbus > device da > device pass > > I am successfully running this under -current, btw. > > Also, be sure to umount the stick manually before removing it or it could be > fatal (to the kernel, not you)! Ah, so my considerations above seem to be hopeless, aren't they? -- Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de