Xfce Thunar - hide ext4 partitions / block mounts

I am running Freebsd14 w Xfce4.18 and Debian12 in a dual boot setup. In Freebsd, Thunar file manager shows all the Debian partitions containing ext4 filesystems and allows me to mount them in /media. Is there a way to hide these partitions or block the user from mounting them?

In File Manager Preferences Advanced tab there's a Volume Management checkbox with Configure link but clicking that generates an error (failed to execute "thunar-volman" no such file). Looks like that program has not been ported to Freebsd. Anyway, that is for management of removable devices, not the internal drives/partitions being exposed, so irrelevant I suppose.

There was a post on xfce forum about this issue a long time ago. The fix was for Xfce running on a linux os though.

 
Anyway, that is for management of removable devices, not the internal drives/partitions being exposed, so irrelevant I suppose.
From the system's point of view they're the same thing. Back when XFCE, Gnome, etc still used HAL you could instruct consolekit to ignore certain filesystems. Not sure if that's still possible, consolekit is still there.
 

Play around with the nouser option in fstab.
I don't know if the hide property in ruleset/devfs is appropriate for this.
As a last option, remove the fuse packages that support ext4.
 
Back
Top