Prevent/Allow Media Removal

2.17Prevent/Allow Media Removal (1Eh)

Operation code is (1Eh).

Prev (Prevent bit)

When this bit is set to 1, EJECT DISK commands (C0h) and the Eject Button on the drive are ignored. When it is 0, media removal is allowed.

This command is used to prevent or allow media removal from the drive. If an EJECT DISK command is received when media removal is prevented, a Check Condition is returned with the sense key "Illegal request" and the extended sense code of 80h (Medium Change Prohibited).

The prevented condition is released when a BUS DEVICE RESET message is received or a hardware reset occurs.

- 79 -