Automount any ntfs device r/w automatically

Kernels, Network, and Services configuration
Post Reply
Message
Author
undernet
Posts: 11
Joined: 2011-03-24 00:24

Automount any ntfs device r/w automatically

#1 Post by undernet »

High I keep getting “error mounting: mount exited with exit code 1” when inserting ntfs drives using the ntfs-3g driver.
How to change it so that any ntfs usb device I attach is mounted automatically (as a user not root) with r/w privileges?
I have no problems with fat or xfs drives, I should not have to edit fstab or manually mount drives from a console each time.

Thanks

kevmitch
Posts: 498
Joined: 2008-01-29 20:43

Re: Automount any ntfs device r/w automatically

#2 Post by kevmitch »

Is ntfs-3g setuid root?
do a

Code: Select all

dpkg-reconfigure ntfs-3g
and say that you want it to be setuid root.

undernet
Posts: 11
Joined: 2011-03-24 00:24

Re: Automount any ntfs device r/w automatically

#3 Post by undernet »

I changed it to root and restarted but no luck.

Here is the error message in full when it tries to auto mount.

Error mounting: mount exited with exit code 1: helper failed with:
Mount is denied because setuid and setgid root ntfs-3g is insecure with the
external FUSE library. Either remove the setuid/setgid bit from the binary
or rebuild NTFS-3G with integrated FUSE support and make it setuid root.
Please see more information at
http://tuxera.com/community/ntfs-3g-faq/#unprivileged

Any ideas?

kevmitch
Posts: 498
Joined: 2008-01-29 20:43

Re: Automount any ntfs device r/w automatically

#4 Post by kevmitch »

You need the fuse kernel module installed and the /dev/fuse device setup. If you have the fuse package installed, which should setup the /etc/init.d/fuse initscript to run as boot, then this should be taken care of for you. You also need to be a member of the group fuse to access the fuse device.

carlosveucv
Posts: 1
Joined: 2013-03-11 23:13

Re: Automount any ntfs device r/w automatically

#5 Post by carlosveucv »

Perhaps you installed debian from a usb and got a line in /etc/fstab like:
/dev/sdb1 /media/usb0 auto rw,user,noauto 0 0
Just remove it or comment it and it should work.

dzz
Posts: 257
Joined: 2007-02-05 20:39
Location: Devon, England

Re: Automount any ntfs device r/w automatically

#6 Post by dzz »

Any NTFS volume can be mounted RW by pmount as normal user. I never managed to do that any other way (but remember user must be in "fuse" group and the device must not have an fstab entry)

(correction) required group is "plugdev" not "fuse"

David B
Posts: 1
Joined: 2013-04-03 21:41

Re: Automount any ntfs device r/w automatically

#7 Post by David B »

carlosveucv wrote:Perhaps you installed debian from a usb and got a line in /etc/fstab like:
/dev/sdb1 /media/usb0 auto rw,user,noauto 0 0
Just remove it or comment it and it should work.
If you installed Debian from an Usb the answer of carlosveucv is completly the correct solution

juliom
Posts: 4
Joined: 2013-04-10 11:35

Re: Automount any ntfs device r/w automatically

#8 Post by juliom »

carlosveucv wrote:Perhaps you installed debian from a usb and got a line in /etc/fstab like:
/dev/sdb1 /media/usb0 auto rw,user,noauto 0 0
Just remove it or comment it and it should work.
I was having the same problem and this solved it perfectly! Thank you!

User avatar
manishthatte
Posts: 15
Joined: 2014-05-12 02:46

Re: Automount any ntfs device r/w automatically

#9 Post by manishthatte »

Removing the line from fstab worked perfectly !!!! Thanks .
Taking baby steps in Debian

neilhhw
Posts: 1
Joined: 2014-10-16 09:22

Re: Automount any ntfs device r/w automatically

#10 Post by neilhhw »

carlosveucv wrote:Perhaps you installed debian from a usb and got a line in /etc/fstab like:
/dev/sdb1 /media/usb0 auto rw,user,noauto 0 0
Just remove it or comment it and it should work.
This works for me also.

ouachiski
Posts: 1
Joined: 2014-12-13 06:39

Re: Automount any ntfs device r/w automatically

#11 Post by ouachiski »

carlosveucv wrote:Perhaps you installed debian from a usb and got a line in /etc/fstab like:
/dev/sdb1 /media/usb0 auto rw,user,noauto 0 0
Just remove it or comment it and it should work.
Thanks,

That fixed me up.

Post Reply