Automatic mount/unmount CDs

Paul M. Bucalo pmbuc at pmbenterprises.com
Sat Oct 25 21:09:04 CEST 2003


On Saturday 25 October 2003 10:30 am, Shahar Weiss graced me with:
> Paul M. Bucalo wrote:
> >On Saturday 25 October 2003 06:43 am, Shahar Weiss graced me with:
> >>Olivier Fourdan wrote:
> >>>Actually, it's not the task of the user interface, but rather
> >>>automount from the kernel.
> >>>
> >>>Cheers,
> >>>Olivier.
> >>>
> >>>On Sat, 2003-10-25 at 12:19, Moritz Heiber wrote:
> >>>>On Sat, 25 Oct 2003 12:08:00 +0200
> >>>>
> >>>>Shahar Weiss <sweiss3 at gawab.com> wrote:
> >>>>>Hello. I was wondering, is it possible to make XFCE4
> >>>>>mount/unmount a CD automatically?
> >>>>
> >>>>xfmountdev4 does that task.
> >>>>
> >>>>>Shahar.
> >>>>
> >>>>Bye,
> >>>>
> >>>>Moritz
> >>
> >>I searched for xfmountdev4 and from the short decription there
> >> I'm not sure if that's what I need. What I meant was a way to
> >> automatically mount a CD when inserting it to the drive and
> >> automatically unmount it as I press the eject button.
> >>
> >>Or maybe I misunderstood myself?
> >>
> >>Thanks in advance,
> >>Shahar.
> >
> >What distro are you using? Red Hat (and maybe some others) use
> >'autofs' to do just that. As soon as you put in a CD its sensed
> > and is now mounted. The same with removal. Mandrake uses
> > 'supermount', same principle. Are you hoping to see an icon on
> > the Desktop that dynamically changes its 'looks' to show when a
> > CD is mounted or not? As Olivier stated, this is a function of
> > the way you have your O/S setup to deal with ROM's. If your CD's
> > are not automounting outside of XFce, you should manage that feat
> > in the O/S, not XFce.
> >
> >Paul
> >
> >_______________________________________________
> >Xfce mailing list
> >Xfce at xfce.org
> >http://moongroup.com/mailman/listinfo/xfce
>
> I'm using RedHat, I'll check autofs out. I'm pretty new to linux,
> and because Gnome automounts them automatically I assumed it has
> something to do with the DE rather than with the distro itself.
>
> Thanks for all the replies and tips,
> Shahar.

Shahar,

I just spent a bit of time trying to verify my response to your 
question. I couldn't get automounting to work, even though I'm 
loading the 'autofs' daemon upon each boot-up. A little reading and I 
can see that the files that support automounting were not active on 
my systems. I activated them, following the directions in the 
Mini-HOWTO for 'autofs', mimicking settings in the guide that should 
work for my CD-ROM and CD-RW drives. I just couldn't get automounting 
to work. This seems strange.

It's very probable that the Red Hat/GNOME2 Desktop works with autofs 
to automount whenever a CD is put into a drive or ejected to mount 
and unmount. KDE does it that way in Red Hat, and under Mandrake, 
supermount is always "live", anyways. 

Hmmm...

Anyone else running XFce-4 on Red Hat 9 like to comment on this? Are 
you able to get automounting on inserting a new CD while running 
under XFce-4, or do you mount manually ('xfmountdev4', 'xffstab4' in 
'xffm' or c-l in a terminal)?

Paul




More information about the Xfce mailing list