why on "recent devices" is present an internal hard disk?

on my desktop pc with leap 15.1 and KDE in the icon that indicates the removable devices “recent devices” is present an internal hard disk SATA, why this? I don’t want it indicated in the removable devices, how can I eliminate this?

Right click the icon, check Configure Devicenotifier , If the settings are correct and expected behaviour is not accordingly, please file a bugreport at bugs.kde.org

In BIOS settings disable hotplug for SATA devices.
Or disable DE’s (desktop environment) system mesages for that case.

manythanks svyatko, I check the bios settings and hotplug for sata was already disabled, the kde system messages I don’t know where I can find for that case

Did you check out Knurpht’s advice from a DE perspective?

I think yes, from the DE perpective the only thing that jumped is ststemsettings>removable storage>removable devices tab but as in the picture
https://paste.opensuse.org/63839125
there are all devices that ar not removable. some with usb symbol (like the one of device notifier) other not
suse3.1>not removable M2 device>no usb symbol: it is attached on onboard M2 port used for / of main OS
capanno->not removable sata device->usb symbol: it is attached on additional sata extender board on PCI port SHOWN IN DEVICE NOTIFIER
mansarda->not removable sata device->no usb symbol: it is attached on onboard sata port
casalmare2->not removable sata device->no usb symbol: it is attached on onboard sata port
abbaino->not removable sata device->no usb symbol: it is attached on onboard sata port
suse3.2>not removable M2 device>no usb symbol but different from suse3.1: it is attached on onboard M2 port used for / spare OS
piedaterre2->not removable sata device->no usb symbol: it is attached on onboard sata port
fienile1->not removable sata device->usb symbol: it is attached on additional sata extender board on PCI port **NOT SHOWN IN DEVICE NOTIFIER
**home>not removable M2 device>no usb symbol: it is attached on onboard M2 port used for /home
cantina->not removable sata device->usb symbol: it is attached on additional sata extender board on PCI port **NOT SHOWN IN DEVICE NOTIFIER
**it seems that the ones attached on additional sata extender board on PCI port are shown with usb symbol (like the one of device notifier) the other with a disklike symbol and one with a disklike symbol but different
among the ones attached on additional sata extender board on PCI port and shown with usb symbol, one is shown in device notifier.
is it possible to solve?
sorry for the picture with mixed language that I didn’t succeed to solve the problem of mixed language

Right klick on the Plasmoid in the right corner------configure----only removable

it is already only removable

You can use custom udev rules to have udisks ignore internal devices or partitions. Examples…

KERNEL=="sd[a-b]*",ENV{UDISKS_IGNORE}="1"
KERNEL=="sda2", ENV{UDISKS_IGNORE}="1"

More info here:
https://wiki.archlinux.org/index.php/Udisks#Hide_selected_partitions

If desired UUIDs can be specified instead as explained in the wiki page.

manythanks,

KERNEL=="sd[d-j]*",ENV{UDISKS_IGNORE}="1"

worked, as you know is there a way to IGNORE hard disks by LABEL?
something like

KERNEL==**LABEL=**"cantina2",ENV{UDISKS_IGNORE}="1"

or

SUBSYSTEM=="block", ENV{ID_FS_**LABEL**}=="cantina2", ENV{UDISKS_IGNORE}="1"

Yes, that’s outlined in the wiki page as well. :wink:

yes, I take the example from there, but I don’t get it for labellol!
this is the example

SUBSYSTEM=="block", ENV{ID_FS_UUID}=="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXXX", ENV{UDISKS_IGNORE}="1"

that shows only the UUID, may be this is ok to use the label?

SUBSYSTEM=="block", ENV{**ID_FS_LABEL**}=="**cantina2**", ENV{UDISKS_IGNORE}="1"

manythanks

Yes, as long as it matches with a valid attribute (use ‘blkid’ for that) then the rule will be applied.

manythanks deano, I did this in /etc/udev/rules.d/10-system-disk.rules

SUBSYSTEM=="block", ENV{ID_FS_LABEL}=="casalmare2", ENV{UDISKS_IGNORE}="1"SUBSYSTEM=="block", ENV{ID_FS_LABEL}=="abbaino", ENV{UDISKS_IGNORE}="1"
SUBSYSTEM=="block", ENV{ID_FS_LABEL}=="mansarda", ENV{UDISKS_IGNORE}="1"
SUBSYSTEM=="block", ENV{ID_FS_LABEL}=="piedaterre2", ENV{UDISKS_IGNORE}="1"
SUBSYSTEM=="block", ENV{ID_FS_LABEL}=="capanno", ENV{UDISKS_IGNORE}="1"
SUBSYSTEM=="block", ENV{ID_FS_LABEL}=="cantina", ENV{UDISKS_IGNORE}="1"
SUBSYSTEM=="block", ENV{ID_FS_LABEL}=="fienile1", ENV{UDISKS_IGNORE}="1"
SUBSYSTEM=="block", ENV{ID_FS_LABEL}=="garage2", ENV{UDISKS_IGNORE}="1"

based on this;

procuste@server3TW:~> su -
Password:  
**server3TW:~ #** blkid /dev/sdb
/dev/sdb: PTUUID="f5651539-2bd6-4cb6-802e-7481175ff985" PTTYPE="gpt"
**server3TW:~ #** blkid /dev/sdb1
/dev/sdb1: LABEL="casalmare2" UUID="8a8aee0d-a249-4d39-a69b-cd8202ec9c52" TYPE="ext3" PARTLABEL="casalma
re2" PARTUUID="23bd611f-f47a-431b-9d9d-cf0884920a08"
**server3TW:~ #** blkid /dev/sdc
/dev/sdc: PTUUID="00095e4e" PTTYPE="dos"
**server3TW:~ #** blkid /dev/sdc1
/dev/sdc1: LABEL="abbaino" UUID="14699508-fea0-4353-a22d-1cd9416b95ec" TYPE="ext3" PARTUUID="00095e4e-01
"
**server3TW:~ #** blkid /dev/sdd
**server3TW:~ #** blkid /dev/sdd1
**server3TW:~ #** blkid /dev/sde
/dev/sde: PTUUID="63643e8f-1d41-4dc0-8a98-4c7765c3df44" PTTYPE="gpt"
**server3TW:~ #** blkid /dev/sde1
/dev/sde1: LABEL="mansarda" UUID="86635244-e90f-4ad0-ae2f-33d2ab98a50f" TYPE="ext3" PARTLABEL="mansarda"
 PARTUUID="c6f42cb6-a49c-4b08-9df0-d1447d35b10b"
