ntfs-config restricts mount privileges to root

Asked by Strahinja Lukic

I want my ubuntu to automatically mount the windows partition and bind (mount --bind ...) "My Documents" to a subfolder in my home folder at startup. I thought that ntfs-config would help. It does the automatic mounting, but it restricts mount privileges to root, so that my .profile can not bind "My Documents" anymore. I now have to sudo from the terminal and enter password to do the binding.

Before using ntfs-config, I was able to mount the windows partition as user. Is there a way to restore that again?

A suggestion for the further development of ntfs-config: Introduce the possibility to bind folders from the ntfs filesystem, possibly also to use other useful mount options.

Cheers,
Straja

Question information

Language:
English Edit question
Status:
Solved
For:
ntfs-config Edit question
Assignee:
No assignee Edit question
Solved by:
Florent Mertens
Solved:
Last query:
Last reply:
Revision history for this message
Florent Mertens (givre) said :
#1

Suggestion 1: Instead of binding, create a symlink.
Suggestion 2: Mount your partition directly to the location you want. ntfs-config will not be able to do that, but you can edit manually /etc/fstab. Google will help you if you don't know what is the fstab file.

Revision history for this message
Strahinja Lukic (strahinjalukic) said :
#2

Thanks for the reply.

I know what is fstab, and I have edited it to mount the partition directly, but it does not help. The partition appears in "places", but clicking on it gives the following error message:

Error mounting: mount exited with exit code 1: helper failed with:
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

I don't know what is symlink, I will try to figure that out.

I would like to be able to quickly access "My Documents" from the Terminal without having to type the whole windows path. Binding solves that rather nicely. I made a patch file to do the binding, and it is a fine workaround, but not as good as if everything worked automatically at startup.

S.

Revision history for this message
Best Florent Mertens (givre) said :
#3

  It seams that what you are really looking for is symlink.
It is similar to shortcut in windows. If you are ok with the terminal,
look at man ln.

Revision history for this message
Strahinja Lukic (strahinjalukic) said :
#4

Ok, I did it and I like the solution.

I might need restore user privileges for mounting the windows partition some time in the future, but at the moment it's fine like this

Thanks again.

Revision history for this message
Strahinja Lukic (strahinjalukic) said :
#5

Thanks Florent Mertens, that solved my question.