You are not logged in.
Pages: 1
Hello,
I used to be able to have udev rules like:
KERNEL=="sda2",ENV{UDISKS_PRESENTATION_HIDE}="1"
KERNEL=="sda3",ENV{UDISKS_PRESENTATION_HIDE}="1"
to hide partitions from being shown in file managers and such. This seems to get ignored after systemd got introduced. How come? is systemd managing my devices now? Whats the relationship between the two? And how do i make my udev rules (like the above) work again?
Offline
Offline
systemd doesn't care about your udev rules. Udev's handling of them hasn't changed because of systemd. If you're using udisks2, then I believe there's a different method of hiding partitions.
but, if nothing has changed, how come they don't work anymore? Is this because of udisks?
Last edited by justdanyul (2012-11-23 16:02:43)
Offline
I'm going to have to give that question a very stong "maybe"! Seriously, I am not sure that you have really provided enough clear information for anyone to give you a straight answer here.
I think falconindy gave you a pretty good spot to start there, but it would seem from your response you are simply ignoring it.
Offline
I'm going to have to give that question a very stong "maybe"! Seriously, I am not sure that you have really provided enough clear information for anyone to give you a straight answer here.
I think falconindy gave you a pretty good spot to start there, but it would seem from your response you are simply ignoring it.
I wasn't ignoring his answer at all. I'm just trying to understand why the udev rules stopped working, since this have worked for me in the past. I spend my whole adult life developing software, and one thing I have learnt from experience is that attempting to fix a problem by throwing a different technology at it(in this case udisks2), without understanding why what you had where broken in the first place, is not a good plan.
Offline
You didn't ignore falconindy's answer, but it seems to me you didn't understand it. Udev's handling of rules hasn't changed, but something outside of udev changed - udisks was replaced by udisks2.
Offline
You didn't ignore falconindy's answer, but it seems to me you didn't understand it. Udev's handling of rules hasn't changed, but something outside of udev changed - udisks was replaced by udisks2.
We'll I certainly didn't take that from the answer, so no I didn't understand him. I am not versed enough in the inner working of udev to interpret "if you use udisk2" to the statement you just posted.
Anyways, thanks for clearing that out
Last edited by justdanyul (2012-11-25 01:18:13)
Offline
udisks2 doesn't "replace" udisks. You can have either or neither or both installed simultaneously, and they'll both work as they were designed to (though you may encounter problems trying to unmount partitions mounted by the other helper).
I believe falconindy was simply saying that any changes to udev's rule handling were not due to it and systemd's merger.
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
update,
after a bit of digging around, I finally found that changing UDISKS_PRESENTATION_HIDE to UDISKS_IGNORE fixes this.
I noticed that XFCE page in the wiki( https://wiki.archlinux.org/index.php/Xfce ) has a section called "Hide selected partitions on the desktop", where it says you can use udev rules (identical to the ones I posted) to hide partitions on the desktop. Somebody should update the wiki (i don't want to step on anybody's toes and "just do it")
Offline
It is a wiki - it is supposed to get updated as needed by whoever is in a position to do so.
However, since others may not be using udisks2, you should edit it to explain when not to use the method mentioned there and the alternative available in that case. (Rather than, say, just replacing it which won't help people using udisks, for example.)
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
Ok, I added a bit to the relevant section on the wiki
Offline
Pages: 1