From owner-freebsd-questions Tue Mar 18 7:24:34 2003 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 451AF37B405 for ; Tue, 18 Mar 2003 07:24:33 -0800 (PST) Received: from gs166.sp.cs.cmu.edu (GS166.SP.CS.CMU.EDU [128.2.205.169]) by mx1.FreeBSD.org (Postfix) with SMTP id 894E143FAF for ; Tue, 18 Mar 2003 07:24:32 -0800 (PST) (envelope-from dpelleg@gs166.sp.cs.cmu.edu) To: FreeBSD Questions Subject: getting device for umass? From: Dan Pelleg Date: 18 Mar 2003 10:24:05 -0500 Message-ID: Lines: 14 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I'm using a USB compact-flash card reader. When attached it is recognized, and umass(4) creates a device for it. On a SCSI-less system it is da0 but this is obviously not always true. How can I systematically identify the disk it is attached as? As you might guess, the point is to fire up a script from /etc/usbd.conf. However all I get from usbd is umass0 for DEVNAME. I poked around camcontrol but it didn't seem to give me enough information to come up with a robust script. Any ideas? -- Dan Pelleg To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message