Mailing List
Home
Forum Home
Linux - General Red Hat Linux discussion list
Enterprise Linux 3 - Discussion of Red Hat Enterprise Linux 3 (Taroon)
Installation - Getting started with Red Hat Linux
Red Hat Linux 9 - Discussion of Red Hat Linux 9 (Shrike)
Red Hat Linux 7.3 - Discussion of Red Hat Linux 7.3 (Valhalla)
Red Hat Linux 7.2 - Discussion of Red Hat Linux 7.2 (Enigma)
Apache Web Server
Oracle database, Microsoft SQL server ...
Subjects
application/x mplayer2 plugin
RPM error: db4 error(16) from dbenv >remove: Device or resource
   busy
Command stream end of file while reading
X Windows problem (xauth)
Upgrading openoffice 1 1 rpm
FTP: connection refused
FTP: connection refused
mount: /dev/cdrom: is not a valid block device
Dell Precision 650, RedHat 9, no sound
how to trace the cause resulting in the crash of bind server
Virus on the list
UNINSTALL RPM MYSQL
usb pen drives: mounting as a user
broadcom network interface
make mrproper
sendmail configuration on redhat
Couldn 't open PID file /var/run/named/named pid Permission denied
Promise 378 controller
kernel 2 6 and /dev/sound/mixer not found
Problem using up2date
mrtg step by step howto/configuration for a newbie?
Compiling and Installing Kernel 2 6
Can 't locate module ppp0, can 't locate module ppp compress 21
HOW I CAN MAKE BOOTABLE FLOPPY DISKET
Lotus Notes under Wine
/etc/security/limits conf question
Intel E/1000 driver
Command stream end of file while reading
rpm database corrupt
qla2300 modules
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
USB utilities

USB utilities

2005-03-25       - By Stephen Gardner

 Back
Reply:     1     2     3     4     5     6     7     8     9     10  

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.