You are not logged in.
Pages: 1
Been trying to get my external drive mounting my ntfs external drive in my user's ownership, not roots.
I first did sudo mount /dev/sdb1 /media/external and then sudo chown -R bryce:bryce /media/external/ and that only changed the directories ownership.
Then I edited the fstab and did mount /home/bryce/external and get this error
[bryce@arch ~]$ mount /home/bryce/external
ntfs-3g-mount: mount failed: Operation not permitted
User doesn't have privilege to mount. For more information
please see: http://ntfs-3g.org/support.html#unprivileged
[bryce@arch ~]$
Any help from you all please?
Offline
AFAIK mount will only work as root, pmount will work as regular user if the user has the necessary permissions.
EDIT: Other than that, the instruction on that wiki page always work for me http://wiki.archlinux.org/index.php/NTFS_Write_Support
Last edited by fwojciec (2009-01-01 20:03:04)
Offline
If I do sudo mount /home/bryce/external then wouldn't root own it then? I'm trying to make it owned by my user.
Offline
See the wiki I linked -- it tells you what mount options to use to set particular permissions.
Offline
SOLVED: I forgot to do
sudo chmod u+s /bin/ntfs-3g
I read the wiki and added the options like it stated, here's the /etc/fstab
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
none /dev/pts devpts defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/sdb1 /home/bryce/external ntfs-3g users,noauto,uid=1000,gid=1000 0 0
/dev/cdrom /media/cdrom auto ro,user,noauto,unhide 0 0
/dev/dvd /media/dvd auto ro,user,noauto,unhide 0 0
UUID=5a96dab5-a2f0-4081-881a-8a5e22534c2f swap swap defaults 0 0
UUID=a7cb194f-41a0-4955-be6b-c67d43798791 / ext3 defaults 0 1
UUID=aacc53bc-7b70-4817-9f44-38f4ec10aa31 /home ext3 defaults 0 1
UUID=ba883d5b-fdbd-453b-8ff5-033b23decc7a /boot ext3 defaults 0 1
The error I get is
[bryce@arch ~]$ mount /home/bryce/external
ntfs-3g-mount: mount failed: Operation not permitted
User doesn't have privilege to mount. For more information
please see: http://ntfs-3g.org/support.html#unprivileged
[bryce@arch ~]$
Last edited by Zetsumei (2009-01-01 20:19:59)
Offline
Like I said -- mount has to be run as root. [EDIT: unless you manually change permissions, like you did]
This is what I have in fstab:
/dev/disk/by-label/windows /mnt/windows ntfs-3g users,noauto,uid=1000,gid=100,fmask=0113,dmask=0002,locale=pl_PL.utf8 0 0
This is what my mount dir looks like when the drive isn't mounted (notice the permissions):
$ ls -la /mnt/
total 4.5K
drwxr-xr-x 8 root root 192 2008-05-13 17:06 ./
drwxr-xr-x 23 root root 552 2008-12-14 16:14 ../
drwxr-xr-x 2 root root 48 2008-02-07 18:41 windows/
And now when I mount the drive (notice the permissions again):
$ sudo mount /mnt/windows/
$ ls -la /mnt/
total 8.5K
drwxr-xr-x 8 root root 192 2008-05-13 17:06 ./
drwxr-xr-x 23 root root 552 2008-12-14 16:14 ../
drwxrwxr-x 1 filip users 4.0K 2009-01-01 15:19 windows/
So the permissions/owneship is completely independent of whether you're running mount as root or not.
Last edited by fwojciec (2009-01-01 20:30:58)
Offline
See my post before yours, I did the sudo chmod u+s /bin/ntfs-3g and it worked. It's owned by my user, etc.
Offline
See my post before yours, I did the sudo chmod u+s /bin/ntfs-3g and it worked. It's owned by my user, etc.
It's an ugly hack, and you'll have to fix the permissions manually every time pacman installs new version of ntfs-3g, but if you're happy with it...
Offline
When mounting ntfs volumes do
sudo mount -o umask=000 /dev/whatever /mountpoint
Works like a charm for me.
If it is an external drive then you should consider editing the udev/hal rules file (can't remember which one I needed to edit, check the wiki )
R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K
Offline
Pages: 1