Bug 273095

Summary: method teardown() seems to perform a "eject" instead of "umount" on some usb devices
Product: [Unmaintained] solid Reporter: Ben Gouhier <benoit.gouhier>
Component: libsolid-udisksAssignee: Lukáš Tinkl <lukas>
Status: RESOLVED DUPLICATE    
Severity: normal CC: afiestas
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Ben Gouhier 2011-05-12 07:07:34 UTC
Version:           unspecified (using KDE 4.6.2) 
OS:                Linux

I am using the program quick-usb-formatter which adds an entry in the device manager in the systray. (http://opendesktop.org/content/show.php?content=137493)
Before formatting the device, the program calls the method teardown() to unmount the device to format. However, this action sometimes fully ejects the device which disappear from /dev/sd*. The program is then unable to format it. The device also disappear from the device manager. I have to unplug and replug it to have it back.

Using 'udisks --unmount /dev/sdb1' works fine though, because /dev/sdb1 doesnt disappear. I would expect the same action from the method teardown(). I cant figure out why it happens only on some devices since I dont know much about c++ and even less about kde/solid libs. I would be happy to help to tackle this, if anyone have any clue about what is wrong.

Reproducible: Sometimes

Steps to Reproduce:
Insert a usb key/hd, mount it in the device manager (in the systray).
Unmount it from the systray.


Actual Results:  
In some cases the device disappears from the device manager, and the corresponding entry in /dev as well. 

Expected Results:  
In other cases the device is only unmounted and still appears in the device manager, and can be mounted again when clicking on the mount icon. The entry in /dev is not removed.

Using kde 4.6.3 on Kubuntu natty with kubuntu updates ppa.
Comment 1 Alex Fiestas 2013-03-03 18:11:33 UTC
Lukas, any idea of this? we fixed something similar iirc.
Comment 2 Lukáš Tinkl 2013-03-05 12:01:48 UTC

*** This bug has been marked as a duplicate of bug 293906 ***