Bug 190249

Summary: Wrong auto-mount of fat32 partition at boot time
Product: [Fedora] Fedora Reporter: Juergen Wieczorek <juergenw_>
Component: util-linuxAssignee: Karel Zak <kzak>
Status: CLOSED NOTABUG QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: 5   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-06-02 12:19:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Juergen Wieczorek 2006-04-29 09:20:00 UTC
System:
Fedora Core 5, kernel-2.6.16-1.2096_FC5, autofs-4.1.4-19
SELinux = disabled.

I have a fat32 which should be auto-mounted with owner 'user' at startup, but
Fedora Core 5 only mounts it for 'root' , disregarding my entry in /etc/fstab.

This is the respective entry in my /etc/fstab:
/dev/hda7 /mnt/windows_e vfat auto,user,exec,umask=0022 0 0

If I unmount the parition (as root), I can remount it as user anytime.
Additionally, I can set fstab options uid=500, gid=500 to have it mounted for me
as the prime user.

The above fstab entry has worked for FC3 without any problems, now FC5 screws it
up - but why?

Comment 1 Jeff Moyer 2006-04-29 19:29:26 UTC
First, you've filed this bug against the wrong component.  Autofs is an
automounter implementation which operates off of its own set of configuration
files (auto.master, etc.).

Next, You specify "auto" in your mount options.  If you don't want the partition
to be mounted at boot, you should specify "noauto".  I don't know why the
behaviour has changed.  I'll re-assign this to util-linux for you.

Regards,

Jeff

Comment 2 Juergen Wieczorek 2006-04-30 08:54:14 UTC
Sorry if I hanve not made that point clear enough:
I want the fat32 partition to be auto-mounted at boot time, but for owner='user'
and _not_ for 'root'.
That has worked with FC3 and now doesn't work with FC5.


Comment 3 Karel Zak 2006-06-02 12:19:31 UTC
Please, read the mount man page. 

/dev/hda7 /mnt/windows_e vfat auto,user,exec,umask=0022 0 0

This entry means that arbitrary user is able to mount the device. At boot time
it's user "root" who mounts the device. The option owner='username' allows to
mount the device by user if he is the owner of the device.

I think you should remove 'auto' option and mount the device by hand (or by
automounter or whatever) under non-root user.