Registered Member
|
Hello
I'd like to give non-power users USB keydrives with the light Slackware-based Slax distro, so that they can work even if their Windows host isn't available. Slax uses KDE 4 as its desktop. I'd like to have Linux/KDE automount all the partitions on all the available mass storage devices, so that users don't have to learn how to mount partitions themselves. However, even with the options checked in KDE's System Settings > Hardware > Removable Devices, the partitions aren't automounted:
FWIW, I can manually mount the partitions. Has someone experienced the same issue and knows how to solve it? Thank you. |
Administrator
|
Can you please make sure that "Removable Device Automounter" is checked in System Settings > Startup & Shutdown > Service Manager?
Also, is your system using HAL / UDisks / UDisks2? One of those is required in order for KDE to be able to enumerate and mount devices such as removable media.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
Thanks for the help.
Yes, "Removable Device Automounter" is checked by default. I didn't know what "HAL / UDisks / UDisks2" were, so googled for it. Apparently, they're three solutions to detect hardware. I don't know what Slax uses. How could I investigate why KDE isn't automounting the partitions?
|
Registered Member
|
Maybe it uses other apps as well, but it includes udisks:
|
Administrator
|
What is the output of the following command?
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
Here it is:
|
Administrator
|
This explains the issue - KDE is unable to contact UDisks and is therefore unable to enumerate or mount the disks. You need to ensure that UDisks is installed and being started either before KDE startup (for manual starting of UDisks) or during KDE startup (if using D-Bus automatic startup for UDisks). If these machines are potentially laptops, you should also ensure that UPower is functional, otherwise information regarding the battery, as well as suspend and hibernate actions will be unavailable. It can be started in a similar manner to UDisks.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
Thanks for the info. I'll investigate how to solve this.
|
Registered Member
|
No help so far.
Udisks is available:
But it can't find devices:
How can make sure Udisks is launched before KDE? I assume KDE is not responsible for this, but it's up to Linux itself to take care of this? Thank you. |
Administrator
|
Correct, it is up to the distribution itself to ensure that UDisks is launched either before KDE is started - or is able to start itself automatically (via D-Bus autolaunching).
I suggest checking with your distribution why either of the above two methods is not working. On my system, the process "/usr/lib/udisks/udisks-daemon" runs the actual UDisks service...
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
Thanks for the help.
When I launch the following manually...
... the KDE Dolphin filemanager automounts and grants me access to the two (ext4 and NTFS) partitions on the SATA drive Provided launching the above two daemons is all it takes for KDE to automount all the available partitions (from both fixed and removable devices), what is the recommended way to do this? By adding something in /etc/rc.d/ or somewhere in KDE when the user logs in? |
Administrator
|
Those two daemons should both be autolaunched by D-Bus when KDE requests their services I believe, so I do not know why they are not being automatically launched.
I suggest asking your distribution about this, they are probably not shipping the D-Bus automatic launch files for some reason. In any instance, ensuring those processes are launched prior to the startup of KDE (for which /etc/init.d/ would work fine) should fix this issue.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
Thank you. That clears things up. I'll go ask how to launch D-Bus automatic launch files.
|
Administrator
|
On my system, I can find three files, named "org.freedesktop.PolicyKit1.service", "org.freedesktop.UDisks.service", "org.freedesktop.UPower.service" in /usr/share/dbus-1/system-services/ which contain the details necessary to trigger the automatic launching.
The org.freedesktop.UPower.service file has the following contents for instance:
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], lockheed, mesutakcan, Sogou [Bot]