You are not logged in.
Pages: 1
Hi,
I've looked around (including https://wiki.archlinux.org/index.php/Udisks) for a way to change the default permissions a Seagate external USB drive (ntfs) is mounted with. I can manually mount with:
#sudo mount -t ntfs -o uid=1000,gid=1000,dmask=0022,fmask=0133 /dev/sde1 /mnt/usb/)
..and get the permissions I want. Fat32 EXT drives mount with these permissions as well. But ntfs mounts with directories executable by others. I think I need help writing a udisks2 rule to get dirs 755 and files 644 when mounting?
(there are other solutions including /etc/fstab - but I want to be capable of working with udisks)
I am using Enlightenment, right-clicking the Seagate drive Desktop icon and selecting "mount". I believe this calls udisks2 to mount the drive. Any help is very much appreciated.
Cheers, Jono
*update 1* I just found this: https://bbs.archlinux.org/extern.php?ac … &type=atom - which appears to be what I'm asking.
*update 2* I can also use the udisks2 command line tool to mount with custom permissions -
udisksctl mount -t ntfs -o dmask=0022,fmask=0133 -b /dev/sde1
I just cant find the right documentation/information to configure udisks2, or write an ntfs mount rule. If anyone has experience writing udev/udisk rules please?
*update 3* Here: https://igurublog.wordpress.com/2012/03 … for-linux/ is a bitch about this issue "Want to write a quick script to mount a device? Forget it, according to David Zeuthen" (udisks author)
Last edited by Arping vim Killall (2017-09-14 15:46:26)
Offline
If mounted inside Enlightenment, where is the ntfs partition mounted?
Is it something like '/run/media/$USER/VolumeName' or something else?
Offline
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
Thanks for your replies.
berbae - that's right /run/media/you/Seagate Expansion Drive
Mr.Elendig - thanks but I dont seem to have an ntfs-3g UserMapping file...if thats what you suggested editing
Offline
I don't know how Enlightenment calls udisks2 to mount the device, so I don't know if there is a possibility to give it the right mount options in a configuration parameter.
Maybe ask in a Enlightenment forum if this is possible.
But you have already a working way with the 'udisksctl mount' command line, so I suggest you use it as an easy solution.
Offline
Pages: 1