[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Commands Reference, Volume 1

cdmount Command

Purpose

Makes a file system available for use on a device managed by cdromd.

Syntax

cdmount [ -q ] [ -h | -? ] DeviceName

Description

The cdmount command sends an appropriate command to the cdromd daemon which mounts the file system on the device specified by DeviceName if it is not already mounted. This command can be used to mount a file system that was previously unmounted by the cdumount command.

The mount point used is either the one found in /etc/cdromd.conf file for the specified DeviceName or the default one (/cdrom/cd0 for cd0, /cdrom/cd1 for cd1, etc...).

The file system type and options used (-o and -V flag for mount command) are those found in /etc/cdromd.conf file or the default ones: "-Vcdrfs -oro" for a CD-ROM and "-Vudfs -oro" or "-Vcdrfs -oro" for DVD-ROM.

Flags

-h or -? Displays the command usage message.
-q Specifies silent mode: Doesn't print any information or error message.
DeviceName Specifies the name of the device.

Exit Status

This command returns the following exit values:

0
No error.
>0
An error occurred.

Examples

  1. To mount a file system on cd0 enter:
    cdmount cd0
  2. To mount a file system on cd1 without any printed error messages, enter:
    cdmount -q cd1

Related Information

The cdcheck command, cdeject command, cdromd daemon, cdumount command, cdutil command, mount command.

The cdromd.conf file format.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]