Operating System - HP-UX
1819859 Members
2747 Online
109607 Solutions
New Discussion юеВ

how do I obtain the minor # for a device?

 
David Heard
Occasional Advisor

how do I obtain the minor # for a device?

how do I obtain the minor # for a device?
2 REPLIES 2
Marco Santerre
Honored Contributor

Re: how do I obtain the minor # for a device?

in your /dev directory (dsk for your disks or any subdirectory you're looking for)

when you do a ll, it will lists you all the devices under that directory.

crw-r----- 1 root sys 64 0x040007 Nov 10 14:56 rlvmount

this is an exemple, but the 0x number, the first two numbers following the 0x are the major numbers, and the last 4 the minor numbers.
Cooperation is doing with a smile what you have to do anyhow.
Cheryl Griffin
Honored Contributor

Re: how do I obtain the minor # for a device?

Do a listing of the device:
crw--w--w- 1 bin bin 193 0x000000 Dec 23 2002 tty0p0

In this example 193 is the major number that corresponds to the device driver.
# lsdev |grep 193
193 -1 mux2 tty

The 0x000000 is the minor number.

"Downtime is a Crime."