Questo è documentato (almeno per gnome-shell/ nautilus) in gvfs-udisks2-volume-monitor:
The gvfs-udisks2-volume-monitor process is responsible for the disks,
media, mounts and fstab entries shown in the desktop user interface.
..........................................
A device is either mounted (in which case its directory is known) or
it's not. If the device is not mounted, then its directory is known
only if it's referenced in the /etc/fstab file.
Più in basso arriva la spiegazione:
If the directory for a device is known and outside /media, $HOME
(typically /home/foo) or /run/media/$USER then the device is not shown
in the user interface. Additionally, if any of component directories
in its directory starts with a dot ("."), the device is not shown
either. This policy may be overriden by use of the options x-gvfs-show
and x-gvfs-hide.
Per riassumere:
Le partizioni elencate in /etc/fstabverranno visualizzate (per impostazione predefinita) solo se sono montate in /media, $HOMEo /run/media/$USER. Se si desidera che una partizione venga montata automaticamente all'avvio del sistema ed elencata anche nella barra laterale del file manager, il modo più semplice è montarlo tramite /etc/fstabuna di queste tre posizioni.
Se si desidera che la partizione venga montata in una directory diversa (ad es. /mnt) E che venga comunque visualizzata nella barra laterale, è possibile ignorare il comportamento predefinito aggiungendo x-gvfs-showalle opzioni di montaggio in fstab:
UUID=5a1615ca-cffd3124917a /mnt/storage ext4 rw,noatime,discard,x-gvfs-show 0 2
Le partizioni non elencate in /etc/fstabsono gestite da udisks2e saranno montate sotto /run/media/$USER/VolumeNameo in /media/VolumeNamebase al valore di UDISKS_FILESYSTEM_SHARED1, quindi saranno mostrate sotto Devicesnella barra laterale. Tuttavia, non vengono montati automaticamente. Un utente potrebbe montarli automaticamente all'avvio della sessione con udisksctl, ad esempio aggiungendo:
udisksctl mount -b /dev/sdb2 -t ext4
agli script di avvio della sessione.
1
man udisks :
UDISKS_FILESYSTEM_SHARED
If set to 1, the filesystem on the device will be mounted in a shared directory e.g. /media/VolumeName)
instead of a private directory (e.g. /run/media/$USER/VolumeName) when the Filesystem.Mount() method is handled.
fstabviene ancora mostrata come dispositivo in questi file manager.