Operating System - HP-UX
1834424 Members
2179 Online
110067 Solutions
New Discussion

Re: How can I tell if a CD device is writeable?

 
Michael D'Aulerio
Regular Advisor

How can I tell if a CD device is writeable?

I'm running HP-UX 10.20 on an HP744 with an external SCSI CD drive. I need to know whether the CD drive is writeable. Right now I run:

ioscan -fnC disk

and parse the Description field for patterns like 'CD-RW' or 'DRW'. Is there any way to directly query the device to determine whether the drive is writeable? Thanks for any help.
Email: michael.n.daulerio@lmco.com
4 REPLIES 4
RAC_1
Honored Contributor

Re: How can I tell if a CD device is writeable?

I do not thinnk that there a command that can tell you that. As you ioscan and then parsing the output. There is suite of csrtools, but I am not sure this is what would do.

Anil
There is no substitute to HARDWORK
Franky_1
Respected Contributor

Re: How can I tell if a CD device is writeable?

Hi,

did you try "diskinfo -v " ?

Regards

Franky
Don't worry be happy
Michael D'Aulerio
Regular Advisor

Re: How can I tell if a CD device is writeable?

Franky,

Thanks but I've tried diskinfo and it only gives information on the manufacturer and model.

Mike D'.
Email: michael.n.daulerio@lmco.com
Michael D'Aulerio
Regular Advisor

Re: How can I tell if a CD device is writeable?

Thank you both for your help. The diskinfo command will print out 'CD-ROM' as the device type so I can distinguish CD devices from other disk devices. I haven't discovered a way to tell if the device is writeable.
Email: michael.n.daulerio@lmco.com