Re: Automounting CD's based on Volume label

Nathan Hand (nathanh@chirp.com.au)
Wed, 16 Sep 1998 07:11:37 +1000 (EST)


Software By the People, Of the People, For the People... Linux

On Tue, 15 Sep 1998, T Taneli Vahakangas wrote:

>
> On Mon, 14 Sep 1998, Mike A. Harris wrote:
>
> > Is there a way to mount different CDROM's on different dirs based
> > on their ISO9660 volume label? I'd like to have some
> > documentation CD's automatically mount under /usr/doc/whatever
> > without messing around.
>
> Debian comes with a program called "vold", which I believe does exactly
> what you want.

Debian's vold just polls the cdrom drive periodically. If it
detects a CD it mounts it by volume name. The bit which is a
little less than ideal is polling, given that most cdroms do
have the ability to report insertions.

As you can imagine, because floppies don't report insertions
(but they should be able to on non-PC controllers?) the vold
technique fails miserably. And it doesn't address the issues
with JAZ and ZIP (they both flicker LEDs when using vold).

I do like the mounting by volume name, though. But a correct
solution will need the ability to be notified when media has
been inserted. When the hardware and the kernel both support
this feature, a very trivial modification to autofs does the
rest of the job quite nicely.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/