The Thunar Volume Manager is an extension for the Thunar file manager, which enables automatic management of removable drives and media. If thunar-volman
is installed and configured properly, for example, and you plug in your removable media, it will automatically launch your preferred application and auto-mount your media.
More details can be found here and here at the official XFCE site.
The fuse
mounting done by nautilus has one advantage over system-wide mounts in /etc/fstab
: it knows which user is doing the mounting. Assuming you are the only user of your client machine (which is fair enough these days), you can get your numeric UID and GID and default umask with:
$ id
uid=1001(msw) gid=1001(msw) groups=…
$ umask
0002
then you'd add these to the options group in fstab
defaults,uid=1001,gid=1001,umask=077,windows_names,locale=…
it would be wise, but not required to replace defaults
with
auto,rw,nosuid,nodev,noexec
nautilus assumes that a user mounted partition is "untrusted" so flags them this way. A foreign (i.e. NTFS) partition should probably always be viewed with such suspicion.
added in response to comment:
This is an area where cross-system semantics get weird. The mount.ntfs(8) manual defines fmask
and dmask
to try to make files created on an NTFS filesystem behave better. Can I ls
a directory not owned by me under windows? Should I be able to? Is there any relation between your UID on Linux and Windows? Dunno.
There is a usermapping=
option for mount.ntfs which supersedes uid, gid, umask, fmask, and dmask. I suggest you look into that if you want fine control on what files are assigned what permissions. I would check to see that you can even access them from the Windows side before committing too much under a usermapping mount.
Best Answer
You can control where a device is mounted via the
/etc/fstab
file. Here are some examples from my/etc/fstab
- it's up to you to adjust it for your situation.Because they all have the
noauto
option, they don't automount (except the mp3 player, and I don't even havegnome-mount
installed).