You are not logged in.

#1 2016-02-03 15:14:13

retogenes
Member
Registered: 2016-01-21
Posts: 33

I cannot prevent GNOME from automounting partitions

I have three partitions in my hard drive, which are not mentioned in my fstab, that are auto-mounted when I run startx to start GNOME.

Relevant lines in dmesg are

[   17.066612] EXT4-fs (sda6): mounted filesystem with ordered data mode. Opts: (null)
[   17.185785] EXT4-fs (sda3): mounted filesystem with ordered data mode. Opts: (null)

Any idea on how I can prevent GNOME to automatically mount those partitions? More generally, is there a way of knowing which program within GNOME is mounting the partitions?

$gnome-shell --version
GNOME Shell 3.18.3
$ uname -a
Linux xxxxx 4.4.1-1-ARCH #1 SMP PREEMPT Mon Feb 1 08:16:18 CET 2016 x86_64 GNU/Linux

PS: Going to GNOME Menu > Disks, and then disabling automounting adds three lines to my fstab like this one:

UUID=3XXXXXXXXXXXXXXB /mnt/3XXXXXXXXXXXXXXB auto nosuid,nodev,nofail,noauto,x-gvfs-show 0 0

But that does not help.

Offline

#2 2016-02-03 16:53:18

mah0
Member
Registered: 2011-04-21
Posts: 47

Re: I cannot prevent GNOME from automounting partitions

I have a same problem. Downgrading the kernel to 4.3.3-3 solves it. But I'm not sure if it's a kernel or gnome issue.

Offline

#3 2016-02-03 17:41:20

retogenes
Member
Registered: 2016-01-21
Posts: 33

Re: I cannot prevent GNOME from automounting partitions

I have just updated the kernel to 4.4.1-2, and the issue I describe above is not solved.

Offline

#4 2016-02-09 20:20:31

retogenes
Member
Registered: 2016-01-21
Posts: 33

Re: I cannot prevent GNOME from automounting partitions

While this is solved by another update, I followed https://wiki.archlinux.org/index.php/udisks to patch it and prevent partitions from being automounted. I created a file /etc/udev/rules.d/10-local.rules, with the following content:

KERNEL=="sda3", ENV{UDISKS_IGNORE}="1"
KERNEL=="sda6", ENV{UDISKS_IGNORE}="1"

However, this also prevents the partitions from appearing in the file manager and thus if I want to mount them, I need to do it manually. Do you know of any rule that prevents the partitions from automonting but still shows them in the file manager?

Offline

Board footer

Powered by FluxBB