Bug 190249 - Wrong auto-mount of fat32 partition at boot time
Summary: Wrong auto-mount of fat32 partition at boot time
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: util-linux
Version: 5
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Karel Zak
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-04-29 09:20 UTC by Juergen Wieczorek
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-06-02 12:19:31 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.




Note You need to log in before you can comment on or make changes to this bug.