CD Drive eject status

View: New views
2 Messages — Rating Filter:   Alert me  

CD Drive eject status

by Naveen S :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Can somebody help me, how to know whether CD drive is in open status or closed status in
Solaris 10.

Thanks
Naveen




_______________________________________________
Cdrecord-developers mailing list
Cdrecord-developers@...
https://lists.berlios.de/mailman/listinfo/cdrecord-developers

Re: CD Drive eject status

by Joerg Schilling-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Naveen S <naveenmailid@...> wrote:

> Can somebody help me, how to know whether CD drive is in open status or closed status in
> Solaris 10.

Unfortunately few drives support to ask for this status, therefore it is not
implemented in cdrtools.

Check this:

readcd dev=0,0,0 sectors=0-0 f=/dev/null
Read  speed:  8467 kB/s (CD  48x, DVD  6x, BD  1x).
Write speed:     0 kB/s (CD   0x, DVD  0x, BD  0x).
/usr/bin/readcd.bin: I/O error. test unit ready: scsi sendcmd: no error
CDB:  00 00 00 00 00 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 02 00 00 00 00 0A 00 00 00 00 3A 02 00 00 00 00
Sense Key: 0x2 Not Ready, Segment 0
Sense Code: 0x3A Qual 0x02 (medium not present - tray open) Fru 0x0
Sense flags: Blk 0 (not valid)
cmd finished after 0.000s timeout 40s
/usr/bin/readcd.bin: Device not ready.

This an open tray

Or this:

readcd dev=0,0,0 sectors=0-0 f=/dev/null
Read  speed:  8467 kB/s (CD  48x, DVD  6x, BD  1x).
Write speed:     0 kB/s (CD   0x, DVD  0x, BD  0x).
/usr/bin/readcd.bin: I/O error. test unit ready: scsi sendcmd: no error
CDB:  00 00 00 00 00 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 02 00 00 00 00 0A 00 00 00 00 3A 01 00 00 00 00
Sense Key: 0x2 Not Ready, Segment 0
Sense Code: 0x3A Qual 0x01 (medium not present - tray closed) Fru 0x0
Sense flags: Blk 0 (not valid)
cmd finished after 0.000s timeout 40s
/usr/bin/readcd.bin: Device not ready.

This is a closed but empty tray

And finally:

readcd dev=0,0,0 sectors=0-0 f=/dev/null
Read  speed:  5645 kB/s (CD  32x, DVD  4x, BD  1x).
Write speed:     0 kB/s (CD   0x, DVD  0x, BD  0x).
Capacity: 246572 Blocks = 493144 kBytes = 481 MBytes = 504 prMB
Sectorsize: 2048 Bytes
Copy from SCSI (0,0,0) disk to file '/dev/null'
end:         0
addr:        0
Time total: 0.000sec
Read 0.00 kB at 0.0 kB/sec.

This is a closed tray with a CD inside.

Jörg

--
 EMail:joerg@... (home) Jörg Schilling D-13353 Berlin
       js@...                (uni)  
       joerg.schilling@... (work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily
_______________________________________________
Cdrecord-developers mailing list
Cdrecord-developers@...
https://lists.berlios.de/mailman/listinfo/cdrecord-developers