Unmounting from KNotifier makes the device disappear

Compiz, KDE, Gnome, Fluxbox, etc...

Moderator: Moderators

Unmounting from KNotifier makes the device disappear

Postby King_DuckZ » Sun Jan 08, 2012 1:36

Hello, it's a few weeks I noticed a change in the behaviour of the "eject" button in DeviceNotifier. Before, whenever I clicked the button, the partition was unmounted but the entry would still be displayed in DeviceNotifier in case I wanted to re-mount it. Now, if I eject something and I change my mind, I have to unplug it and re-plug it. Is this a known problem or am I the only one having it? I'm using KDE 4.7.4.

This is the output of ls /dev before and after ejecting:
Code: Select all
[[email protected] test]$ ls /dev/sd*
/dev/sda   /dev/sda2  /dev/sda4  /dev/sda6  /dev/sda8  /dev/sdb1  /dev/sdc1
/dev/sda1  /dev/sda3  /dev/sda5  /dev/sda7  /dev/sdb   /dev/sdc

Code: Select all
[[email protected] test]$ ls /dev/sd*
/dev/sda  /dev/sda1  /dev/sda2  /dev/sda3  /dev/sda4  /dev/sda5  /dev/sda6  /dev/sda7  /dev/sda8  /dev/sdb  /dev/sdb1  /dev/sdc

Note how sdc1 completely disappears.
King_DuckZ
Simple Hen
 
Posts: 68
Joined: Wed Sep 07, 2011 0:46

Re: Unmounting from KNotifier makes the device disappear

Postby Fitzcarraldo » Sun Jan 08, 2012 2:18

Moving to '3D Desktops and Window Managers' shed (forum) as KNotifier is an integral part of KDE.

Have you tried right-clicking on Device Notifier, clicking on Device Notifier Settings > Automounting and trying different settings?
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7998
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: Unmounting from KNotifier makes the device disappear

Postby Fitzcarraldo » Thu May 24, 2012 22:44

Do you still have this problem? If yes, it could be the same as KDE Bug 293906 - KDE device notifier does not show USB devices after umounting.

I am also experiencing this effect in KDE 4.8.3, but only for pen drives; the icons of external USB HDDs remain in the list of Available Devices, with a tooltip 'Click to mount this device', and so I can click on the icon and then select 'Open with File Manager' to re-mount the device.

Notice that, in Device Notifier, the icon of a USB pen drive is different to the icon of an external USB HDD. So KDE knows they are different devices. I suspect that the code in KDE has been written to assume that, if you click on the icon to remove a pen drive (the tooltip 'Click to safely remove this device'), then you are going to remove it ("why else", the developer must have thought, "would you click on the arrow icon to remove the pen drive?"). Isn't it a bit like the functionality in Windows? Doesn't the pen drive icon disappear from the Windows pop-up window if you select 'Safely Remove This Device'? I can't recall now.

Anyway, I wonder if there is some D-Bus (or udev, or udisks) rule somewhere that the user could edit to change this behaviour for USB pen drives specifically.
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7998
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom


Return to 3D Desktops and Window Managers

Who is online

Users browsing this forum: No registered users and 1 guest