How to determine /dev/ad* from mount label
illoai at gmail.com
illoai at gmail.com
Fri Apr 30 19:47:12 UTC 2010
On 27 April 2010 18:29, Mark G.
<mark-fbsd-quest-10+20100426 at giovannetti.ca> wrote:
> 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!
>
& if the verbosity isn't high enough
geom label list
or
glabel list
will certainly cover that.
--
--
More information about the freebsd-questions
mailing list