6 CDROMs

Contents of this section

This section gives information that is specific to cdrom drives.

6.1 Supported and Unsupported Hardware

SCSI CDs with a block size of 512 or 2048 bytes should work. Other block sizes will not work.

6.2 Common Problems

Unable to mount cdrom.

The correct syntax to mount an ISO-9660 CDROM is

mount -t iso9660 /dev/sr0 /mount_point -o ro

Note that for this to work, you must have the kernel configured with support for SCSI, your host adapter, the SCSI CDROM driver, and the iso9660 filesystem.

Note that as of Linux 1.1.32, read-only devices such as CDROMs cannot be mounted with the default read/write options.

Unable to eject cdrom.

Linux attempts to lock the drive door when a piece of media is mounted to prevent filesystem corruption due to an inadvertant media change.

Unable to play audio.

The programs Workman or xcdplayer will do this for you.

Workman or Xcdplayer do not work.

The functions to control audio functions are part of the SCSI-II command set, so any drive that is not SCSI-II will probably not work here. Also, many SCSI-I and some SCSI-II CDROM drives use a proprietary command set for accessing audio functions instead of the SCSI-II command set. For NEC drives, there is a version of xcdplayer specially adapted to use this command set floating around - try looking on ftp://tsx-11.mit.edu/pub/linux/BETA/cdrom

These programs may work with some of the non-SCSI cdrom drives if the driver implements the same ioctls as the scsi drivers.

6.3 Device Files

SCSI CDROMs use major 11.

Minors are allocated dynamically (See Section 4: Disks, Subsection 4.3: Device Files for an example) with the first CDROM found being minor 0, the second minor 1, etc.

The standard naming convention is

/dev/sr{digit} ie

/dev/sr0 /dev/sr1

etc.

Next Chapter, Previous Chapter

Table of contents of this chapter, General table of contents

Top of the document, Beginning of this Chapter