In my computer there are a couple of partitions that should be not mounted from Linux, that is to say, the Windows Recovery Partition and another one used by a software in Windows.
The point is that a user can mount or unmount these partitions using gnome-disks. In general I would like to prevent this. How do I achieve this?
I added the following two lines in /etc/fstab:
Code: Select all
UUID=8F3F-F678 /mnt/8F3F-F678 auto defaults,noauto,nouser 0 0 UUID=7BA56G3JK12H1 /mnt/7BA56G3JK12H1 auto default,noauto,nouser 0 0
From the command line it works: the mount command says that only root can mount these partitions. However it remains possible to mount them from gnome-disks.
Suggestions? Thank you for your answers!