Yes, HAL and udev handle the back end, but the disk-mounter and and the
Gnome "Computer" window handle the UI, and the problem is with the UI.
The information presented is pretty much the same, and I probably should
have left the applet out of this.  The "Computer" window presents an
icon for every appropriate entry in /etc/fstab.  An entry in /etc/fstab
allows automounting, but the name of the mount point isn't where the
Gnome UI shows the drive to be mounted.  Case in point:

I have a directory called /media/TRAVELDRIVE

I have an entry in /etc/fstab that says:

/dev/memorex_1gts   /media/TRAVELDRIVE   vfat    
noauto,users,dmask=007,fmask=117,gid=300 0 0

I get a "TRAVELDRIVE" icon in the Gnome "Computer" window as a result of
this entry in my fstab.

When I insert a Memorex Traveldrive USB drive, it's mounted, and a
window pops open with a title of "TRAVELDRIVE" displaying the contents
of said USB drive.

Now, in addition to the "TRAVELDRIVE" icon in my Gnome "Computer"
storage summary window, I have an icon labeled "Memorex TD Classic 003C:
TRAVELDRIVE".  The plain ol' "TRAVELDRIVE" icon in this window, which is
there because of my fstab entry, is non-functional.  The contents of the
USB drive are displayed by opening the "Memorex TD Classic .." Icon.

If I remove this entry from /etc/fstab and re-read it, the "TRAVELDRIVE"
icon goes away, but when I insert the USB drive, I get a mounting error,
as noted.  Perhaps if I created a directory called "/media/Memorex TD
Classic 003C" and spec'd this in /etc/fstab, I could reduce the double
icon to a single one, but mount(8) doesn't like filenames with spaces in
them in /etc/fstab.  I tried!

I've tried playing with mounting scripts in /etc/dev.d, but it looks as
if HAL and udev try to do their thing before reading these scripts, and
I can't seem to do an end run around the problem using this method.

Does this make the problem clear?  It's an annoyance, possibly a bug, or
the result of my misunderstanding of the facility due to a severe lack
of documentation :-)

On Mon, 2007-04-09 at 11:03 -0500, Canek Peláez wrote:
> On 4/8/07, Lindsay Haisley <[EMAIL PROTECTED]> wrote:
> [...]
> > So I end up having 2 icons on my "Computer" for every USB device I
> want
> > to mount - one on which nothing gets mounted, and one which gets
> > dynamically created using a name I don't want, and which holds the
> mount
> > as spec'd in /etc/fstab.
> >
> > I've tried tinkering with udev ATTR{key} assignment but this is
> largely
> > undocumented and I can't make it work, and can't find any other way
> deal
> > with this issue.  Is there some documentation on this facility and
> on
> > the applet somewhere, or is it just mainly broken, as I suspect?
> 
> Question: why are you using the disk-mounter applet? Since GNOME 2.14
> (maybe before, I could be wrong) HAL and udev handles everything
> automagically. Specially with USB disks.


-- 
[email protected] mailing list

Reply via email to