From owner-freebsd-questions@FreeBSD.ORG Mon Oct 17 17:43:37 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 91D2916A41F for ; Mon, 17 Oct 2005 17:43:37 +0000 (GMT) (envelope-from rmarella@gmail.com) Received: from ms-smtp-02-eri0.socal.rr.com (ms-smtp-02-qfe0.socal.rr.com [66.75.162.134]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2E3FC43D45 for ; Mon, 17 Oct 2005 17:43:37 +0000 (GMT) (envelope-from rmarella@gmail.com) Received: from p4 (cpe-70-93-57-42.hawaii.res.rr.com [70.93.57.42]) by ms-smtp-02-eri0.socal.rr.com (8.12.10/8.12.7) with ESMTP id j9HHhY8u024400; Mon, 17 Oct 2005 10:43:34 -0700 (PDT) Date: Mon, 17 Oct 2005 07:43:33 -1000 From: Robert Marella To: Malcolm Kay Message-ID: <20051017074333.376e7bcf@p4> In-Reply-To: <200510172234.43850.malcolm.kay@internode.on.net> References: <200510161554.23406.malcolm.kay@internode.on.net> <20051016185925.06fa56c8@frankie> <200510172234.43850.malcolm.kay@internode.on.net> X-Mailer: Sylpheed-Claws 1.9.15 (GTK+ 2.6.10; i386-portbld-freebsd5.4) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: Symantec AntiVirus Scan Engine Cc: freebsd-questions@freebsd.org Subject: Re: Flash drive device name difficulties. 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, 17 Oct 2005 17:43:37 -0000 On Mon, 17 Oct 2005 22:34:43 +0930 Malcolm Kay wrote: > On Mon, 17 Oct 2005 02:29 pm, Robert Marella wrote: > > On Sun, 16 Oct 2005 15:54:23 +0930 > > > > Malcolm Kay wrote: > > > I am running FreeBSD 5.4 RELEASE. > > > I recently aquired a 256M USB flash drive > > > which the system recognises when plugged in; > > > and I can mount and use it -- all working well. > > > > > > But now I'd like to make it available to a user > > > or group of users through mtools. To do this I need > > > to change the permissions on /dev/da0s1 where the > > > flash drive msdos partition appears. This I can make happen > > > automatically using /etc/usbd.conf by adding the lines: > > > > > > device "RunDisk" > > > vendor 0x0ef5 > > > product 0x2366 > > > attach "sleep 1; /bin/chmod g+rw /dev/da[0-9]*" > > > > > > giving members of the operator group access. > > > But this changes permissions on all "da[0-9]" devices. > > > I know the man pages suggest ${DEVICENAME} to obtain the > > > particular device but this doesn't work here because usbd > > > sees the device as "umass0" which doesn't appear in /dev/*. > > > > > > For the moment this is the only device I have appearing > > > in the "da*" group so the problem is not immediate/urgent. > > > But is there some way I can extract the specific "da*" > > > device name to use in the attach statement or is there some > > > way I can make the flash drive always pop up at a specific > > > da name. > > > > > > I've also taken a look at devd.conf but the documentation > > > here seems somewhat sparse. > > > > > > You consideration is appreciated, > > > > > > Malcolm Kay > > > > Hello Malcolm > > > > I don't know anything about mtools but you can check this link > > regarding user mounting of 'da*' devices. Also have a look at > > 'man devfs.rules' and 'man devfs.conf' > > I don't actally find devfs.rules or devfs.conf in the man pages; > (perhaps these are an addition in STABLE or 6.0) however > devfs(5) and devfs(8) and the files themselves shed some light > on the matter. While the information seems a bit sketchy in parts > I think it will get me somewhere near where I want to be. Mea Culpa. I have 2 boxes running 6 RC1 and 2 running 5.4 P7. The man pages are only on the 6 RC1 systems. I also could not get a display from the man pages on the web site. > > Thanks for your time and assistance, You are welcome. Robert > Malcolm Kay > > > > http://lists.freebsd.org/mailman/htdig/freebsd-questions/2004- > >November/064237.html > > > > Good luck > > > > Robert