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
gconf-editor

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

http://pysdm.sourceforge.net/

Tried this:

Data
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:



Code:
$ 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:
http://www.techotopia.com/index.php/...Ubuntu_Desktop

Alternatively you can do this, where user is your username:
Code:
sudo chown user '/media/Data'
More info on this thread:
http://ubuntuforums.org/showthread.php?t=67657

and this page:
http://www.psychocats.net/ubuntu/permissions

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
http://ntfs-3g.org/support.html#unprivileged



There I find this solution:

Why can't unprivileged users mount block devices?
or
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: http://ntfs-3g.org/index.html#download 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:
http://packages.ubuntu.com/nl/intrepid/i386/libntfs-3g28/download
and install
and then download and install:
http://ubuntu.interlegis.gov.br/ubuntu/pool/main/n/ntfs-3g/ntfs-3g_1.2506-1ubuntu2_i386.deb

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.