From owner-freebsd-hackers@FreeBSD.ORG Thu May 12 13:54:44 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 950AD16A4CE for ; Thu, 12 May 2005 13:54:44 +0000 (GMT) Received: from sender-01.it.helsinki.fi (sender-01.it.helsinki.fi [128.214.205.139]) by mx1.FreeBSD.org (Postfix) with ESMTP id 91C8F43D1D for ; Thu, 12 May 2005 13:54:43 +0000 (GMT) (envelope-from juho.vuori@kepa.fi) Received: from [172.17.9.74] (vallila-gw.hupnet.helsinki.fi [128.214.173.238]) j4CDsfaI015300 for ; Thu, 12 May 2005 16:54:42 +0300 Message-ID: <42836020.4050500@kepa.fi> Date: Thu, 12 May 2005 16:54:40 +0300 From: Juho Vuori User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050512) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Finding out names of mountable devices X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 May 2005 13:54:44 -0000 Tried on freebsd-questions without an answer. I suppose this is not doable, but I'll ask here anyway. If I plug in e.g. a USB thumb drive, which becomes, say, umass0. Normally something like /dev/da0 will also be created and 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. Juho Vuori