**server3TW:~ #** blkid /dev/sdf
/dev/sdf: PTUUID="758fe2da-ffcb-4ac5-a418-1a926ba9b9fa" PTTYPE="gpt"
**server3TW:~ #** blkid /dev/sdf1
/dev/sdf1: LABEL="piedaterre2" UUID="85d65617-556c-4c2b-aef7-4b0258d2c209" TYPE="ext3" PARTLABEL="piedat
erre2" PARTUUID="4cfb6aa9-ea52-4971-a121-bd0b4eb28f53"
**server3TW:~ #** blkid /dev/sdg
/dev/sdg: PTUUID="000d0434" PTTYPE="dos"
**server3TW:~ #** blkid /dev/sdg1
/dev/sdg1: LABEL="capanno" UUID="1e2e2cf0-fca6-476a-b22e-14c3662df099" TYPE="ext3" PARTUUID="000d0434-01
"
**server3TW:~ #** blkid /dev/sdh
^[A/dev/sdh: PTUUID="000281a2" PTTYPE="dos"
[b]server3TW:~ # blkid /dev/sdh1
/dev/sdh1: LABEL="cantina" UUID="fb960121-6b29-4953-ae21-061a4cb55549" TYPE="ext3" PARTUUID="000281a2-01
"
**server3TW:~ #** blkid /dev/sdi
/dev/sdi: LABEL="garage2" UUID="c4ba1e0c-5ddc-4e9f-9c7b-292b5db7b59d" TYPE="ext4"
**server3TW:~ #** blkid /dev/sdi1
**server3TW:~ #** blkid /dev/sdl
**server3TW:~ #** blkid /dev/sdl1
**server3TW:~ #** blkid /dev/sdj
/dev/sdj: PTUUID="0000109a" PTTYPE="dos"
**server3TW:~ #** blkid /dev/sdj1
/dev/sdj1: LABEL="fienile1" UUID="1a5abd51-3c72-4214-a709-37327f8356dd" TYPE="ext3" PARTUUID="0000109a-0
1"
**server3TW:~ #** 


but “fienile1” “capanno” “garage2” “cantina” are visible, and also the output is different if I do blkid /dev/sdh or blkid /dev/sdh1 from a disk and another.
can I solve?

but “fienile1” “capanno” “garage2” “cantina” are visible, and also the output is different if I do blkid /dev/sdh or blkid /dev/sdh1 from a disk and another.
can I solve?

Do an attribute walk on the partitions concerned eg /dev/sdg1

udevadm info --name=/dev/sdg1 --attribute-walk

Are the rule matching attributes correct for these ‘non-hidden’ partitions?

An introductory udev guide:

A udev rule must contain one attribute from one single parent device.

Parent attributes are things that describe a device from the most basic level, such as it’s something that has been plugged into a physical port or it is something with a size or this is a removable device.

LABEL is apparently not the same as PARTLABEL (the last seem to be what matches ID_FS_LABEL).

How did you set the labels in all those cases? Using tune2fs?

no, I used gparted >partition>file system label (translated from mine that is in italian) there is also >partition label but is greyed

I never used gparted, but the crucial point here is if all those (or at least one of both different cases we see) were treated in the same way or not.

EDIT: btw maybe post the output of lsblk. I assume people are more used to it’s output.

looking in the output of

udevadm info --name=/dev/sdg --attribute-walk

I found this:

looking at parent device '/devices/pci0000:00/0000:00:1c.0/0000:01:00.0/ata7':
    KERNELS=="ata7"
    SUBSYSTEMS==""
    DRIVERS==""

does the ata7 may be the sata port n°7 ?
do you think I can use it in a command like this?

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

here lsblk output

server3TW:~ # lsblkNAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 256.2G  0 disk 
├─sda1   8:1    0   156M  0 part 
├─sda2   8:2    0     2G  0 part [SWAP]
├─sda3   8:3    0    40G  0 part /suse3.1
├─sda4   8:4    0 174.2G  0 part /home
└─sda5   8:5    0  39.8G  0 part /
sdb      8:16   0   3.7T  0 disk 
└─sdb1   8:17   0   3.7T  0 part /casalmare
sdc      8:32   0 931.5G  0 disk 
└─sdc1   8:33   0 931.5G  0 part /abbaino
sde      8:64   0   2.7T  0 disk 
└─sde1   8:65   0   2.7T  0 part /mansarda
sdf      8:80   0   3.7T  0 disk 
└─sdf1   8:81   0   3.7T  0 part /piedaterre
sdg      8:96   1   1.8T  0 disk 
└─sdg1   8:97   1   1.8T  0 part 
sdh      8:112  1   1.8T  0 disk 
└─sdh1   8:113  1   1.8T  0 part 
sdi      8:128  1   3.7T  0 disk 
sdj      8:144  1   1.8T  0 disk 
└─sdj1   8:145  1   1.8T  0 part 



googling lsblk I think this is better, the mountpoint may be blank becouse disks are unmounted now

server3TW:~ # lsblk -o name,mountpoint,label,partlabelNAME   MOUNTPOINT  LABEL       PARTLABEL
sda                            
├─sda1             UEFI        primary
├─sda2 [SWAP]      swap        swap
├─sda3 /suse3.1    suse3.1     suse3.1
├─sda4 /home       home        home
└─sda5 /           suse3.2     suse3.2
sdb                            
└─sdb1 /casalmare  casalmare2  casalmare2
sdc                            
└─sdc1 /abbaino    abbaino     
sde                            
└─sde1 /mansarda   mansarda    mansarda
sdf                            
└─sdf1 /piedaterre piedaterre2 piedaterre2
sdg                            
└─sdg1             capanno     
sdh                            
└─sdh1             cantina     
sdi                garage2     
sdj                            
└─sdj1             fienile1    



It is exactly the opposite. LABEL refers to filesystem label which is stored as ID_FS_LABEL device property during device discovery. PARTLABEL refers to … e-h-h … partition label; not all partition types support it (MS-DOS does not, GPT does). It is stored as ID_PART_ENTRY_NAME device property.