  | |  | USB utilities | USB utilities 2005-03-25 - By Stephen Gardner
Back On Fri, 25 Mar 2005, Barry Gamblin wrote:
> What are the correct entries? My /etc/updfstab.conf looks like this: > > include /etc/updfstab.conf.default > > device usbdrive { > partition 1 > match hd WDC > } > > And when I plug in the drive I get this in /etc/fstab: > > /dev/sda1 /mnt/usbdrive auto noauto,owner,kudzu 0 0 > > But a normal user cannot mount /mnt/usbdrive. It says that only > the superuser can mount.
I think you may have found a bug with updfstab or one of the other hotplug associated tools. If you delete the options you added to /etc/updfstab.conf and just add the "match hd WDC" line to the "device flash" section in /etc/updfstab.conf.default you should find it works as expected. The section you added looks fine to me and I've just tested something similar but the underlying problem (the cause of the message you're getting) is that /dev/sda1 isn't being set to be owned by the console user. When the "match" line is part of the "device flash" section in /etc/updfstab.conf.default then /dev/sda1 gets set to the correct ownership to allow the mount to work. Editing /etc/updfstab.conf.default isn't a long term solution but will get you going for now. I'll do some more digging with strace and see if I can find the underlying cause.
> How do I get it to add the "user" option?
That's not needed as the "owner" options that updfstab includes in /etc/fstab is an alternative option to "user". In this particular case it's has brought up the potential problem of /dev/sda1 (in your case) not being set to the correct ownership.
Regards, Stephen
PS. If the kudzu package gets updated it'll overwrite your /etc/updfstab.conf.default. You could exclude kudzu* from rhn updates if you wanted.
-- Taroon-list mailing list Taroon-list@(protected) http://www.redhat.com/mailman/listinfo/taroon-list
Earn $52 per hosting referral at Lunarpages.
|
|
 |