4.6 Packet Commands
C156-E205-01EN 4-59
4.6.8 PREVENT/ALLOW MEDIUM REMOVAL command
Table 4.79 PREVENT/ALLOW MEDIUM REMOVAL command
Bit
Byte
76543210
0 Operation Code (1Eh)
1Reserved
2-3 Reserved
4 Reserved Prevent
5-11 Reserved
The PREVENT/ALLOW MEDIUM REMOVAL command allows or inhibits
media ejection on the device.
A value of 0 in the Prevent bit allows ejection and a value of 1 disables ejection.
The power-on default value is Enabled.
If there is any data not written yet in the write cache, the ODD completes writing
on media, then allows ejection.
Hard reset resets the prevent state to allow ejection.
Table 4.80 Response to Prevent/Allow/Eject
Operation Status at
operation
When no media is
loaded
When media is loaded
Prevent = 0 Enabled No error No error
Inhibited No error No error
Prevent = 1 Enabled No error No error. Media ejection is inhibited.
Inhibited No error No error
Eject Enabled No error No error: Eject the cartridge
(Ejection with
START/STOP UNIT
command)
Inhibited Error:
SENSE KEY 5
ASC/ASCQ 5302
Error:
SENSE KEY 5
ASC/ASCQ 5302
Eject Enabled The state remains
unchanged.
Eject the cartridge
(Ejection with the Eject
switch)
Inhibited The state remains
unchanged.
The state remains unchanged. Media
ejection is still inhibited.