How to determine /dev/ad* from mount label

Mark G. mark-fbsd-quest-10+20100426 at giovannetti.ca
Tue Apr 27 22:29:50 UTC 2010


On 04/27/2010 00:04, Carl Johnson wrote:
> "Mark G."<mark-fbsd-quest-10+20100426 at 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


More information about the freebsd-questions mailing list