Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Drive Device Number

Status
Not open for further replies.

bluedragon2

IS-IT--Management
Jan 24, 2003
2,642
US
Does anyone know of how one can get the device number of a drive?

Thanks

[Blue]Blue[/Blue] [Dragon]

If I wasn't Blue, I would just be a Dragon...
 
Depends what you mean exactly by 'device number'?

If you just mean the device minor number you can obtain it by doing an ls -l on the device entry in /dev/dsk and looking at the 6th field.

Annihilannic.
 
pfiles process id comes back with a dev: number,number.

How do I ascertain what that device number is?

[Blue]Blue[/Blue] [Dragon]

If I wasn't Blue, I would just be a Dragon...
 
Think I have it figured out, If I convert the major number to hex and look in the mount command for the device.

[Blue]Blue[/Blue] [Dragon]

If I wasn't Blue, I would just be a Dragon...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top