You are not logged in.

#1 2014-03-19 01:01:36

aexl
Member
From: Basel, Switzerland
Registered: 2014-03-19
Posts: 28

[SOLVED] Hide btrfs Devices in Nautilus

Hi,

I have several btrfs subvolumes mounted in my /home/user directory. The annoying thing about it, is that Nautilus lists all these subvolumes in the left panel as devices. Is there a way to avoid this behavior? I've already tried to create a file /etc/udev/rules.d/99-hide-disks.rules with the rule

KERNEL=="sdb3", ENV{UDISKS_IGNORE}="1"

but this does not work for btrfs subvolumes.

Last edited by aexl (2014-03-21 03:56:34)

Offline

#2 2014-03-19 23:44:58

rh995
Member
Registered: 2012-03-09
Posts: 76

Re: [SOLVED] Hide btrfs Devices in Nautilus

there's some good stuff here: https://bbs.archlinux.org/viewtopic.php?id=156371
But I really don't have much experience with nautilus.

Offline

#3 2014-03-21 03:55:59

aexl
Member
From: Basel, Switzerland
Registered: 2014-03-19
Posts: 28

Re: [SOLVED] Hide btrfs Devices in Nautilus

Thank you very much! Using systemd *.mount Unit files to mount the subvolumes instead of mounting them in the /etc/fstab solved the problem for me.

Offline

#4 2018-09-22 08:57:10

NicoHood
Package Maintainer (PM)
Registered: 2016-09-08
Posts: 6

Re: [SOLVED] Hide btrfs Devices in Nautilus

Hi,
I got the same problem. I want to avoid using anything else than fstab. And the weird thing is, that my current archlinux install does NOT show those entries, while a new one does. And I dont know why.

I installed all packages from my current system on the new one (testing inside a vm), but that also did not help.

I compared the fstab entries, but they look quite identical:
Old:
UUID=c91384af-f210-48f5-ba19-d6415a1bb447       /home/arch/hackallthethings   btrfs           rw,relatime,nossd,space_cache,subvolid=2781,subvol=/@hackallthethings,subvol=@hackallthethings        0 0
New:
UUID=ba0cf405-6377-4dbb-a15a-f4e52fce689f    /home/user/git    btrfs         rw,relatime,space_cache,subvolid=265,subvol=/subvolumes/custom/git,subvol=subvolumes/custom/git    0 0

I also tried the "x-gvfs-hide" mount option without success. And I also dont remember that I configured anything on my current system, I never had this issue. But the system is running for some time now, I originally started with xfce, now I am using gnome.

Does anyone know, what could cause the icons to show on one system, but not the other?

Edit: I found a bug report here:
https://bbs.archlinux.org/viewtopic.php … 0#p1712030

But it is working for me on one system for years!?

Edit2:
It appears that out of all entries ONE RANDOM is picked and ignored by the UI. looks like a bug to me. On my existing machines only one of such mounts is used, thatswhy it was not shown until now. The post linked above contains a link to the bugreport, that might help once it is fixed. I hope it will get fixed...

Last edited by NicoHood (2018-09-22 10:06:50)

Offline

#5 2025-11-04 01:59:52

JoveYu
Member
Registered: 2013-06-03
Posts: 2

Re: [SOLVED] Hide btrfs Devices in Nautilus

You can use the mount option x-gvfs-hide in /etc/fstab to hide it in nautilus

/dev/sda1 /mnt/sda1 ext4   defaults,x-gvfs-hide       0     2

Offline

#6 2025-11-04 04:02:37

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,111
Website

Re: [SOLVED] Hide btrfs Devices in Nautilus

Mod note: closing this old solved thread.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB