I wrote a quick module for cdrom changers. For example, to use my 2nd
cdrom in the jukebox, I type something like `cd /cdrom/2`, and the CD's in
drive will be automatically switched. I included the auto.master and
auto.cdrom files in the tgz file. Download it from:
        http://home.dntis.ro/~tvlad/proj/autofs/autofs_cdchanger_patch.tgz
 and get only the files new in package, or from 
        http://home.dntis.ro/~tvlad/proj/autofs/autofs-3.1.1.tar.gz to get
the whole package and the new module. Put in /etc/auto.master something
like:

# $Id: auto.master,v 1.2 1997/10/06 21:52:03 hpa Exp $
# Sample auto.master file
# Format of this file:
# mountpoint map options
# For details of the format look at autofs(8).
/cdrom  /etc/auto.cdrom

and the auto.cdrom should be:

# $Id: auto.cdrom
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# Details may be found in the autofs(5) manpage

1               -fstype=cdch,slot=1,uid=99,mode=755             :/dev/cdrom
2               -fstype=cdch,uid=99,slot=2                      :/dev/cdrom
3               -fstype=cdch,slot=3                             :/dev/cdrom
4               -fstype=cdch,slot=4                             :/dev/cdrom


type 'cd /cdrom/[1234]' to access the first four drives... Good luck and
tell me if there is something is wrong.


        Vlad.

Reply via email to