Operating System - HP-UX
1832085 Members
2761 Online
110037 Solutions
New Discussion

CDROM device path on HP-UX

 
Nahmad_1
Advisor

CDROM device path on HP-UX

Hi There

What is the best way to find out the CDROM device path on HP-UX please ?

Thanks in advance

Nahmad
9 REPLIES 9
Dennis Handly
Acclaimed Contributor

Re: CDROM device path on HP-UX

The easiest would be to just use SAM.
Are you on 11.31 where there are new-fangled USB paths?
Prashanth Waugh
Esteemed Contributor

Re: CDROM device path on HP-UX

Hi Nahmad,

#ioscan -fnK |grep "CDROM"


Regards
Prashant
For success, attitude is equally as important as ability
Prashanth Waugh
Esteemed Contributor

Re: CDROM device path on HP-UX

Hello Dear,

Now R u able to see the device path .

Regards
Prashant
For success, attitude is equally as important as ability
TTr
Honored Contributor

Re: CDROM device path on HP-UX

The safest commands to use are
ioscan -fnkC disk |more
ioscan -fnk |more
ioscan -fn |more
and look for the CD or DVD device. The ioscan command pointed out by Prashant is syntactically and logically wrong. First it has a capita K instead of lower case and then it greps for "CDROM". Not all device strings have "CDROM" in them. It varies and can be CD-ROM, DVD-ROM etc.
If you are using 11.31 the devices may be different as Dennis pointed out.
Prashanth Waugh
Esteemed Contributor

Re: CDROM device path on HP-UX

HiTTr,

You are right it should be small k. Thanks for showing the mistake

Regards
Prashant
For success, attitude is equally as important as ability
Rasheed Tamton
Honored Contributor

Re: CDROM device path on HP-UX

Hi,

ioscan -fknC disk|awk '/CD|DVD/{print ; getline;print}'

Most of the times, this also works:
ioscan -fnkCdisk|head

Regards,
Rasheed Tamton.
Deepak Kr
Respected Contributor

Re: CDROM device path on HP-UX

In short,

simply get info from kernel itself at first place.

#ioscan -fnkC |grep -i dvd

Cheers!!
"There is always some scope for improvement"
Nahmad_1
Advisor

Re: CDROM device path on HP-UX

Hi All

Thanks all for you help

Nahmad
Nahmad_1
Advisor

Re: CDROM device path on HP-UX

Thanks all of you