Article 54DQD How to get correct block devices for multi-partition GPT-formatted disk?

How to get correct block devices for multi-partition GPT-formatted disk?

by
jamminv
from LinuxQuestions.org on (#54DQD)
The disk /dev/dsk/c5t2d0 has 12 partitions as I can check in parted.

And there are 5 /dev/dsk/c5t2d0p* devices (c5t2d0p[0-4])

And there are 15 slice devices /dev/dsk/c5t2d0s* devices (c5t2d0s0 to c5t2d0s15)

How can I easily get a correct device for any of 12 partitions?

In Linux, I just get 12 partitions mapped to 12 human-understandable paths like /dev/disk/by-id/ata-TOSHIBA*-part1 to /dev/disk/by-id/ata-TOSHIBA*-part12latest?d=yIl2AUoC8zA latest?i=WrALS-WDhSM:MqDMyYgsxfU:F7zBnMy latest?i=WrALS-WDhSM:MqDMyYgsxfU:V_sGLiP latest?d=qj6IDK7rITs latest?i=WrALS-WDhSM:MqDMyYgsxfU:gIN9vFwWrALS-WDhSM
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments