You are not logged in.

#1 2012-12-02 19:13:47

Matt3o
Member
From: Firenze, Italy
Registered: 2007-09-13
Posts: 177

Hiding bind mounts from nautilus

I have a set of bind mounts in fstab

UUID=1bba81b1-c5ae-470f-9b43-3cad451fab6c	/mnt/hdd	ext4      	rw,relatime		0 2
/mnt/hdd/Downloads		/home/matteo/Downloads		none		bind		0 0
/mnt/hdd/Pictures		/home/matteo/Pictures		none		bind		0 0
...

and they all show up as mountable partitions on nautilus. Is it possible to hide them somehow? I tried with a new rule in /etc/udev/rules.d/ but it doesn't seem to work

KERNEL=="sda1", ENV{UDISKS_IGNORE}="1"
KERNEL=="sdb1", ENV{UDISKS_IGNORE}="1"

I also tried by UUID but it doesn't work either. A solution might be to remove the read attribute the /etc/fstab but it seems a bit drastic.
I know it's purely cosmetic, but still...

Ideas?

Offline

#2 2012-12-02 19:38:49

teekay
Member
Registered: 2011-10-26
Posts: 271

Re: Hiding bind mounts from nautilus

I stumbled over the same thing yesterday (interestingly for the exact same 2 folders, too). Also tried the udev rule without success.
This is plain stupid behaviour in nautilus, IMHO. They are infact already mounted, so why show them as mountable...

I ended up using symlinks rather than bind mounts.

Offline

#3 2012-12-03 10:39:12

bnb2235
Member
Registered: 2011-02-13
Posts: 119

Re: Hiding bind mounts from nautilus

I experienced a similar situation. In my experience, it seemed that anything mounted to home showed as removable. I also used a symbolic link to achieve the results I desired.
https://bbs.archlinux.org/viewtopic.php?id=140313

Offline

#4 2012-12-08 12:53:44

Matt3o
Member
From: Firenze, Italy
Registered: 2007-09-13
Posts: 177

Re: Hiding bind mounts from nautilus

maybe the best solution I've found is to remove the bind mount points from fstab and mount them from a script in systemd

Offline

Board footer

Powered by FluxBB