I have a usb drive I have always plugged and I would like i no to be shown in removable devices
is it possible to do that?
I assume you are referring to within Dolphin… If so then right click on the device and choose “Hide”
It isn’t in /etc/fstab?
No, sorry. I was referring to the icon in the bar, the device notifier. I can’t see something similar to what you say in dolphin in the device notifier configuration
How?
In fact the device is in fstab … I think I should have explained it better.
I have installed my system in a NVME M2 pluged in a PCI express through an adapter. As mi motherboard does not recognize the nvme at boot, I have installed boot in a usb pendrive.
fstab is
UUID=5b000355-3a1a-49f5-8005-f10668008aa7 / btrfs defaults 0 0
UUID=5b000355-3a1a-49f5-8005-f10668008aa7 /.snapshots btrfs subvol=/@/.snapshots 0 0
UUID=5b000355-3a1a-49f5-8005-f10668008aa7 /var btrfs subvol=/@/var 0 0
UUID=5b000355-3a1a-49f5-8005-f10668008aa7 /usr/local btrfs subvol=/@/usr/local 0 0
UUID=5b000355-3a1a-49f5-8005-f10668008aa7 /tmp btrfs subvol=/@/tmp 0 0
UUID=5b000355-3a1a-49f5-8005-f10668008aa7 /srv btrfs subvol=/@/srv 0 0
UUID=5b000355-3a1a-49f5-8005-f10668008aa7 /root btrfs subvol=/@/root 0 0
UUID=5b000355-3a1a-49f5-8005-f10668008aa7 /opt btrfs subvol=/@/opt 0 0
UUID=5b000355-3a1a-49f5-8005-f10668008aa7 /home btrfs subvol=/@/home 0 0
UUID=d8840035-b312-4034-8e0f-54a67505de9a /boot ext4 data=ordered 0 2
UUID=67e3f0e9-f93c-40cd-a13d-aa2a36ba91ab swap swap sw,pri=2 0 0
UUID=9369acab-a71c-4274-b8d6-f9ab9da6e7a9 swap swap sw,pri=1 0 0
where the ext4 in /boot is the partition in the usb.
I would like the device notifier not to nofify about “something” plugged here because it is always here.
Setting “ignore” property may do it
echo 'ACTION=="add|change", SUBSYSTEM=="block", ENV{ID_FS_UUID}=="d06b07a3-04bf-46e1-8cae-5f2592c69192", ENV{UDISKS_IGNORE}=1' > /etc/udev/rules.d/99-ignore-usb-boot.rules
It didn’t work
Is property actually set? Post output of “udevadm info --export-db” (upload to https://susepaste.org)
I don’t think so.
https://susepaste.org/76027370
P: /devices/pci0000:00/0000:00:13.2/usb4/4-1/4-1:1.0/host10/target10:0:0/10:0:0:0/block/sda/sda3
N: sda3
L: 0
S: disk/by-path/pci-0000:00:13.2-usb-0:1:1.0-scsi-0:0:0:0-part3
S: disk/by-partuuid/85b8ac89-bf8b-4999-b68f-1cb17a68f4c2
S: disk/by-uuid/d8840035-b312-4034-8e0f-54a67505de9a
S: disk/by-id/usb-_USB_DISK_3.0_070A119A8067E650-0:0-part3
E: DEVPATH=/devices/pci0000:00/0000:00:13.2/usb4/4-1/4-1:1.0/host10/target10:0:0/10:0:0:0/block/sda/sda3
E: SUBSYSTEM=block
E: DEVNAME=/dev/sda3
E: DEVTYPE=partition
E: PARTN=3
E: MAJOR=8
E: MINOR=3
E: USEC_INITIALIZED=11935337
E: DONT_DEL_PART_NODES=1
E: ID_VENDOR_ENC=\x20\x20\x20\x20\x20\x20\x20\x20
E: ID_VENDOR_ID=13fe
E: ID_MODEL=USB_DISK_3.0
E: ID_MODEL_ENC=USB\x20DISK\x203.0\x20\x20\x20\x20
E: ID_MODEL_ID=6300
E: ID_REVISION=PMAP
E: ID_SERIAL=_USB_DISK_3.0_070A119A8067E650-0:0
E: ID_SERIAL_SHORT=070A119A8067E650
E: ID_TYPE=disk
E: ID_INSTANCE=0:0
E: ID_BUS=usb
E: ID_USB_INTERFACES=:080650:
E: ID_USB_INTERFACE_NUM=00
E: ID_USB_DRIVER=usb-storage
E: ID_PATH=pci-0000:00:13.2-usb-0:1:1.0-scsi-0:0:0:0
E: ID_PATH_TAG=pci-0000_00_13_2-usb-0_1_1_0-scsi-0_0_0_0
E: ID_SCSI=1
E: ID_SCSI_INQUIRY=1
E: ID_PART_TABLE_UUID=374607fd-0cf5-4b7f-a0f6-5d09421b3c53
E: ID_PART_TABLE_TYPE=gpt
E: SCSI_TPGS=0
E: SCSI_TYPE=disk
E: SCSI_MODEL=USB_DISK_3.0
E: SCSI_MODEL_ENC=USB\x20DISK\x203.0\x20\x20\x20\x20
E: SCSI_REVISION=PMAP
E: DM_MULTIPATH_DEVICE_PATH=0
E: FC_TARGET_LUN=0
E: ID_FS_UUID=d8840035-b312-4034-8e0f-54a67505de9a
E: ID_FS_UUID_ENC=d8840035-b312-4034-8e0f-54a67505de9a
E: ID_FS_VERSION=1.0
E: ID_FS_TYPE=ext4
E: ID_FS_USAGE=filesystem
E: ID_PART_ENTRY_SCHEME=gpt
E: ID_PART_ENTRY_UUID=85b8ac89-bf8b-4999-b68f-1cb17a68f4c2
E: ID_PART_ENTRY_TYPE=0fc63daf-8483-4772-8e79-3d69d8477de4
E: ID_PART_ENTRY_FLAGS=0x4
E: ID_PART_ENTRY_NUMBER=3
E: ID_PART_ENTRY_OFFSET=16300032
E: ID_PART_ENTRY_SIZE=9486336
E: ID_PART_ENTRY_DISK=8:0
E: COMPAT_SYMLINK_GENERATION=2
E: DEVLINKS=/dev/disk/by-path/pci-0000:00:13.2-usb-0:1:1.0-scsi-0:0:0:0-part3 /dev/disk/by-partuuid/85b8ac89-bf8b-4999-b68f-1cb17a68f4c2 /dev/disk/by-uuid/d8840035-b312-4034-8e0f-54a67505de9a /dev/disk/by-id/usb-_USB_DISK_3.0_070A119A8067E650-0:0-part3
E: TAGS=:systemd:
I have seen that the UUID yo posted (and I included in the udev rules) is not the same of the fs I was talking about, but I chaged it for the UUID of the fs (I tried both) and still nothing.
Maybe is because as the fs is mounted previous to the system to boot (as the fs is /boot ) it does not trigger add|change ?
Yes, sorry, was old content in clipboard buffer.
Anyway, the assignment is wrong, it should have been
ENV{UDISKS_IGNORE}="1"
Notice quotes around value. Sorry.
Now it worked!
thanks.