cdromd Command

Note: Use System Resource Controller (SRC) commands to control the cdromd daemon from the command line. To have the cdromd daemon enabled on each system startup, add the following line to /etc/inittab:
cdromd:23456789:wait:/usr/bin/startsrc -s cdromd

Purpose

Automatically mounts a CD-ROM or DVD-ROM when it is inserted in a device, and provides the server function for the cdutil, cdcheck, cdmount, cdumount, and cdeject commands.

Syntax

cdromd [ -d ]

Description

The cdromd daemon finds the device list it has to manage and their respective mount points in /etc/cdromd.conf file. If this file does not exist or is empty, cdromd manages all the CD-ROM and DVD-ROM devices available on the system, and the mount points are /cdrom/cd0 for cd0, /cdrom/cd1 for cd1, etc.

After its init phase cdromd periodically checks if a media is present in one of the managed drives (for devices that are not already mounted) and mounts it if there is a media.

cdromd also periodically checks its socket for requests comming from cdutil, cdcheck, cdmount, cdumount or cdeject commands.

The cdromd daemon should be controlled using the System Resource Controller (SRC). Entering cdromd at the command line is not recommended.

The cdromd daemon sends its error messages to the syslogd daemon.

The cdromd daemon can interfere with scripts, applications, or instructions that attempt to mount the CD or DVD device without first checking to see if the device is already enabled. A resource or device busy error will occur in such a condition. Use the cdumount or cdeject command to unmount the device so that you can mount the device as specified in the program or instructions. Alternatively, use the cdcheck -m or mount command to determine the current mount point of the device.

Manipulating the cdromd daemon with the System Resource Controller:

The cdromd daemon is a subsystem controlled by the System Resource Controller (SRC). Its subsystem name is cdromd. The cdromd daemon can be manipulated by the following SRC commands:
stopsrc
Stops a subsystem, group of subsystems, or a subserver.
startsrc
Starts a subsystem, a group of subsystems, or a subserver.
refresh
Requests a refresh of a subsystem or group of subsystems.
traceson
Turns on tracing of a subsystem, group of subsystems, or a subserver.
tracesoff
Turns off tracing of a subsystem, group of subsystems, or a subserver.
lssrc
Gets the status of a subsystem, group of subsystems, or a subserver.

In addition, the cdromd daemon can be controlled by issuing signals using the kill command. Sending a SIGHUP signal to cdromd is equivalent to the "refresh -s cdromd" command, and sending a SIGTERM signal to cdromd is equivalent to the "stopsrc -s cdromd" command.

Flags

Item Description
-d Sends debugging messages to syslogd daemon.

Exit Status

This daemon returns the following exit values:

0
The cdromd daemon was stopped by SRC or SIGTERM signal.
>0
An error occurred.

Examples

  1. To stop the cdromd daemon normally, enter the following:
    stopsrc -s cdromd
    This command stops the daemon. The -s flag indicates that the specified subsystem is to be stopped.
  2. To start the cdromd daemon, enter the following:
    startsrc -s cdromd
    This command starts the daemon. This command is in the /etc/inittab file and can be used on the command line. The -s flag indicates that the specified subsystem is to be started.
  3. To get a short status report from the cdromd daemon, enter the following:
    lssrc -s cdromd
    This command returns the name of the daemon, the process ID of the daemon, and the state of the daemon (active or inactive).
  4. To tell cdromd daemon its configuration file has changed, enter the following:
    refresh -s cdromd
    This command tells the cdromd daemon to read its configuration file again.

Files

Item Description
/etc/cdromd.conf Describes managed devices and supported file systems.