You are not logged in.

#1 2017-10-07 18:58:19

jorgedcc
Member
Registered: 2017-10-07
Posts: 7

Hide udesired devices in file manager

Hello,

First of all, thank you all for your help. I really admire your desire to help others. I am somewhat unexperienced in Arch Linux, so maybe this can be fixed relatively easy.

I couldn't find a topic where this problem was mentioned so I created this post.

The issue I have is that my file managers, Nautilus in Gnome and Nemo in Cinnamon, are showing me a strange list of devices on the sidebar that they didn't show before. The list seems to contain my mouse, webcam, and usb ports. I believe this was caused by something I did, because the file managers don't show this list when I open them as root.

Because this is happening in Gnome and Cinnamon, I thought that maybe it is not related specifically with Nautilus.

This is the list of devices:
8087 0024
8087 0024
8087 07da
EHCI Host Controller
EHCI Host Controller
Usb Mouse
Webcam SC10HDD12636P
xHCI Host Controller
xHCI Host Controller


Thank you in advance,

Offline

#2 2017-10-07 19:33:24

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Hide udesired devices in file manager

Welcome to the forums jorgedcc smile

Can you post the contents of your /etc/fstab (inbetween [⁣code] [⁣/code] tags please).


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2017-10-07 20:25:36

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: Hide udesired devices in file manager

# cat /etc/udev/rules.d/99-hide-partitions.rules
KERNEL=="sda1", ENV{UDISKS_IGNORE}="1"
KERNEL=="sda2", ENV{UDISKS_IGNORE}="1"
KERNEL=="sda3", ENV{UDISKS_IGNORE}="1"
KERNEL=="sda4", ENV{UDISKS_IGNORE}="1"
KERNEL=="sda5", ENV{UDISKS_IGNORE}="1"
KERNEL=="sda6", ENV{UDISKS_IGNORE}="1"
KERNEL=="nvme0n1p4", ENV{UDISKS_IGNORE}="1"

Last edited by graysky (2017-10-07 20:25:55)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#4 2017-10-07 22:10:59

jorgedcc
Member
Registered: 2017-10-07
Posts: 7

Re: Hide udesired devices in file manager

slithery wrote:

Welcome to the forums jorgedcc smile

Can you post the contents of your /etc/fstab (inbetween [⁣code] [⁣/code] tags please).


Hello thank you for your quick reply. I don't see any  tags in the file. This is everything in /etc/fstab

# /dev/sda2 UUID=ba8accc3-92d3-48e1-986a-4847f3bd997b
PARTUUID=225e916c-853d-4501-a9d6-37774fa8ad1b    /             ext4          rw,relatime,data=ordered    0 1

# /dev/sda1 UUID=BA9D-CA49
PARTUUID=45516105-af6b-45a2-a813-4f5eaef156f0    /boot         vfat          rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro    0 2

# /dev/sda3 UUID=e52abb33-c43d-417e-9836-857db4589ec9
PARTUUID=ab0efac1-07da-40b4-ba06-be9aa0c205da    /home         ext4          rw,relatime,data=ordered    0 2

# /dev/sda4 UUID=665902be-68eb-4099-a563-97bc8e093c74
PARTUUID=544eb3f0-5ccb-4365-a968-04ded89c0a67    none          swap          defaults      0 0

Offline

#5 2017-10-07 22:13:27

jorgedcc
Member
Registered: 2017-10-07
Posts: 7

Re: Hide udesired devices in file manager

graysky wrote:
# cat /etc/udev/rules.d/99-hide-partitions.rules
KERNEL=="sda1", ENV{UDISKS_IGNORE}="1"
KERNEL=="sda2", ENV{UDISKS_IGNORE}="1"
KERNEL=="sda3", ENV{UDISKS_IGNORE}="1"
KERNEL=="sda4", ENV{UDISKS_IGNORE}="1"
KERNEL=="sda5", ENV{UDISKS_IGNORE}="1"
KERNEL=="sda6", ENV{UDISKS_IGNORE}="1"
KERNEL=="nvme0n1p4", ENV{UDISKS_IGNORE}="1"

This file doesn't exist in my system, this is the output of ls -l in /etc/udev/rules.d
total 16
-rw-r--r-- 1 root root  144 Oct  4 20:57 69-libmtp.rules
-rw-r--r-- 1 root root 5554 Dec 23  2013 80-canon_mfp.rules
-rw-r--r-- 1 root root 2135 Jul 16  2013 81-canonij_prn.rules

Should I create it?

Thanks

Offline

#6 2017-10-07 22:18:58

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Hide udesired devices in file manager

You add the code tags to your post; they don't appear by themselves: https://wiki.archlinux.org/index.php/Co … s_and_code


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2017-10-07 22:23:11

loqs
Member
Registered: 2014-03-06
Posts: 17,373

Re: Hide udesired devices in file manager

As the devices being displayed are not partitions udisks should not need to be told to ignore them.

Offline

#8 2017-10-07 22:29:29

jorgedcc
Member
Registered: 2017-10-07
Posts: 7

Re: Hide udesired devices in file manager

slithery wrote:

Welcome to the forums jorgedcc smile

Can you post the contents of your /etc/fstab (inbetween [⁣code] [⁣/code] tags please).

Sorry

# /dev/sda2 UUID=ba8accc3-92d3-48e1-986a-4847f3bd997b
PARTUUID=225e916c-853d-4501-a9d6-37774fa8ad1b    /             ext4          rw,relatime,data=ordered    0 1
# /dev/sda1 UUID=BA9D-CA49
PARTUUID=45516105-af6b-45a2-a813-4f5eaef156f0    /boot         vfat          rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro    0 2
# /dev/sda3 UUID=e52abb33-c43d-417e-9836-857db4589ec9
PARTUUID=ab0efac1-07da-40b4-ba06-be9aa0c205da    /home         ext4          rw,relatime,data=ordered    0 2
# /dev/sda4 UUID=665902be-68eb-4099-a563-97bc8e093c74
PARTUUID=544eb3f0-5ccb-4365-a968-04ded89c0a67    none          swap          defaults      0 0

Offline

#9 2017-10-07 23:25:14

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,740

Re: Hide udesired devices in file manager

The file graysky posted was an example of his own usecase you can use to infer the correct configuration yourself. Copying it verbatim is unlikely to give you the desired results.

Offline

#10 2017-10-07 23:28:53

loqs
Member
Registered: 2014-03-06
Posts: 17,373

Re: Hide udesired devices in file manager

Udisks#Hide_selected_partitions This still does not answer the question why udisks would treat usb devices as partitions.

Offline

#11 2017-10-24 14:51:55

jorgedcc
Member
Registered: 2017-10-07
Posts: 7

Re: Hide udesired devices in file manager

Hello everyone,

I've had some busy weeks at work and couldn't do much more. I did read more about udev but didn't find something that solved this.

I appreciate the time you took to help me out, I can use everything without problems so I'm not in a hurry to fix it. But if I have problems, maybe I'm going to reinstall or install a distro that is more newbie friendly so I don't mess things up again.

Thank you all,

Offline

Board footer

Powered by FluxBB