You are not logged in.

#1 2019-10-12 13:25:49

lucianh
Member
Registered: 2018-03-07
Posts: 7

Setting default mount options for USB NTFS drive

I've trawled through a bunch of different stackexchange posts, forum threads and other articles looking for a definitive answer to this and can't work out if what I'm trying to do is possible. I have an external USB HDD with an NTFS partition (needs to support large files and mounting on a wide range of devices, this seems to be the only choice sadly). It works fine - mounts automatically under GNOME under /run/media/<user> - but it's frustrating that by default all the files are mounted as world writable, so I was hoping to change the fmask/dmask  values to something more sensible. Unfortunately, there doesn't seem to be a nice way to do that. I can put an entry in /etc/fstab, but that has several downsides:

  • Now prompts for password every time I plug it in/unplug it

  • I have to hard-code the mount point - not the end of the world but if another user plugs this drive in I'd ideally like it to mount at /run/media/<user> rather than a fixed mount point

  • Requires me to do this manually for each NTFS device I want to plug in

It seems like a while back there was some discussion about patching udisks2 to allow more flexibility in specifying options for different file systems, but it's not clear that ever happened. Is there a way to do this? If an ideal solution isn't available, I'd settle for something that doesn't involve me typing my password in each time but still involves a fixed mount point/explicit configuration per device...

Offline

#2 2019-10-12 13:44:10

Swiggles
Member
Registered: 2014-08-02
Posts: 266

Re: Setting default mount options for USB NTFS drive

Offline

#3 2019-10-12 14:50:50

lucianh
Member
Registered: 2018-03-07
Posts: 7

Re: Setting default mount options for USB NTFS drive

Aha. The utility itself doesn't work for me because this is a drive that has never (and probably never will be) used with an actual Windows machine. But the slightly cryptic note at the bottom of that page in combination with this: https://askubuntu.com/questions/1100038 … r-on-16-04 give me what I was looking for. With that "dummy" UserMapping file in place the drive no works as hoped. Thanks!

Offline

Board footer

Powered by FluxBB