All of lore.kernel.org
 help / color / mirror / Atom feed
* Trapping eject button on CD-ROM
@ 2004-03-14 16:40 Jon Niehof
  2004-03-14 19:01 ` H. Peter Anvin
  0 siblings, 1 reply; 5+ messages in thread
From: Jon Niehof @ 2004-03-14 16:40 UTC (permalink / raw)
  To: autofs

Apologies if this has been asked before; I read a
HOWTO that seemed to imply it was possible but haven't
seen anything beyond that.

Is it possible to configure autofs to "catch" the
eject button on a CD-ROM and unmount the filesystem
(presuming it's not busy, of course), then eject?

__________________________________
Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam
http://mail.yahoo.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Trapping eject button on CD-ROM
  2004-03-14 16:40 Trapping eject button on CD-ROM Jon Niehof
@ 2004-03-14 19:01 ` H. Peter Anvin
  0 siblings, 0 replies; 5+ messages in thread
From: H. Peter Anvin @ 2004-03-14 19:01 UTC (permalink / raw)
  To: Jon Niehof; +Cc: autofs

Jon Niehof wrote:
> Apologies if this has been asked before; I read a
> HOWTO that seemed to imply it was possible but haven't
> seen anything beyond that.
> 
> Is it possible to configure autofs to "catch" the
> eject button on a CD-ROM and unmount the filesystem
> (presuming it's not busy, of course), then eject?
> 

No.

If you monitor insert and eject you don't want autofs anyway.  You want 
something like what Solaris calls "vold".

	-hpa

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: Trapping eject button on CD-ROM
       [not found] <4827392DDA3F414D80608255823E18910F768A@permls01.wde.woodside.com.au>
@ 2004-03-15  3:56 ` Jon Niehof
  2004-03-15 10:24   ` Robin Rosenberg
  0 siblings, 1 reply; 5+ messages in thread
From: Jon Niehof @ 2004-03-15  3:56 UTC (permalink / raw)
  To: Kent, Ian I., autofs

> Maybe what you need is supermount.
> 
> Google search should turn up something.
Perfect. Thank you; that does exactly what I want for
my removables and autofs handles the rarely-used
partitions fine. Perfect all around.

__________________________________
Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam
http://mail.yahoo.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Trapping eject button on CD-ROM
  2004-03-15  3:56 ` Jon Niehof
@ 2004-03-15 10:24   ` Robin Rosenberg
  2004-03-15 18:07     ` H. Peter Anvin
  0 siblings, 1 reply; 5+ messages in thread
From: Robin Rosenberg @ 2004-03-15 10:24 UTC (permalink / raw)
  To: autofs; +Cc: Kent, Ian I.

On Monday 15 March 2004 04:56, Jon Niehof wrote:
> > Maybe what you need is supermount.
> >
> > Google search should turn up something.
>
> Perfect. Thank you; that does exactly what I want for
> my removables and autofs handles the rarely-used
> partitions fine. Perfect all around.

Agree, automoun is fine. A short timeout for CD's work fine. Set the timeout 
to 15 seconds. Shorter is bad if you tend to use GUI's that don't hold a lock 
on the CD, as the CD will often be unounted/remounted (=slow) inbetween the 
clicks. and all you have to do is wait a few seconds before the disk is 
ejected. If it doesn't come out someone is using it.

-- robin

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Trapping eject button on CD-ROM
  2004-03-15 10:24   ` Robin Rosenberg
@ 2004-03-15 18:07     ` H. Peter Anvin
  0 siblings, 0 replies; 5+ messages in thread
From: H. Peter Anvin @ 2004-03-15 18:07 UTC (permalink / raw)
  To: Robin Rosenberg; +Cc: autofs, Kent, Ian I.

Robin Rosenberg wrote:
> On Monday 15 March 2004 04:56, Jon Niehof wrote:
> 
>>>Maybe what you need is supermount.
>>>
>>>Google search should turn up something.
>>
>>Perfect. Thank you; that does exactly what I want for
>>my removables and autofs handles the rarely-used
>>partitions fine. Perfect all around.
> 
> 
> Agree, automoun is fine. A short timeout for CD's work fine. Set the timeout 
> to 15 seconds. Shorter is bad if you tend to use GUI's that don't hold a lock 
> on the CD, as the CD will often be unounted/remounted (=slow) inbetween the 
> clicks. and all you have to do is wait a few seconds before the disk is 
> ejected. If it doesn't come out someone is using it.
> 

Note that any time your filesystem is unmounted you throw away the cache.

	-hpa

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-03-15 18:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-14 16:40 Trapping eject button on CD-ROM Jon Niehof
2004-03-14 19:01 ` H. Peter Anvin
     [not found] <4827392DDA3F414D80608255823E18910F768A@permls01.wde.woodside.com.au>
2004-03-15  3:56 ` Jon Niehof
2004-03-15 10:24   ` Robin Rosenberg
2004-03-15 18:07     ` H. Peter Anvin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.