How to mount an NTFS external drive as a normal user automatically?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How to mount an NTFS external drive as a normal user automatically?
I had NTFS fuse bundle installed on my system. I tried to mount an Eternal Hard disk of NTFS file system as a normal user, it shows error you doesn't have priviliges to mount this volume but I can mount it as a Super user and use it.
I have made an entry in fstab file as shown below
/dev/sdb1 /mnt ntfs defaults 0 0
but of no use.
I want my external hard disk to get mounted automatically whenever I connect it to my PC.
if the GUI is not mounting it for you, then you need to configure udev rules. sorry im not much help on how to do that, but google will be your friend.
The defaults will be to mount as root user so if you want to be able to mount that partition as a user, you need to indicate that in your fstab entry. It isn't really clear to me whether you want it auto-mounted, to be able to mount as a normal user or both?
Please note the use of 'ntfs-3g' in the above line.
You might want to consider not using the fmask & dmask the way I have sampled since security will/can be an issue;
Quote:
From fstab;
umask=nnn, dmask=nnn, fmask=nnnSets the user file creation mode mask, umask, the same for directories only, dmask and for files only, fmask. More detailed information about the fstab file can be found in the man page about Linux fstab
To understand fmask & dmask you can look at fstab or 'man fstab'. Plus 'man mount' will provide useful information to understand options.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.