Re: /run/media/$USER (Re: [opensuse-factory] usb devices not showing in kde)
Am 09/21/12, schrieb Alin M Elena <alinm.elena@gmail.com>:
I use Tumbleweed and lost auto-mounting although devices were recognized and announced sometime during 12.1, but it came back sometime between rc1 and rc2 and is still functioning as is expected (kde).
just to be clear... the problem is not automount... I do not care and I do not use it... the problem is that dolphin/device notifier do not present the usb devices to be mounted.... the system at lower level sees them: (the only exotic thing on this machine is the fact I installed 12.2 with lxdm and them duped to factory and then installed kde --all clean confings)
[alin@abbaton:~]: udisksctl monitor Monitoring the udisks daemon. Press Ctrl+C to exit. 09:11:15.286: The udisks-daemon is running (name-owner :1.80). 09:11:17.178: Removed /org/freedesktop/UDisks2/block_devices/sdc1 09:11:17.178: Removed /org/freedesktop/UDisks2/block_devices/sdc 09:11:17.179: Removed /org/freedesktop/UDisks2/drives/Kingmax_USB2_2e0_FlashDisk_4000000009261 09:11:23.517: Added /org/freedesktop/UDisks2/drives/Kingmax_USB2_2e0_FlashDisk_4000000009261 org.freedesktop.UDisks2.Drive:
This is udisks *2*, but KDE might still be using udisk *1*. The lowest level on the KDE side where you can check easily is "solid-hardware list", it should list all kind of hardware, including devices found through solids backend for udisks, at least the backend itself should be listed, e.g.: $> solid-hardware list ... udi = '/org/freedesktop/UDisks' udi = '/org/freedesktop/UDisks/devices/sda' ... I do not know if the solid UDisks2 backend is already stable and which backend KDE in 12.2 is using. If it is still using UDisks1, it might just not be installed (UDisks1 and UDisks2 can be installed and running side by side, according to its author). Regards, Stefan -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Stefan spot on.... that udisks was the problem. Thank you very much. regards, Alin On Friday 21 Sep 2012 15:59:53 Stefan Brüns wrote:
Am 09/21/12, schrieb Alin M Elena <alinm.elena@gmail.com>:
I use Tumbleweed and lost auto-mounting although devices were recognized and announced sometime during 12.1, but it came back sometime between rc1 and rc2 and is still functioning as is expected (kde).
just to be clear... the problem is not automount... I do not care and I do not use it... the problem is that dolphin/device notifier do not present the usb devices to be mounted.... the system at lower level sees them: (the only exotic thing on this machine is the fact I installed 12.2 with lxdm and them duped to factory and then installed kde --all clean confings)
[alin@abbaton:~]: udisksctl monitor Monitoring the udisks daemon. Press Ctrl+C to exit. 09:11:15.286: The udisks-daemon is running (name-owner :1.80). 09:11:17.178: Removed /org/freedesktop/UDisks2/block_devices/sdc1 09:11:17.178: Removed /org/freedesktop/UDisks2/block_devices/sdc 09:11:17.179: Removed /org/freedesktop/UDisks2/drives/Kingmax_USB2_2e0_FlashDisk_4000000009261 09:11:23.517: Added /org/freedesktop/UDisks2/drives/Kingmax_USB2_2e0_FlashDisk_4000000009261
org.freedesktop.UDisks2.Drive: This is udisks *2*, but KDE might still be using udisk *1*.
The lowest level on the KDE side where you can check easily is "solid-hardware list", it should list all kind of hardware, including devices found through solids backend for udisks, at least the backend itself should be listed, e.g.:
$> solid-hardware list ... udi = '/org/freedesktop/UDisks' udi = '/org/freedesktop/UDisks/devices/sda' ...
I do not know if the solid UDisks2 backend is already stable and which backend KDE in 12.2 is using. If it is still using UDisks1, it might just not be installed (UDisks1 and UDisks2 can be installed and running side by side, according to its author).
Regards,
Stefan -- Without Questions there are no Answers!
Alin Marin ELENA Advanced Molecular Simulation Research Laboratory School of Physics, University College Dublin ---- Ardionsamblú Móilíneach Saotharlann Taighde Scoil na Fisice, An Coláiste Ollscoile, Baile Átha Cliath ----------------------------------------------------------------------------------- http://alin.elenaworld.net ______________________________________________________________________ -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Friday 21 September 2012 18:56:51 Alin M Elena wrote:
Stefan spot on.... that udisks was the problem. Thank you very much.
i.e. udisks was not installed? Can you please file a bugreport then? Regards, Stefan -- Stefan Brüns / Bergstraße 21 / 52062 Aachen phone: +49 241 53809034 mobile: +49 151 50412019 -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Op vrijdag 21 september 2012 23:16:38 schreef Stefan Brüns:
On Friday 21 September 2012 18:56:51 Alin M Elena wrote:
Stefan spot on.... that udisks was the problem. Thank you very much.
i.e. udisks was not installed?
I have udisks, libudisks2-0, udisks-glue, udisks2 and udisks2-lang installed in 12.2 but I don't have automatic mounting. I do get a pop-up showing the disk connected to the USB port. -- fr.gr. Freek de Kruijf -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Fri, 21 Sep 2012 23:33:43 +0200, Freek de Kruijf <f.de.kruijf@gmail.com> wrote:
I have udisks, libudisks2-0, udisks-glue, udisks2 and udisks2-lang installed in 12.2 but I don't have automatic mounting. I do get a pop-up showing the disk connected to the USB port.
AFAIK That's how it should be. At least in KDE you get a pop-up asking you what action should be taken. If you do want automatic mounting you have to configure it. Philipp -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Philipp Thomas <Philipp.Thomas2@gmx.net> writes:
On Fri, 21 Sep 2012 23:33:43 +0200, Freek de Kruijf <f.de.kruijf@gmail.com> wrote:
I have udisks, libudisks2-0, udisks-glue, udisks2 and udisks2-lang installed in 12.2 but I don't have automatic mounting. I do get a pop-up showing the disk connected to the USB port.
AFAIK That's how it should be. At least in KDE you get a pop-up asking you what action should be taken. If you do want automatic mounting you have to configure it.
Someone out there who know how you can use these tools without too much pain from the command line? With udisks --dump (version 1) or udisksctl dump (version 2, cluttered with escape sequences...) you can see a longish list of all devices with all the details... Is there a switch that quickly shows the USB card (SD) that I inserted in the USB card reader? Then with udisks --mount /dev/sdd1 it gets mounted at /media/4865-EF1A. With udisksctl: udisksctl mount -b /dev/sdd1 Mounted /dev/sdd1 at /run/media/ke/4865-EF1A. Is there a way to mount the device in one go (without the dump and searching in the output)? -- Karl Eichwalder SUSE LINUX Products GmbH R&D / Documentation Maxfeldstraße 5 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg) -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Hi, Le mercredi 26 septembre 2012, à 09:46 +0200, Karl Eichwalder a écrit :
Philipp Thomas <Philipp.Thomas2@gmx.net> writes:
On Fri, 21 Sep 2012 23:33:43 +0200, Freek de Kruijf <f.de.kruijf@gmail.com> wrote:
I have udisks, libudisks2-0, udisks-glue, udisks2 and udisks2-lang installed in 12.2 but I don't have automatic mounting. I do get a pop-up showing the disk connected to the USB port.
AFAIK That's how it should be. At least in KDE you get a pop-up asking you what action should be taken. If you do want automatic mounting you have to configure it.
Someone out there who know how you can use these tools without too much pain from the command line?
With
udisks --dump (version 1)
or
udisksctl dump (version 2, cluttered with escape sequences...)
you can see a longish list of all devices with all the details... Is there a switch that quickly shows the USB card (SD) that I inserted in the USB card reader?
Then with
udisks --mount /dev/sdd1
it gets mounted at /media/4865-EF1A. With udisksctl:
udisksctl mount -b /dev/sdd1 Mounted /dev/sdd1 at /run/media/ke/4865-EF1A.
Is there a way to mount the device in one go (without the dump and searching in the output)?
Well, if you don't know the device, you need to find it somehow. So if you want to only use the command line tools, I'm not sure how you could combine the two steps in one. Can you elaborate on why you want to directly use the command line tools, instead of configuring the desktop to do the auto-mounting? Cheers, Vincent -- Les gens heureux ne sont pas pressés. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Vincent Untz <vuntz@opensuse.org> writes:
Can you elaborate on why you want to directly use the command line tools, instead of configuring the desktop to do the auto-mounting?
The desktop (xfce) no longer automatically mounts the devices and I'd like to stick with desktop-defaults as much as possible. But in the end, I'll probably switch the default. Oops, I just see that the options are already enabled, but the filemanager does not actually mount the device, it just displays the label; if you click it, it gets mounted... (I guess this is what Phillip meant). "Stefan Brüns" <Stefan.Bruens@rwth-aachen.de> writes:
Am 09/26/12, schrieb Karl Eichwalder <ke@suse.de>:
Someone out there who know how you can use these tools without too much pain from the command line?
Hm, depends on what you want to achieve:
1. mount all SD cards 2. mount any USB storage when it becomes available 3. mount some storage with a known name/label
For the last point, you can use one of the symlinks in /dev/disk/by-*.
For the other ones, I think you have to write some script which either parses the output of --monitor/--dump respectively, or directly talk to udisks(2) via dbus.
Thanks for the backgorund info. I was hoping someone out there had already written such a script ;) -- Karl Eichwalder SUSE LINUX Products GmbH R&D / Documentation Maxfeldstraße 5 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg) -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
* Karl Eichwalder <ke@suse.de> [2012-09-26 10:23]:
Vincent Untz <vuntz@opensuse.org> writes:
Can you elaborate on why you want to directly use the command line tools, instead of configuring the desktop to do the auto-mounting?
The desktop (xfce) no longer automatically mounts the devices and I'd like to stick with desktop-defaults as much as possible. But in the end, I'll probably switch the default. Oops, I just see that the options are already enabled, but the filemanager does not actually mount the device, it just displays the label; if you click it, it gets mounted... (I guess this is what Phillip meant).
Removable media management is handled by thunar-volume-manager (which btw. builds on GIO which in turn uses udisks2 hence the /run/media mountpoints) and it can be configured to automatically mount drives and media when plugged in, see "Removable Drives and Media" in the Xfce Settings Manager. -- Guido Berhoerster -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Guido Berhoerster <gber@opensuse.org> writes:
Removable media management is handled by thunar-volume-manager (which btw. builds on GIO which in turn uses udisks2 hence the /run/media mountpoints) and it can be configured to automatically mount drives and media when plugged in, see "Removable Drives and Media" in the Xfce Settings Manager.
No, it is just listed in the left pane. If you click it, it gets "automatically" mounted; without clicking it is not mounted. And yes, I have already activated: [x] Mount removable drives when hot-plugged [x] Mount removable media when inserted [x] Browse removable when inserted -- Karl Eichwalder SUSE LINUX Products GmbH R&D / Documentation Maxfeldstraße 5 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg) -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
* Karl Eichwalder <ke@suse.de> [2012-09-26 11:26]:
Guido Berhoerster <gber@opensuse.org> writes:
Removable media management is handled by thunar-volume-manager (which btw. builds on GIO which in turn uses udisks2 hence the /run/media mountpoints) and it can be configured to automatically mount drives and media when plugged in, see "Removable Drives and Media" in the Xfce Settings Manager.
No, it is just listed in the left pane. If you click it, it gets "automatically" mounted; without clicking it is not mounted.
And yes, I have already activated:
[x] Mount removable drives when hot-plugged [x] Mount removable media when inserted [x] Browse removable when inserted
This may actually be a bug between Thunar and thunar-volman, see my reply to Juergen. -- Guido Berhoerster -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Sep 26, 12 10:21:22 +0200, Karl Eichwalder wrote:
Vincent Untz <vuntz@opensuse.org> writes:
Can you elaborate on why you want to directly use the command line tools, instead of configuring the desktop to do the auto-mounting?
The desktop (xfce) no longer automatically mounts the devices and I'd like to stick with desktop-defaults as much as possible. But in the end, I'll probably switch the default. Oops, I just see that the options are already enabled, but the filemanager does not actually mount the device, it just displays the label; if you click it, it gets mounted... (I guess this is what Phillip meant).
With xfce under 12.2, I'd guesstimate the chance that a device gets mounted ca 50% on average. For me, a device that has not been attached before, usually mounts immediatly. The logic appears to be: The more often a device is being re-attached the lower the chance that it gets automatically mounted. The system apparently tries to track state of known devices, or something. cheers, JW- -- o \ Juergen Weigert paint it green! __/ _=======.=======_ <V> | jw@suse.de back to ascii! __/ _---|____________\/ \ | 0911 74053-508 say #263A!__/ (____/ /\ (/) | _____________________________/ _/ \_ vim:set sw=2 wm=8 SUSE LINUX Products GmbH, GF: Jeff Hawn, J.Guild, F.Imendoerffer, HRB 16746 (AG Nuernberg), Maxfeldstrasse 5, 90409 Nuernberg, Germany SuSE. Supporting Linux since 1992. ☺ -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
* Juergen Weigert <jw@suse.de> [2012-09-26 11:01]:
On Sep 26, 12 10:21:22 +0200, Karl Eichwalder wrote:
Vincent Untz <vuntz@opensuse.org> writes:
Can you elaborate on why you want to directly use the command line tools, instead of configuring the desktop to do the auto-mounting?
The desktop (xfce) no longer automatically mounts the devices and I'd like to stick with desktop-defaults as much as possible. But in the end, I'll probably switch the default. Oops, I just see that the options are already enabled, but the filemanager does not actually mount the device, it just displays the label; if you click it, it gets mounted... (I guess this is what Phillip meant).
With xfce under 12.2, I'd guesstimate the chance that a device gets mounted ca 50% on average. For me, a device that has not been attached before, usually mounts immediatly. The logic appears to be: The more often a device is being re-attached the lower the chance that it gets automatically mounted. The system apparently tries to track state of known devices, or something.
No, but it might be https://bugzilla.xfce.org/show_bug.cgi?id=9193 In short, there seems to be a race condition between Thunar and gio, Thunar discovers a device/media via udev and then executes thunar-volman before the device is actually available through udisks2/gio. I suppose this only surfaces now because udisks2 is slower than udisks1. -- Guido Berhoerster -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Friday 21 September 2012 23:33:43 Freek de Kruijf wrote:
Op vrijdag 21 september 2012 23:16:38 schreef Stefan Brüns:
On Friday 21 September 2012 18:56:51 Alin M Elena wrote:
Stefan spot on.... that udisks was the problem. Thank you very much.
i.e. udisks was not installed?
I have udisks, libudisks2-0, udisks-glue, udisks2 and udisks2-lang installed in 12.2 but I don't have automatic mounting. I do get a pop-up showing the disk connected to the USB port.
At this moment the solid backend of KDE doesn't provide udisks2 support. So if an user only installed udisks2 on his system together with KDE, then KDE will not be notified of any removable disks being plugged in. Based on the upstream (KDE 4.10) udisks2 backend, I am creating a patch to bring udisks2 support also for the current KDE version in Factory. Alin already tested the backend with a snapshot of KDE 4.10 and there the correct behavior was restorted. So hopefully by the end of this week we should have an updated version of kdelibs ready that will support udisks2. Be aware that this is a switch and that the old udisks backend will not be build anymore. Raymond -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (10)
-
"Stefan Brüns"
-
Alin M Elena
-
Freek de Kruijf
-
Guido Berhoerster
-
Juergen Weigert
-
Karl Eichwalder
-
Philipp Thomas
-
Raymond Wooninck
-
Stefan Brüns
-
Vincent Untz