cdutil Command
Purpose
Tells the cdromd daemon to suspend or resume management of a device.
Syntax
cdutil { -l | -r | -s [ -k ] } [ -q ] [ -h | -? ] DeviceName
Description
The cdutil command sends an appropriate command to the cdromd daemon which suspends (-s flag) or resumes (-r flag) the management of the device specified by DeviceName.
A device managed by cdromd must be set in suspend state if it needs to be unconfigured (for example for a hotswap of the parent adapter).
The resume flag (-r) asks cdromd to restart polling the device.
Flags
| Item | Description |
|---|---|
| -h or -? | Displays the command usage message. |
| -k | Do not eject the media when suspending a device. |
| -l | Load the media if one is present in the drive. |
| -q | Specifies silent mode: Doesn't print any information or error messages. |
| -r | Resumes device management by cdromd. |
| -s | Suspends device management by cdromd. |
| DeviceName | Specifies the name of the device. |
Exit Status
This command returns the following exit values:
- 0
- No error
- >0
- An error occurred
Examples
- To suspend management of cd0 by cdromd, type:
cdutil -s cd0 - To suspend management of cd0 by cdromd without ejecting
the media, type:
cdutil -s -k cd0 - To resume management of cd1 by cdromd without any
printed error messages, type:
cdutil -r -q cd1