LABEL=Win7 /media/C ntfs defaults,users,noauto,windows_names 0 0
But for mounting a partition I need sudo and it's password, but I don't want the need to enter the password all the time.
[..] I thought that parameter "users" has that meaning [...]
Common for all types of file system are the options [...]``user'' (allow a user to mount) [...]
Thank you very much, lucamar, for your help and that idea. It works after I modified it to:
[... correct code ...]
But in this case I must compile my current Linux password in my programs
I changed "users" into "user" in /etc/fstab (and rebooted Linux), but I still need sudo to mount a partition.
"man mount" says: "Only the user that mounted a filesystem can unmount it again. If any user should be able to unmount it, then use users instead of user in the fstab line".
And "users" does appear in https://help.ubuntu.com/community/Fstab.
So from my knowledge both options exist: "user" and "users". But both do not have the expected result on my system :-(
It seems mount needs to be sudoed to mount ntfs volumes.
It seems mount needs to be sudoed to mount ntfs volumes.
does that maybe help?
https://unix.stackexchange.com/questions/96625/how-to-allow-non-superusers-to-mount-any-filesystem
or maybe this: https://askubuntu.com/questions/299294/how-do-i-give-root-privileges-to-an-app
I checked it and you are right: for a NTFS volume I need sudo, for a VFAT partition i don't need sudo (both tried with "users" and "user" options in /etc/fstab).This is not completely true. I can mount a NTFS partition with any file manager without root/sudo.
What the first links is saying that you can mount a partition into media by not using mount directly but with for example udisks which is a daemon for mounting partitions into the media folder. Type udisksctrl into a terminal [. . .]
... Type udisksctrl into a terminal to see if that is available ...I think there is a little typo, it must be "udisksctl" instead of "udisksctrl".
... This system (Ubuntu 11) is probably too old but it has the (I suppose) equivalent command udisks ...On my Ubuntu 18.04 "udisks" does not exist. But "udisksctl" does the job.
Oh sorry, my bad! But in the example it was written correctly..... Type udisksctrl into a terminal to see if that is available ...I think there is a little typo, it must be "udisksctl" instead of "udisksctrl".
"udisksctl" works perfectly on my Ubuntu 18.04! Now I can mount even a NTFS partition without sudo. I'm happy!... This system (Ubuntu 11) is probably too old but it has the (I suppose) equivalent command udisks ...On my Ubuntu 18.04 "udisks" does not exist. But "udisksctl" does the job.
Thank you very much to all who helped me. This is a great forum.