Cdrom Howto PDF
Cdrom Howto PDF
Jeff Tranter
[email protected]
v1.15, 11 May 2001
Revision History
Revision 1.15
20010511
This document describes how to install, configure, and use CDROM drives under Linux. It lists the
supported hardware and answers a number of frequently asked questions. The intent is to bring new users up
to speed quickly and reduce the amount of traffic in the Usenet news groups and mailing lists.
Table of Contents
1. Introduction.....................................................................................................................................................1
1.1. Acknowledgments.............................................................................................................................1
1.2. New Versions Of This Document.....................................................................................................1
1.3. Feedback...........................................................................................................................................2
1.4. Distribution Policy............................................................................................................................2
2. CDROM Technology....................................................................................................................................3
3. Supported Hardware......................................................................................................................................4
3.1. ATAPI CDROM Drives.................................................................................................................4
3.2. SCSI CDROM Drives....................................................................................................................4
3.3. Proprietary CDROM Drives...........................................................................................................5
3.4. Parallel Port Drives...........................................................................................................................6
3.5. PCMCIA Drives...............................................................................................................................7
3.6. USB CDROM Drives.....................................................................................................................7
4. Installation.......................................................................................................................................................8
4.1. Installing the Hardware.....................................................................................................................8
4.2. Configuring and Building the Kernel...............................................................................................8
4.3. Creating Device Files and Setting Boot Time Parameters................................................................9
4.3.1. Sbpcd Driver...................................................................................................................10
4.3.2. Sonycdu535 Driver.........................................................................................................11
4.3.3. Cdu31a Driver.................................................................................................................12
4.3.4. Aztcd Driver...................................................................................................................13
4.3.5. Gscd Driver.....................................................................................................................14
4.3.6. Mcd Driver......................................................................................................................14
4.3.7. Mcdx Driver....................................................................................................................15
4.3.8. Cm206 Driver.................................................................................................................16
4.3.9. Optcd Driver...................................................................................................................16
4.3.10. Sjcd Driver....................................................................................................................17
4.3.11. Paride Driver.................................................................................................................18
4.3.12. SCSI Driver...................................................................................................................18
4.3.13. IDECD Driver...............................................................................................................19
4.4. Booting the Linux Kernel...............................................................................................................20
4.5. Mounting, Unmounting, and Ejecting Devices...............................................................................20
4.6. Troubleshooting..............................................................................................................................21
4.6.1. Step 1: Make sure you are really running the kernel you compiled...............................21
4.6.2. Step 2: Make sure the proper kernel drivers are compiled in.........................................21
4.6.3. Step 3: Did the kernel detect your drive during booting?...............................................22
4.6.4. Step 4: Can you read data from the drive?......................................................................23
4.6.5. Step 5: Can you mount the drive?...................................................................................23
4.6.6. Debugging Audio Problems............................................................................................24
4.6.7. When All Else Fails........................................................................................................24
5. Applications...................................................................................................................................................25
5.1. Audio CD Players...........................................................................................................................25
5.2. PhotoCD..........................................................................................................................................26
5.3. Mkisofs...........................................................................................................................................26
i
Table of Contents
5.4. ISO9660 Utilities..........................................................................................................................26
6. Answers to Frequently Asked Questions....................................................................................................27
6.1. How can a nonroot user mount and unmount discs?....................................................................27
6.2. Why do I get device is busy when unmounting a CDROM?.......................................................27
6.3. How do I export a CDROM to other hosts over NFS?.................................................................27
6.4. Can I boot Linux from a CDROM?..............................................................................................28
6.5. How can I read digital data from audio CDs?.................................................................................28
6.6. Why doesn't the find command work properly?.............................................................................28
6.7. Does Linux support any recordable CDROM drives?..................................................................28
6.8. Why do I get mount: Readonly file system when mounting a CDROM?..................................28
6.9. Why does the disc tray open when I shut down the system?..........................................................29
6.10. I have a "special" CD that can't be mounted.................................................................................29
6.11. Do multiplatter CDROM drives work with Linux?.................................................................29
6.12. I get "/cdrom: Permission denied" errors......................................................................................30
6.13. How do I interpret IDE CD kernel error messages?.....................................................................30
6.14. How can I tell what speed CDROM I have?..............................................................................30
6.15. My CDROM stopped working after Linux was installed...........................................................31
6.16. There are "hidden" files on a CD which I can't read.....................................................................31
6.17. Where is the CDROM API documented?...................................................................................31
6.18. Why don't I see long filenames on this Windows CDROM?.....................................................32
6.19. Is Microsoft's Joliet filesystem supported?...................................................................................32
6.20. Does Linux support "enhanced" CDs?.........................................................................................32
6.21. Does Linux support DVDROM?................................................................................................32
6.22. Does Linux support CDRW?......................................................................................................32
6.23. How do I mount a multisession disc?.........................................................................................33
6.24. How do I read a CD volume label?...............................................................................................33
6.25. My IDE CDR or CDRW drive is not working with Linux......................................................33
7. References......................................................................................................................................................34
ii
1. Introduction
This is the Linux CDROM HOWTO. It is intended as a quick reference covering everything you need to
know to install and configure CDROM hardware under Linux. Frequently asked questions related to
CDROM are answered, and references are given to other sources of information related to CDROM
applications and technology.
1.1. Acknowledgments
Much of this information came from the documentation and source files provided with the Linux kernel, the
Internet alt.cdrom newsgroup FAQ, and input from Linux users.
Thanks to the DocBook tools, this HOWTO is available in several formats, all generated from a common
source file.
1.3. Feedback
I rely on you, the reader, to make this HOWTO useful. If you have any suggestions, corrections, or
comments, please send them to me, [email protected], and I will try to incorporate them in the next
revision.
I am also willing to answer general questions on CDROM under Linux, as best I can. Before doing so,
please read all of the information in this HOWTO, and then send me detailed information about the problem.
Please do not ask me about using CDROM drives under operating systems other than Linux.
If you publish this document on a CDROM or in hardcopy form, a complimentary copy would be
appreciated; mail me for my postal address. Also consider making a donation to the Linux Documentation
Project to help support free documentation for Linux. Contact the LDP at [email protected] for more
information.
1.3. Feedback
2. CDROM Technology
"CDROM is readonly memory, and audio compact disc system is available as
packagemedia of digital data for those purpose. For playing audio CD, please insert
Headphone jack."
from a CDROM instruction manual
Don't Panic! The world of CDROM technology is not as confusing as your instruction manual.
CDROM stands for Compact Disc ReadOnly Memory, a mass storage medium utilizing an optical laser to
read microscopic pits on the aluminized layer of a polycarbonate disc. The same format is used for audio
Compact Discs. Because of its high storage capacity, reliability, and low cost, CDROM has become an
increasingly popular storage media.
The storage capacity of a CDROM disc is approximately 650 megabytes, equivalent to over 500 high
density 3.5" floppy disks or roughly 250,000 typed pages.
First generation drives (known as single speed), provided a transfer rate of approximately 150 kilobytes per
second. Hardware manufacturers then introduced double speed (300 kB/sec), quad speed (600 kB/sec), and
higher. Current drives operate at up to 40 times speed, although the maximum rate is only achievable over
certain portions of the disc surface.
Most CDROM drives use either the Small Computer Systems Interface (SCSI), ATAPI enhanced IDE
interface, or a vendor proprietary interface. They also typically support playing audio CDs via an external
headphone jack or line level output. Most drives also allow reading the frames of data from audio CDs in
digital form.
CDROMs are usually formatted with an ISO9660 (formerly called High Sierra) file system. This format
restricts filenames to the MSDOS style (8+3 characters). The Rock Ridge Extensions use undefined fields in
the ISO9660 standard to support longer filenames and additional Unix style information (e.g. file
ownership, symbolic links, etc.). Microsoft has defined a proprietary ISO file system extension called Joliet
which supports long filenames using the 16bit UNICODE character encoding.
PhotoCD is a standard developed by Kodak for storing photographic images as digital data on a CDROM.
With appropriate software, you can view the images on a computer, manipulate them, or send them to a
printer. Information can be added to a PhotoCD at a later date; this is known as multisession capability.
CD recordable (CDR) drives allow writing onto a special "gold" CD which can then be read by any
CDROM drive. Data can only be written once, although using multisession new data can be appended to a
disc.
CDRW (rewritable) drives can be erased and rewritten with new data. They use special discs which can be
read by most recent CDROM drives (but not older ones or most audio CD players).
DVDROM expands the storage of a CD to as much as 17 gigabytes. They are commonly used as a medium
for distributing full length motion pictures encoded using the MPEG2 format. The MPEG video decoding is
performed using specialized decoder software and/or hardware. DVDRAM is a writable version of DVD.
2. CDROM Technology
3. Supported Hardware
This section lists the CDROM drivers and interfaces that are currently supported under Linux. The
information here is based on the latest stable Linux kernel, which at time of writing was version 2.4.4.
This information is valid for Linux on the Intel x86 platform. Much of it is applicable to Linux on other
processor architectures as well.
3. Supported Hardware
Model
Kernel
Driver
Notes
Panasonic
CR521
sbpcd
Note 1
Panasonic
CR522
sbpcd
Note 1
Panasonic
CR523
sbpcd
Note 1
Panasonic
CR562
sbpcd
Note 1
Panasonic
CR563
sbpcd
Note 1
Creative Labs
CD200
sbpcd
IBM
External ISA
sbpcd
Longshine
LCS7260
sbpcd
Teac
CD55A
sbpcd
Sony
CDU31A
cdu31a
Sony
CDU33A
cdu31a
Sony
CDU535
sonycd535
Sony
CDU531
sonycd535
Aztech
CDA26801A
aztcd
Orchid
CDS3110
aztcd
Okano/Wearnes
CDD110
aztcd
Conrad
TXC
aztcd
CyCDROM
CR520ie
aztcd
CyCDROM
CR940ie
aztcd
GoldStar
R420
gscd
Note 2
Note 3
Note 4
Note 5
CM206
cm206
Mitsumi
Note 7,
8
Mitsumi
FX001
Note 7,
8
Optics Storage
Lasermate
CR328A
optcd
Sanyo
H94A
sjcd
various
various
isp16
mcd/mcdx
Note 6
Note 9
Notes:
1. These drives may be sold under the names Creative Labs, Panasonic, Matsushita, or Kotobuki.
2. This drive is the same as a Panasonic CR562.
3. May also be sold under the Procomm name.
4. This driver is for the CDA26801A only. Other models, including the CDA26803I and
CDA269031SE are not proprietary and should use the IDECD (ATAPI) kernel driver.
5. May also be sold as part of a Reveal Multimedia Kit.
6. The Philips CM205 is not supported by this driver, but there is a separate alpha release driver
available from ftp://www.ibiblio.org in /pub/Linux/kernel/patches/cdrom/lmscd0.4.tar.gz
7. May also be sold under the Radio Shack name.
8. There are two drivers available. "mcd" is the original one, and "mcdx" is a newer driver with more
features (XA and multisession support).
9. This driver works with CDROM drives that are attached to the interface on an ISP16, MAD16 or
Mozart sound card.
If a drive listed here is not supported by your kernel, you probably need to upgrade to a newer version.
If your drive is not one of the models listed here, particularly if it was bought recently and is quad speed or
faster, it probably uses the IDE/ATAPI interface listed in a previous section. The single most common error
among Linux CDROM users is to assume that any drive connected to a SoundBlaster card should use the
SBPCD driver. Creative Labs and most other vendors are no longer selling proprietary interface drives, they
are following the standard ATAPI/IDE interface.
4. Installation
Installation of a CDROM under Linux consists of these steps:
1. Installing the hardware.
2. Configuring and building the Linux kernel.
3. Creating device files and setting boot time parameters
4. Booting the Linux kernel.
5. Mounting the media.
The next sections will cover each of these steps in detail.
If you want to play audio CDs, you will need to set the protection on the device file (the real file, not the
symbolic link to it) to allow all users to read, e.g.
# chmod 664 /dev/hdd
# ls l /dev/hdd
brwrwr
1 root
disk
22,
64 Feb
1995 /dev/hdd
Some Linux distributions use group permissions to control access to devices such as CDROMs. A common
convention is to only allow members of a group called cdrom to have access. In this case you should add the
appropriate users to the group rather than changing file permissions on the device file.
When booting Linux, the device drivers attempt to determine whether the appropriate devices are present,
typically by probing specific addresses. Many of the drivers autoprobe at several addresses, but because of
differences in configuration, possible device conflicts, and hardware limitations, the drivers sometimes need
help identifying the addresses and other parameters. Most drivers support an option on the kernel command
line to pass this information to the device driver. This can be done interactively, or more commonly,
configured into your boot loader. With LILO, for example, you would add an append command such as the
following to your /etc/lilo.conf file:
append = "sbpcd=0x230,SoundBlaster"
Eberhard Moenkeberg
([email protected])
Multisession support:
yes
10
yes
Autoprobing:
yes
Device file:
/dev/sbpcd, major 25
Configuration file:
sbpcd.h
Matsushita/Panasonic CDROM
support
Documentation file:
sbpcd
where the first parameter is the base address of the device (e.g. 0x230), and <interfacetype> is one of
"SoundBlaster", "LaserMate", or "SPEA". See the file sbpcd.h for hints on what interface type to use.
Using sbpcd=0 disables autoprobing, disabling the driver.
The device file can be created using:
# mknod /dev/sbpcd b 25 0
Up to four drives per controller are supported. The next three drives on the first controller would use minor
device numbers 1 through 3. If you have more than one controller, create devices with major numbers 26, 27,
and 28, up to a maximum of 4 controllers (this is 16 CDROM drives in total; hopefully enough for most
users :).
See the file sbpcd for more information on this driver.
If you recently bought a CDROM drive, don't assume that if it connects to a SoundBlaster card it should use
this kernel driver. Most CDROM drives being sold by Creative Labs are now EIDE/ATAPI drives.
Ken Pizzini
([email protected])
no
yes
no
Autoprobing:
no
Device file:
/dev/sonycd535, major 24
Configuration file:
sonycd535.h
11
sonycd535
where <ioaddress> is the base address of the controller (e.g. 0x320). Alternatively you can set the address in
the file sonycd535.h and compile it in.
The device file can be created using:
# mknod /dev/sonycd535 b 24 0
Some Linux distributions use /dev/sonycd for this device. Older versions of the driver used major device
number 21; make sure your device file is correct.
This driver was previously distributed as a patch but is now part of the standard kernel. See the file
sonycd535 for more information on this driver.
Corey Minyard
([email protected])
Multisession support:
yes
no
yes
yes
Autoprobing:
no
Device file:
/dev/cdu31a, major 15
Configuration file:
cdu31a.h
Documentation file:
cdu31a
The first number is the I/O base address of the card (e.g. 0x340). The second is the interrupt number to use (0
means to use polled i/o). The optional third parameter should be "PAS" if the drive is connected to a
ProAudio Spectrum 16 sound card, otherwise left blank.
4.3.3. Cdu31a Driver
12
Werner Zimmermann
([email protected])
Multisession support:
yes
no
yes
no
Autoprobing:
no
Device file:
/dev/aztcd0, major 29
Configuration file:
aztcd.h
Documentation file:
aztcd
where the parameter is the I/O base address of the card (e.g. 0x340).
The device file can be created using:
# mknod /dev/aztcd0 b 29 0
Note that this driver is for the CDA26801A only. Other models, including the CDA26803I and
CDA269031SE are not proprietary and should use the IDECD (ATAPI) kernel driver.
See the file aztcd for more information on this driver.
13
Oliver Raupach
([email protected])
Multisession support:
no
no
yes
no
Autoprobing:
no
Device file:
/dev/gscd0, major 16
Configuration file:
gscd.h
Documentation file:
gscd
Martin ([email protected])
Multisession support:
no
no
yes
no
Autoprobing:
no
Device file:
/dev/mcd, major 23
Configuration file:
mcd.h
14
mcd
This is the older driver for Mitsumi drivers that has been available for some time. You might want to try the
newer mcdx driver, which has some new features but is possibly less stable.
This driver accepts a kernel command line of the form:
mcd=<ioaddress>,<irq>
specifying the I/O base address of the card (e.g. 0x340) and the IRQ request number used.
The device file can be created using:
# mknod /dev/mcd b 23 0
Heiko Schlittermann
Multisession support:
yes
yes
yes
no (not supported by
hardware)
Autoprobing:
no
Device file:
/dev/mcdx0, major 20
Configuration file:
mcdx.h
Experimental Mitsumi
support
Documentation file:
mcdx
This is a newer driver for Mitsumi drivers. The older and possibly more stable mcd driver is still available.
This driver accepts a kernel command line of the form:
mcdx=<ioaddress>,<irq>
specifying the I/O base address of the card (e.g. 0x340) and the IRQ request number used.
The device file can be created using:
# mknod /dev/mcdx0 b 20 0
15
Multisession support:
yes
no
yes
no
Autoprobing:
yes
Device file:
/dev/cm206cd, major 32
Configuration file:
cm206.h
Documentation file:
cm206
where the first number is the I/O base address of the card (e.g. 0x340). The second is the interrupt channel.
The device file can be created using:
# mknod /dev/cm206cd b 32 0
Leo Spiekman
([email protected])
Multisession support:
yes
no
yes
16
no
Autoprobing:
no
Device file:
/dev/optcd0, major 17
Configuration file:
optcd.h
Documentation file:
optcd
Multisession support:
no
no
yes
no
Autoprobing:
no
Device file:
/dev/sjcd, major 18
Configuration file:
sjcd.h
Documentation file:
sjcd
indicating the base address, interrupt, and DMA channel to be used (e.g. sjcd=0x340,10,5).
The device file can be created using:
4.3.10. Sjcd Driver
17
Grant R. Guenther
([email protected])
Multisession support:
no
yes
yes
no
Autoprobing:
yes
Device file:
/dev/pcd0, major 46
Configuration file:
bpcd.h
Documentation file:
paride.txt
This is the driver for various types of storage devices that attach to a parallel port. Normally the driver will
autodetect the parallel port device. The documentation describes parameters that can be used to specify the
device parameters if autodetection does not work.
The device file for the first drive can be created using:
# mknod /dev/pcd0 b 46 0
David Giller
Multisession support:
yes (depending on
drive)
yes
yes
no
Autoprobing:
yes
18
/dev/scd0, major 11
Configuration file:
cdrom.h
Documentation file:
scsi.txt
There are kernel command line option specific to each type of SCSI controller. See the SCSI HOWTO for
more information.
Multiple drives are supported (up to the limit of the maximum number of devices on the SCSI bus). Create
device files with major number 11 and minor numbers starting at zero:
# mknod /dev/scd0 b 11 0
# mknod /dev/scd1 b 11 1
While the kernel driver itself does not support reading digital audio frames, some SCSI drives have the
capability and will work with the cdda2wav program (which uses the generic SCSI kernel interface).
Also see the discussion of the IDE SCSI emulation driver earlier in this document.
Multisession support:
yes
yes
no
Autoprobing:
yes
Device file:
/dev/hd{a,b,c,d}, major 22
Configuration file:
cdrom.h
Documentation file:
idecd
This is the driver for ATAPI CDROMS. The driver accepts a kernel command line of the form
hdx=cyls,heads,sects,wpcom,irq
or
hdx=cdrom
where hdx can be any of {hda,hdb,hdc,hdd}, or simply hd, for the "next" drive in sequence. Only the first
three parameters are required (cyls,heads,sects). For example hdc=1050,32,64 hdd=cdrom.
19
If the bootup messages scroll by too quickly to read, you should be able to retrieve them using dmesg or
tail /var/log/messages.
If the drive is not found, then a problem has occurred, See the section on troubleshooting.
The disc can only be unmounted if no processes are currently accessing the drive (including having their
default directory set to the mounted drive). You can then eject the disc. Most drives have an eject button;
there is also a standalone eject program that allows ejecting CDROMs under software control.
4.4. Booting the Linux Kernel
20
4.6. Troubleshooting
If you still encounter problems after following the instructions in the HOWTO, here are some things to check.
The checks are listed in increasing order of complexity. If a check fails, solve the problem before moving to
the next stage.
4.6.1. Step 1: Make sure you are really running the kernel you compiled
You can check the date stamp on the kernel to see if you are running the one that you compiled with
CDROM support. You can do this with the uname command:
% uname a
Linux moe 2.4.4 #1 Sat Apr 28 10:30:45 EDT 2001 i686 unknown
% cat /proc/version
Linux version 2.4.4 (root@moe) (gcc version 2.95.2 20000220 (Debian GNU/Linux)) #1 Sat Apr 28 10:
If the date stamp doesn't match when you compiled the kernel, then you are running an old kernel. Did you
remember to reboot? If you use LILO, did you reinstall it (typically by running /sbin/lilo)? If booting
from floppy, did you create a new boot floppy and use it when booting?
4.6.2. Step 2: Make sure the proper kernel drivers are compiled in
You can see what drivers are compiled in by looking at /proc/devices:
% cat /proc/devices
Character devices:
1 mem
2 pty
3 ttyp
4 ttyS
5 cua
7 vcs
4.6. Troubleshooting
21
Block devices:
3 ide0
22 ide1
First look for your CDROM device driver. These are all block devices, in this case we can see that the
idecd driver with major number 22 was present.
Also make sure that ISO9660 filesystem support was compiled in, by looking at /proc/filesystems:
% cat /proc/filesystems
ext2
nodev
proc
nodev
devpts
vfat
iso9660
You can also see what i/o port addresses are being used by a driver with the file /proc/ioports:
howto % cat /proc/ioports
...
02300233 : sbpcd
...
If any of the drivers you thought you compiled in are not displayed, then something went wrong with the
kernel configuration or build. Start the installation process again, beginning with configuration and building
of the kernel.
4.6.3. Step 3: Did the kernel detect your drive during booting?
Make sure that the CDROM device was detected when the kernel booted. You should have seen a message
on bootup. If the messages scrolled off the screen, you can usually recall them using the dmesg command:
% dmesg
or
% tail /var/log/messages
If your drive was not found then something is wrong. Make sure it is powered on and all cables are
connected. If your drive has hardware jumpers for addressing, check that they are set correctly (e.g. drive 0 if
you have only one drive). ATAPI CDROMS must be jumpered as "single" or "master", and not "slave"
when only one IDE device is attached to an interface. If the drive works under DOS then you can be
reasonably confident that the hardware is working.
Many kernel drivers using autoprobing, but some do not, and in any case the probing is not always reliable.
Use the kernel command line option listed for your kernel driver type. You may want to try several different
values if you are not sure of the i/o address or other parameters. LILO can be (and usually is) configured to
allow you to enter the parameters manually when booting.
Another possibility is that you used the wrong kernel driver for your CDROM driver. Some documentation
may refer to proprietary interfaces as IDE, leading some to mistakenly believe they are ATAPI drives.
4.6.3. Step 3: Did the kernel detect your drive during booting?
22
If this works, then the kernel is communicating with the drive and you can move on to step 5.
If not, then a possible cause is the device file. Make sure than the device file in the /dev directory has the
correct major and minor numbers as listed previously for your drive type. Check that the permissions on the
device file allow reading and writing.
A remote possibility is a hardware problem. Try testing the drive under another operating system, if possible,
to determine if this could be the case.
There may also be errors logged to files in /var/log, depending on how your system is configured.
23
24
5. Applications
This section briefly lists a few of the many applications related to CDROM that are available under Linux.
Check the Linux Software Map for the latest versions and archive sites.
5. Applications
25
5.2. PhotoCD
PhotoCDs use an ISO9660 file system containing image files in a proprietary format. Not all CDROM
drives support reading PhotoCDs.
The hpcdtoppm program by Hadmut Danisch converts PhotoCD files to the portable pixmap format. It can
be obtained from ftp://ftp.gwdg.de/pub/linux/hpcdtoppm or as part of the PBM (portable bit map) utilities,
available on many archive sites (look for "pbm" or "netpbm").
The photocd program by Gerd Knorr ([email protected]) can convert PhotoCD images into Targa or
Windows and OS/2 bitmap files.
The same author has written the program xpcd, an X11based program for handling PhotoCD images. You
can select the images with a mouse, preview the image in a small window, and load the image with any of the
five possible resolutions. You can also mark a part of the Image and load only the selected part. Look for
these packages at ftp://ftp.cs.tuberlin.de/pub/linux/Local/misc/.
The ImageMagick image file manipulation program also supports PhotoCD files. It is available from
ftp://ftp.x.org/contrib/applications/ImageMagick/.
5.3. Mkisofs
Eric Youngdale's mkisofs package allows creating an ISO9660 file system on a hard disk partition. This
can then be used to assist in creating and testing CDROM file systems before mastering discs.
5.2. PhotoCD
26
/mnt/cdrom
iso9660
user,noauto,ro
then an ordinary user will be allowed to mount and unmount the drive using these commands:
% mount /mnt/cdrom
% umount /mnt/cdrom
By default the disc will be mounted with some options that help enforce security (e.g. programs cannot
executed, device files are ignored). If this is too restrictive you can use additional options (e.g. the "exec"
option will enable execution or programs). See the mount(8) man page for details.
Another method is to get the usermount package which allows nonroot users to mount and unmount
removable devices such as floppies and CDROMs, but restricts access to other devices (such as hard disk
partitions). It is available on major archive sites.
Yet another option is to use the sudo program which allows users to run selective programs with root
privileges.
On some systems you may need to be root when running the fuser command in order to see the processes
of other users.
27
28
6.9. Why does the disc tray open when I shut down the
system?
The sbpcd driver supports automatically ejecting the CD when it is unmounted. In some older kernel versions
this was the default behaviour. If you shut down the system, a mounted CD will be unmounted, causing it to
eject.
This feature is for convenience when changing discs. If the tray is open when you mount or read a CD, it will
also automatically be closed.
I found that this caused problems with a few programs (e.g. cdplay and workbone). As of the 1.1.60 kernel
you can control this feature under software control. A sample program is included in the sbpcd
documentation file (or use the eject program). You can also control the default behaviour by editing the
kernel source file sbpcd.h.
29
The transfer rate of single speed drives is 150 kilobytes per second, which should take about 10 seconds. At
double speed it would take five seconds, quad speed would take 2.5, etc.
The "real" time above is probably the best number to look at in this case it indicates a double speed drive.
You can increase the amount of data transferred to get a more accurate value (the data does not get cached).
You should probably run the command a few times and take the average.
I've also written a small C program that measures and reports CDROM data transfer rate; I can send it to
you on request.
30
31
32
33
7. References
I have already mentioned the documentation files, typically installed in
/usr/src/linux/Documentation/cdrom. These can be a gold mine of useful information.
The following Usenet FAQs are posted periodically to news.answers and archived at Internet FTP sites such
as ftp://rtfm.mit.edu/.
alt.cdrom FAQ
comp.periphs.scsi FAQ
Enhanced IDE/FastATA/ATA2 FAQ
Several other Linux HOWTOs have useful information relevant to CDROM:
Linux SCSI HOWTO
Hardware Compatibility HOWTO
Sound HOWTO
Kernel HOWTO
Distribution HOWTO
CD Writing HOWTO
At least a dozen companies sell Linux distributions on CDROM; most of them are listed in the Distribution
HOWTO.
The following Usenet news groups cover CDROM related topics:
comp.publish.cdrom.hardware
comp.publish.cdrom.multimedia
comp.publish.cdrom.software
comp.sys.ibm.pc.hardware.cdrom
alt.cdrom
alt.cdrom.reviews
The comp.os.linux newsgroups are also good sources of Linux specific information.
A FAQ document on IDE and ATA devices can be found at
ftp://rtfm.mit.edu/pub/usenet/news.answers/pchardwarefaq/enhancedIDE/ and at
http://www.seagate.com/techsuppt/faq/faqlist.html.
A web site dedicated to multimedia can be found at http://www.scala.com/multimedia/. Creative Labs has a
web site at http://www.creaf.com/.
The Linux Software Map (LSM) is an invaluable reference for locating Linux software. The LSM home page
is at http://www.ExecPC.com/lsm/. and there is an online browsable version at http://www.boutell.com/lsm/.
Another great site for finding Linux applications is http://www.freshmeat.net/.
The Linux mailing list has a number of "channels" dedicated to different topics. To find out how to join, send
a mail message with the word "help" as the message body to [email protected].
The Linux Documentation Project has produced several books on Linux, including Linux Installation and
Getting Started. These are freely available by anonymous FTP from major Linux archive sites or can be
purchased in hardcopy format.
7. References
34
7. References
35