Mapping /dev/gptid numbers to /dev/adXpY

Stephen Hocking stephen.hocking at gmail.com
Mon Jul 25 04:24:06 UTC 2011


On Mon, Jul 25, 2011 at 2:15 PM, Daniel O'Connor <doconnor at gsoft.com.au> wrote:
>
> On 25/07/2011, at 11:03, Stephen Hocking wrote:
>> Now this is all very interesting, but I would like to be able to map
>> that back to a /dev/adXpY device entry, so when I offline them I can
>> then go to the appropriate physical disk. I thought that gpart show -r
>> might help, but the numbers emitted from that don't match up. Looking
>> at the major/minor numbers of the devices don't help either. Does
>> anyone have an idea?
>
>
> If you run 'gpart list' you will see a list of device names and UUIDs.
>
> Mapping it by hand is a bit tedious though..
>


Both Test Rat & Daniel pointed me towards gpart list. The gpart man
page doesn't seem to mention the list command, which is probably why I
missed it. Anyways, now all I have to do is label my hotswap drawers
properly....


     Stephen


More information about the freebsd-hackers mailing list