Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Installation and Live Media
FedoraForum Search

Forgot Password? Join Us!

Installation and Live Media Help with Installation & Live Media (Live CD, USB, DVD) problems.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 7th August 2009, 07:43 PM
WNorfleet Offline
Registered User
 
Join Date: Jun 2005
Posts: 91
linuxfedorafirefox
Mounting ext3 partition changes mount point permissions and ownership (with fix)

For some reason, I have not seen this issue summarized elsewhere. . .

I have a second hard drive installed in my computer (F10, kernel 2.6.27.29-170.2.78.fc10.i686) with an ext3 partition that I'd like to mount, unmount, read, and write as a normal user. So I (console output slightly edited):

Made a mount point in /media:
[root@desk media]# mkdir drive2
[root@desk media]# chown bill:os drive2
[root@desk media]# chmod 777 drive2
[root@desk media]# ll
drwxrwxrwx 2 bill os 4096 2009-08-07 13:51 drive2

Added a line to /etc/fstab:
/dev/sdb10 /media/drive2 ext3 rw,suid,dev,exec,noauto,users,async 0 0

Now, when "drive2" is mounted, the ownership and permissions of the mount point change (and revert back when it is unmounted):
[bill@desk media]$ ll
drwxrwxrwx 2 bill os 4096 2009-08-07 13:51 drive2
[bill@desk media]$ mount drive2
[bill@desk media]$ ll
drwxr-xr-x 3 root root 4096 2009-08-07 12:30 drive2
[bill@desk media]$ umount drive2
[bill@desk media]$ ll
drwxrwxrwx 2 bill os 4096 2009-08-07 13:51 drive2

Under these conditions, a normal user can not write to the partition.

The trick to fix this is to change the ownership and permissions of the mount point as desired (in the case below, only the ownership was changed) WHILE THE PARTITION IS MOUNTED. Then behavior is as expected:
[bill@desk media]$ ll
drwxr-xr-x 2 root root 4096 2009-08-07 13:51 drive2
[bill@desk media]$ mount drive2
[bill@desk media]$ ll
drwxr-xr-x 3 bill os 4096 2009-08-07 12:30 drive2
[bill@desk media]$ umount drive2
[bill@desk media]$ ll
drwxr-xr-x 2 root root 4096 2009-08-07 13:51 drive2

This fix persists after reboot. One odd feature remains: despite the "noauto" in fstab, the partition is mounted automatically on boot, and an icon for it appears on the desktop. Don't know why.

So, it appears that something is altering the documented behavior of mount and fstab. gvfs?

Hope this helps you.

Edit: For a good solution to the problem of gnome/hal (or whatever) overriding a "noauto" option for a partition in fstab, see http://forums.fedoraforum.org/showthread.php?t=217124. I'm just a knuckle-dragging end-user, but, to my eye, the beauty of Fedora is that its workings can be understood on the basis of easily-available documentation, i.e., you don't have to psychoanalyse it, and you don't have to try to guess what some coder was thinking ten years ago in Redmond, WA. If a sysadmin sticks a "noauto" option in fstab, I vote that the operating system respect that.

Last edited by WNorfleet; 12th August 2009 at 07:08 PM. Reason: More info
Reply With Quote
  #2  
Old 3rd August 2010, 03:26 AM
rovington Offline
Registered User
 
Join Date: Aug 2010
Posts: 1
windows_xp_2003firefox
Re: Mounting ext3 partition changes mount point permissions and ownership (with fix)

Just to say thanks, this helped me a great deal
Reply With Quote
Reply

Tags
ext3, fix, mount, mounting, ownership, partition, permissions, point

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change permissions/ownership of a FAT partition? kpfuser Using Fedora 9 17th May 2008 08:21 PM
error mounting CIFS mount point mcalautt Servers & Networking 0 26th February 2008 12:25 PM
file permissions ownership change not working & partition mounting problems Yfrwlf Using Fedora 10 21st December 2006 03:57 AM
Removed mount point; iPod not mounting. HELP jobeirne Using Fedora 1 27th February 2006 04:39 AM
Mounting ext3 partition with rw permissions for non-root user ilyushin Using Fedora 6 27th June 2005 02:15 PM


Current GMT-time: 16:43 (Saturday, 25-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat