Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Apr 2010 18:29:45 -0400
From:      "Mark G." <mark-fbsd-quest-10+20100426@giovannetti.ca>
To:        freebsd-questions@freebsd.org
Subject:   Re: How to determine /dev/ad* from mount label
Message-ID:  <4BD76559.6000006@giovannetti.ca>
In-Reply-To: <87y6g9v8vb.fsf@cjlinux.localnet>
References:  <4BD6375B.6030500@giovannetti.ca> <87y6g9v8vb.fsf@cjlinux.localnet>

next in thread | previous in thread | raw e-mail | index | archive | help
On 04/27/2010 00:04, Carl Johnson wrote:
> "Mark G."<mark-fbsd-quest-10+20100426@giovannetti.ca>  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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4BD76559.6000006>