From owner-freebsd-questions@FreeBSD.ORG Tue Apr 27 22:29:50 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C29F51065670 for ; Tue, 27 Apr 2010 22:29:50 +0000 (UTC) (envelope-from mark-fbsd-quest-10+20100426@giovannetti.ca) Received: from www.giovannetti.ca (www.giovannetti.ca [206.248.136.48]) by mx1.freebsd.org (Postfix) with ESMTP id EFAA98FC18 for ; Tue, 27 Apr 2010 22:29:49 +0000 (UTC) Received: from the.palaceofretention.ca (unknown [192.168.68.3]) by www.giovannetti.ca (Postfix) with ESMTPSA id 73F6522A0B for ; Tue, 27 Apr 2010 18:41:29 -0400 (EDT) Message-ID: <4BD76559.6000006@giovannetti.ca> Date: Tue, 27 Apr 2010 18:29:45 -0400 From: "Mark G." User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.1.5) Gecko/20100103 Thunderbird/3.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4BD6375B.6030500@giovannetti.ca> <87y6g9v8vb.fsf@cjlinux.localnet> In-Reply-To: <87y6g9v8vb.fsf@cjlinux.localnet> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Tue, 27 Apr 2010 22:41:48 +0000 Subject: Re: How to determine /dev/ad* from mount label 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: Tue, 27 Apr 2010 22:29:50 -0000 On 04/27/2010 00:04, Carl Johnson wrote: > "Mark G." writes: [...] >> I just wanted to know if there was a utility to tell me >> which actual device was mounted. I also tried camcontrol devlist >> and atacontrol list. The latter allowed me to determine that >> /dev/label/rootfs0 is ad2s1a based on the actual disk size >> and a process of elimination. >> >> Does anyone know a magic incantation to output this label->device >> mapping? > > Try looking at glabel(8). I don't know what option will list which is > mounted, but 'glabel status' shows the names and what partitions they > are associated with. That's the ticket, I knew I was missing something. Thanks! Mark