![](/images/new-backgrounds/1106359/106359109x1.webp)
PREVENT/ALLOW MEDIUM REMOVAL
Table 47. PREVENT/ALLOW MEDIUM REMOVAL Command
| 7 | 6 | 5 |
| 4 |
| 3 |
| 2 | 1 | 0 |
|
|
|
|
|
|
|
|
|
|
| |
0 |
|
|
| Operation Code (1Eh) |
|
|
| ||||
|
|
|
|
|
|
|
|
|
|
|
|
1 | Logical Unit Number (0) |
|
|
|
|
| Reserved |
|
| ||
|
|
|
|
|
|
|
|
|
|
| |
2 |
|
|
|
| Reserved |
|
|
| |||
|
|
|
|
|
|
|
|
|
|
| |
3 |
|
|
|
| Reserved |
|
|
| |||
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
|
|
| Reserved |
|
|
|
| Prevent | |
|
|
|
|
|
|
|
|
|
|
|
|
5 |
|
|
|
| Control |
|
|
|
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
The PREVENT/ALLOW MEDIUM REMOVAL command is used to prevent accidental removal of the medium while it is required by an initiator.
If the Prevent flag is set, then eject requests from the front panel are ignored and Unload commands give Check Condition status. The Sense Key is set to Illegal Request and the ASC/ASCQ to Medium Removal Prevented (5302).
All initiators that have prevented medium removal must enable it before the medium can be removed from the drive.
Chapter 2. Command Support 41