A minor problem w/ access to my flash drive

David Zeuthen david at fubar.dk
Tue Jan 25 07:57:58 PST 2005


On Tue, 2005-01-25 at 21:49 +0600, Alexey Morozov wrote:
> Yes, you're right. W/o hald insertion of an SD card does nothing. I'm 
> sorry for misinforming you. What makes me wondering is that hald is 
> needed to detect card insertion but appropriate fstab record is made 
> only by hotplug's block.agent, not by fstab-sync:
> 
> /dev/sdc1 /media/storage_sdc1 auto user,noexec,nosuid,nodev,sync 0 0 
> #hotplug
> 

If there already is an entry for the device, or a symlink to the
device[1], or an LABEL=foobar entry, in /etc/fstab, fstab-sync
refuses to add another one. That's a feature.

I suggest turning of the piece in block.agent that updates
your /etc/fstab; it looks to me like there is a nice race
between that one and fstab-sync.

> Should I describe my card reader as it's done say in 
> /usr/share/hal/fdi/20freedesktop/6in1-card-reader.fdi to actually get 
> appropriate fstab-sync activity on device insertion?

No, it will work out of the box, if, and only if, the block device
represents a mountable file system (e.g. we won't add entries to
/etc/fstab if it's a swap or LVM2 partition).

David


_______________________________________________
hal mailing list
hal at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/hal



More information about the Hal mailing list