Mounting a CD/DVD with Solaris

If the Solaris volume management process (vold) is running, the operating system should automatically mount CD/DVD media. If vold does not appear to be working, or if you would like to mount the CD/DVD media manually, perform the following steps:

1. Identify the CD-ROM/DVD-ROM device.

$ iostat -En
c0t0d0          Soft Errors: 9 Hard Errors: 0 Transport Errors: 0
Vendor: TOSHIBA  Product: DVD-ROM SD-C2612 Revision: 1011 Serial No:
Size: 2.14GB <2144518144 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0

2. Ensure that vold is not running.

# pgrep vold && pkill vold

If you attempt to mount the CD/DVD manually with vold running, you may receive the following error:

mount: /dev/dsk/c0t0d0s2 is already mounted, /cdrom is busy,
        or allowable number of mount points exceeded

3. Create the mount point. In this example, the mount point will be /cdrom.
# [ ! -d /cdrom ] && mkdir /cdrom

4. Mount the CD/DVD.
# mount -F hsfs -o ro /dev/dsk/c0t0d0s2 /cdrom

If you do not specify the appropriate file system type, you may receive the following error:
mount: /dev/dsk/c0t0d0s2 is not this fstype.

If you do not mount the media read-only, you may receive the following message:
mount: /dev/dsk/c0t0d0s2 write-protected

Back to brandonhutchinson.com.

Last modified: 2007/06/26