Friday, October 17, 2008

Unable to automount external hard disks

Hmm. no solution found yet.
This is an important message in regard to this
I have for years set my gnome preferences to not automount media on insertion
(much less open it). Not only was this preference forgotten in the upgrade, but
gnome-volume-properties doesn't even show /any/ options for removable media.

Have these options been deliberately removed?

(In reply to comment #5)
> Have these options been deliberately removed?

No, they have been moved to nautilus; see /apps/nautilus/preferences/media* in

Ok, checked but the variables are all set in the right manner.

I think the problems started when I installed PYSDM Py storage device manager.
It's really a frontend to change fstab in /etc/fstab.

pysdm - This is a GUI for editing fstab. This utility helps to
manage mount point of various drives. Every time we logon the drives
are not auto mounted by itself, by this simple utility it can be done
very easily.

System > Administration > Storage Device Manager

Tried this:

is getting proper treatment as a partition again. Unfortunately, I
still lack write permissions. I'll study up on that link you gave me
and try to figure it out.

This was progress, though, so thanks!

Should be as easy as using SUDO to give yourself permissions. Try this:

$ gksudo nautilus
Navigate to your folder '/media/Data'; right click; properties; tab over to properties; make your user the owner and give yourself all the access you need.

In case this doesn't make sense check out this link:

Alternatively you can do this, where user is your username:
sudo chown user '/media/Data'
More info on this thread:

and this page:

This didn't solve anything. So uninstalled pySDM.
Uninstalled even ntfs-3g, hmm that menas nfts isn't read anymore.
Reinstalled it, no solution

The same error message pops up again and again:
Unprivileged user can not mount NTFS block devices using the external FUSE
library. Either mount the volume as root, or rebuild NTFS-3G with integrated
FUSE support and make it setuid root. Please see more information at

There I find this solution:

Why can't unprivileged users mount block devices?
Why do I get "fusermount: option blkdev is privileged" error?
Unprivileged block device mounts work only if all the below requirements are met:
  1. ntfs-3g is compiled with integrated FUSE support
  2. the ntfs-3g binary is at least version 1.2506
  3. the ntfs-3g binary is set to setuid-root
  4. the user has access right to the volume
  5. the user has access right to the mount point
The root user can make an ntfs-3g binary setuid-root as shown below
  chown root $(which ntfs-3g)
chmod 4755 $(which ntfs-3g)
In such case the driver will also be able
  • to fix common FUSE kernel module loading problems
  • to create the required but sometimes incorrectly removed or missing FUSE device file
Please note that using setuid-root can result unforeseen privilege escalation and its usage is discouraged. Only the absolutely trusted users must be granted such access. Below is an example how this can be done for users in the ntfsuser group to be able to mount any NTFS volume if they have also the needed volume access rights.
  chown root.ntfsuser $(which ntfs-3g)
chmod 4750 $(which ntfs-3g)
The setuid-root ntfs-3g driver applies the principle of least privilege during its lifetime as a safety measure.

Why don't the 'user' and 'users' options work in /etc/fstab?
The 'mount' command doesn't invoke the ntfs-3g binary with the needed privilege after it has checked and approved the user is entitled to mount a given device on a specified mount point, hereby the user can't open the device he got the approval in /etc/fstab. This is a problem in the 'mount' utility.

Solution: Use at least NTFS-3G 1.2506 with setuid-root set and make sure the user has access rights to the volume and mount point.

So I downloaded: version 1.5o. In the repos of Ubuntu is version 1.22 Unpacked, go in terminal to the folder and ./configure and make and sudo make install and after that did in root terminal:
chown root.ntfsuser $(which ntfs-3g)
chmod 4750 $(which ntfs-3g)
Phhewww, this wasn't easy. I wonder: an I the only one suffering from this problem??
And why doesn't Ubuntu do an update of nfts-3g when there is such an issue.

If you don't want to compile download:
and install
and then download and install:

Don't forget to install ntfs-config through Synaptic afterwards and configure it..
else ntfs-3g stiil won't work ...

Ok , now it is possible to manage data as user but only when the root user mounts the external hard disk first! Grrrr!!

It this the solution; go to Hal and grant the user permission to (u)mount external devices and be aware about setting yes or no restraints:
But most impressive is the Authorizations panel, which allows complete control over what system functions each user is able to have.

Authorizations System Control

No comments:

Blog Archive

About Me

Exclusion of liability Regarding StillStupid: The use you make of the guides, tips and downloads that you listed on this web site or on another website to which I refer is entirely at your own risk. In no way can I be held liable for damage or consequential damages of any kind, which occurs as a result of that use.