Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 17th July 2009, 02:39 PM
Omy Offline
Registered User
 
Join Date: Jul 2009
Posts: 2
Automounting Drives -- The final answer?

To start with, please don't blindly tell me to search. I have. And I've found nothing that actually answers my question, so if I have to search then please tell me exactly what for!?

I have an external usb disk enclosure with a SATA drive formatted with NTFS. When I plug it in it is automounted at /media/<name> where <name> is the volume label of the partition.

I would like to know how to do three things:

- Change the mountpoint
- Change the mount options handed to the ntfs-3g driver (I want a different fmask)
- (Unimportant) Have umount work to unmount the disk rather than having to do some irritating command with devkit-disks that requires the device name rather than allowing the mountpoint and device to be used interchangably.

All of this without affecting the automounting behaviour and without requiring root access to mount. Everything I have tried with the fstab has changed some other behaviour as well.

Cheers,
-ol
Reply With Quote
  #2  
Old 17th July 2009, 09:19 PM
Cuvou's Avatar
Cuvou Offline
Registered User
 
Join Date: Sep 2007
Location: Los Angeles, CA
Posts: 119
In Fedora 10 and lower you could set the default mount options by using the gconf editor and editing \system\storage\default_options\ntfs

In Fedora 11 the new DeviceKit service doesn't interact with the gconf anymore so these options are completely useless.

What did you try in fstab? At home my external HDDs are formatted FAT32 and I prefer to have the "shortname=mixed" and "sync" options on them, so I have my fstab looking like this:

Code:
UUID=4929-C14C /media/MIDNIGHT vfat noauto,user,rw,nosuid,nodev,uid=500,gid=500,shortname=mixed,dmask=0077,utf8=1,flush,sync
I don't notice any side effects, except that my "MIDNIGHT" volume has 2 icons in the Places menu (one looks like a mounted volume and it opens the /media/MIDNIGHT folder, the other looks like an unmounted volume and it gives an error if I double-click it). I can right-click the mounted volume icon and unmount it that way and then use the other icon to remount it. Besides that, if I unplug the drive both icons disappear, and plug it back in and both icons come back.

Edit
Also on XFCE, this method only results in a single icon per volume, not the 2 icons that I get in gnome - so in XFCE, no adverse side effects at all.
__________________
~ Kirsle
Reply With Quote
  #3  
Old 17th July 2009, 10:16 PM
Omy Offline
Registered User
 
Join Date: Jul 2009
Posts: 2
Unfortunately I'm not in a position to do it again and record the exact error messages, but the basic problem seemed to be that if I specified options in /etc/fstab then the mount command (/sbin/mount.ntfs ) is run as my unprivileged user, wheras if I don't specify anything then whatever handles automounting runs the mount command as root.
As Fedora does not install /sbin/mount.ntfs as suid root then, when run as my user, it does not have enough privileges to mount the device. The slightly more bizzare behaviour was that even if I played with udev to make the device be owned by me, and made the mount folder owned by me, then the mount still failed.
Manually making mount.ntfs suid root is not an acceptable solution unless there is some way of telling yum to maintain those permissions: I don't want this to randomly stop working after some update when I've long forgotten what I did to make it work.

Cheers
Reply With Quote
Reply

Tags
automount, ntfs

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
Avoid automounting NTFS drives fuchs005 Hardware & Laptops 4 19th April 2008 10:56 PM
automounting usb/cdrom drives sonicbuddha Using Fedora 2 20th December 2005 08:59 PM
automounting DVD+RW drives missing_myself Hardware & Laptops 0 22nd June 2005 10:10 AM
firewire drives not automounting beijingjj Using Fedora 0 1st December 2004 09:52 PM


Current GMT-time: 08:42 (Thursday, 23-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