From owner-freebsd-questions@FreeBSD.ORG Wed May 11 12:51:08 2005 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 2BF2316A4CE for ; Wed, 11 May 2005 12:51:08 +0000 (GMT) Received: from mail27.sea5.speakeasy.net (mail27.sea5.speakeasy.net [69.17.117.29]) by mx1.FreeBSD.org (Postfix) with ESMTP id E8B8D43D75 for ; Wed, 11 May 2005 12:51:07 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 1807 invoked from network); 11 May 2005 12:51:07 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail27.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 11 May 2005 12:51:06 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id DAB6957; Wed, 11 May 2005 08:51:04 -0400 (EDT) Sender: lowell@be-well.ilk.org To: Juho Vuori References: <4281D971.8080106@kepa.fi> From: Lowell Gilbert Date: 11 May 2005 08:51:04 -0400 In-Reply-To: <4281D971.8080106@kepa.fi> Message-ID: <44y8amsz7r.fsf@be-well.ilk.org> Lines: 13 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: freebsd-questions@freebsd.org Subject: Re: Finding out which device to mount after plugging in a USB thumb drive 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, 11 May 2005 12:51:08 -0000 Juho Vuori writes: > Hello, > > If I plug in a USB thumb drive, which becomes, say, umass0. Normally > something like /dev/da0 will also be created amd slices of that device > may be mounted. But is there a API for finding out what is the > corresponding block device for umass devices ? The device driver > writes that to syslog, but reading logs for something like that is > quite clumsy. You can always wire it down if you need that to be predictable. See: "man scsi".