Register FAQ SearchLogin
Tuxera Home
View unanswered posts | View active topics It is currently Thu May 23, 2013 22:14



Post new topic Reply to topic  [ 4 posts ] 
6 Hours later, still getting 'only root can mount' error 
Author Message

Joined: Sat Aug 07, 2010 04:59
Posts: 2
Post 6 Hours later, still getting 'only root can mount' error
I am running Ubuntu 10.04 with the latest version of ntfs-3g and I want to automount my external USB NTFS hard drive.

The kicker is that I need it to mount with the 'sync' option enabled, which means I need an entry for this drive in my /etc/fstab and as soon as I have that entry in the fstab file I receive the 'Only root can mount..' error box when I plug in the drive.

I have run the gambit with this, doing everything that's been posted, and still it's spitting this error message at me.


This is my /etc/fstab entry: /dev/disk/by-label/bertha /media/bertha ntfs-3g sync,rw 0 0

although I have tried it with various options


This is my version of NTFS-3G:

ntfs-3g 2010.5.22 external FUSE 28 - Third Generation NTFS Driver
Configuration type 1, XATTRS are on, POSIX ACLS are off


I have tried compiling ntfs-3g with internal and external FUSE libraries, editing my /etc/fuse.conf to allow users to mount

I have followed the instructions herE: http://www.tuxera.com/community/ntfs-3g ... privileged
I have added my user account to the 'disk' group
I have made sure that I have perms to the mount point

I'm at my ropes end after spending my entire afternoon trying to resolve this.. Any help at all would be greatly appreciated


Sat Aug 07, 2010 05:37
Profile
NTFS-3G Lead Developer

Joined: Tue Sep 04, 2007 17:22
Posts: 1009
Post Re: 6 Hours later, still getting 'only root can mount' error
Hi,

Quote:
I receive the 'Only root can mount..' error box when I plug in the drive.

After the device has been plugged in, and automatic mount has failed, are you able to mount with an explicit user mount command ?

Quote:
I have followed the instructions herE: http://www.tuxera.com/community/ntfs-3g ... privileged
I have added my user account to the 'disk' group
I have made sure that I have perms to the mount point

Maybe, it would be useful if we can check the conditions. At least you must use the internal fuse, but you display an ntfs-3g version using the external fuse library.

1. ntfs-3g is compiled with integrated FUSE support

type "ntfs-3g --help"

2. the ntfs-3g binary is at least version 1.2506

(already provided by the above command)

3. the ntfs-3g binary is set to setuid-root

type "ls -l /bin/ntfs-3g /sbin/mount.ntfs-3g"
(note : the binaries may be located elsewhere, and possible links have to be followed)

4. the user has access right to the volume

With the device plugged in (even not mounted),
type "ls -l /dev/disk/by-label/bertha"
and "id"
also "blkid"
Note : I am not sure automatic mounting is done using a user account (which user anyway ?). You may have to put your user and/or the mount point into group plugdev).

5. the user has access right to the mount point

With the device not mounted,
type "ls -ld /media/bertha"

Regards

Jean-Pierre


Sat Aug 07, 2010 10:23
Profile

Joined: Sat Aug 07, 2010 04:59
Posts: 2
Post Re: 6 Hours later, still getting 'only root can mount' error
Oh yea, there's no problems mounting it in terminal ala sudo mount /dev/sdc1 /media/bertha. I can't mount it without sudo however

I've tried it with internal fuse, it was only at the end out of desperation I switched to external to see if it would make a difference

-rwsr-x--- 1 root disk 126229 2010-08-06 19:55 /bin/ntfs-3g
lrwxrwxrwx 1 root root 13 2010-08-06 19:55 /sbin/mount.ntfs-3g -> /bin/ntfs-3g


Because this isn't a permanent drive every time I unplug it and plug it back in again the perms of it are reset back to root:disk . I have chowned it to ryanw but as soon as it is unplugged and plugged back in again these changes are wiped

I have added my user account(ryanw) to the disk group but it didn't do anything

#ls -ld /media/bertha:
drwxrwxrwx 1 ryanw root 24576 2010-08-06 18:21 /media/bertha


Sat Aug 07, 2010 10:53
Profile
NTFS-3G Lead Developer

Joined: Tue Sep 04, 2007 17:22
Posts: 1009
Post Re: 6 Hours later, still getting 'only root can mount' error
Hi,

Quote:
Oh yea, there's no problems mounting it in terminal ala sudo mount /dev/sdc1 /media/bertha. I can't mount it without sudo however

I meant mounting as a user, this is NOT using sudo.
I suggest you first get the device to be mounted this way. Automatic mounting rises more issues.

Quote:
Because this isn't a permanent drive every time I unplug it and plug it back in again the perms of it are reset back to root:disk . I have chowned it to ryanw but as soon as it is unplugged and plugged back in again these changes are wiped

Please first mount into a permanent mount point, not into a dynamically created mount point, the permissions of which you cannot control.

Also please do the full check list I mentioned. How could I relate data extracted under different conditions ?

Regards

Jean-Pierre


Sat Aug 07, 2010 11:13
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Original forum style by Vjacheslav Trushkin.