HP-UX: Understanding device file naming convention

Both HP-UX and Sun Solars uses almost same device file naming convention. Typically it look like as follows:

Advertisement

c#t#d#

Let us try to understand what those letters

  • c – Instance number of interface card
  • t – SCSI target address
  • d – Device number aka SCSI LUN

Use ioscan command to get information about your device under HP-UX. A block device file is always in /dev/dsk and a character device file in /dev/rdsk directory.

  • /dev/dsk/c0t5d0 – Block device file
  • /dev/rdsk/c0t5d0 – Raw device file

I just wish both of them were use device file naming convention like linux (/dev/sda1).

🥺 Was this helpful? Please add a comment to show your appreciation or feedback.

nixCrat Tux Pixel Penguin
Hi! 🤠
I'm Vivek Gite, and I write about Linux, macOS, Unix, IT, programming, infosec, and open source. Subscribe to my RSS feed or email newsletter for updates.

0 comments… add one

Leave a Reply

Your email address will not be published. Required fields are marked *

Use HTML <pre>...</pre> for code samples. Your comment will appear only after approval by the site admin.