Registered Member
|
Hello,
I have just installed KDE 4.13 (Kubuntu 14.04) to my parents PC, but the the device notifier display also entries for fixed SCSI harddrives apart of entries for removable media. This is quite annoing and confusing for BFU. Is there a way how to hide them? Bellow is output of udevadm info -a -n /dev/sda My suspect is that the entries are displayed because of the ATTR{removable}=="1" - am I right? I have tried to change this attribute by udev rules, but I was not successfull. Not sure if it could be even changed. I am not an udev guru . thanks, Karel
|
Administrator
|
Yes, it is likely the removable=1 attribute is causing this. Just to verify we're reading this correctly, could you provide the information from "solid-hardware list details"?
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
See the output bellow (relevant entries only):
I could see all the devices has description "Removable media" and the last one has: StorageDrive.removable = true (bool) Is there a way how could I change it? thanks, Karel For completness, here is the full output of solid-hardware command:
|
Administrator
|
In this case you need to convince UDisks the device is non-removable - it probably sources it's information from UDev to a certain extent I suspect. Unfortunately i'm not sure how easy it is to do that - if it isn't possible, then we could look into altering the action rules to explicitly exclude this set of devices... however the cleaner solution is to find out why a IBM array is showing up as a removable disk.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
Thanks for confirmation my suspect. I have do more searches and I have found that the removable flag is probably set by aacraid driver. According to this bug report:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=404927 aacraid claims to be setting this to prevent partition table caching. What do you mean by "altering the action rules"? Do you mean udev rules? Or something else? thanks, Karel |
Administrator
|
When a removable device appears - you are presented with a list of possible actions. To determine which actions apply, each has a rule contained in it which controls for what types of devices it will show up. Changing these rules to explicitly ignore the aacraid devices should resolve your issue.
I'm gathering based on the above Debian bug report that the kernel still reports these devices as removable?
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
So you mean the device actions, right? In case you mean some another rules, please point me when to find them. For these device actions I did not find a way how to Ignore aacraid devices. These rules seems to have very limited set of properties that could be checked. I can see that these rules check an "ignored property". But how this property could be set? Could you help me? Another attribute that possibly could help me is "uuid". But the problem is the only allowed operators are "equals" and "contains". For my usecase I would need "does not equal" operator.
Yes it does. I use kernel 3.13 and the removable flag is set. |
Registered Member
|
In the meantime I have found following bug: https://bugs.kde.org/show_bug.cgi?id=290377. So I guess this 'hide device' functionality is related to the 'ignored property'. Am I correct? Ok, if there is missing a GUI for setting this property, I am curious whether I could set it in some another way. E.g. by editing some config file or so... Sorry for these questions, but I was not successful to find a documentation for device notifier that would help me. |
Administrator
|
You have found the correct interface, yes. Unfortunately it can't be used for editing system actions (despite what the interface says).
The ignored properties can only be set by UDisks - they can't be set through KDE.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]