Mapping /dev/gptid numbers to /dev/adXpY

Daniel O'Connor doconnor at gsoft.com.au
Mon Jul 25 04:28:19 UTC 2011


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..

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C








More information about the freebsd-hackers mailing list