Bug 3139

Summary: safely remove USB drive shows error-message "Error detaching: helper exited with exit code 1" - CONFIG_PM_RUNTIME and CONFIG_USB_SUSPEND missing
Product: Mageia Reporter: Christian Lohmaier <lohmaier+mageia>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: tmb
Version: 1   
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: kernel-2.6.38.8-6.mga1.src.rpm CVE:
Status comment:
Bug Depends on: 3186    
Bug Blocks:    

Description Christian Lohmaier 2011-10-22 22:53:23 CEST
Description of problem:
when using the "safely remove drive" entry from the drive's context menu in GNOME/nautilus, a notification dialog is shown:

Unable to stop <label of drive>

Error detaching: helper exited with exit code 1: Detaching device /dev/sdc
USB device: /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-2)
SYNCHRONIZE CACHE: FAILED: No such file or directory
(Continuing despite SYNCHRONIZE CACHE failure.)
STOP UNIT: OK
Unbinding USB interface driver: OK
Suspending USB device: FAILED: Cannot open /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-2/power/level for writing: No such file or directory

Version-Release number of selected component (if applicable):
netbook variant of the kernel

How reproducible:
100%

Steps to Reproduce:
1. plug in usb drive (pendrive or external USB stick or a generic MSC drive)
2. use "safely remove drive" from the drive's contextmenu 
3. drive is unmounted, but gives the dialog

According to http://forums.gentoo.org/viewtopic-t-893978-start-0.html
it is because CONFIG_PM_RUNTIME and CONFIG_USB_SUSPEND is not enabled in the kernel (and indeed it is not)
Comment 1 Thomas Backlund 2011-10-25 16:32:06 CEST
wich kernel are you using ?

CC: (none) => tmb

Comment 2 Christian Lohmaier 2011-10-25 17:05:30 CEST
cite:
# Version-Release number of selected component (if applicable):
# netbook variant of the kernel

so 
kernel-netbook-latest-2.6.38.8-6.mga1 รข kernel-netbook-2.6.38.8-6.mga-1-1.mga1
Comment 3 Thomas Backlund 2011-10-25 17:28:26 CEST

Ah sorry, I missed the "netbook variant"...


It will be fixed in upcoming 2.6.38.8-7
Thomas Backlund 2011-10-25 23:42:03 CEST

Depends on: (none) => 3186

Comment 4 Thomas Backlund 2011-10-25 23:50:50 CEST
There is now a kernel-2.6.38.8-7.mga available in core/updates_testing.

Please test that is works for you.
Comment 5 Christian Lohmaier 2011-10-28 02:02:16 CEST
yes, the kernel from testing works - thanks a lot
Comment 6 Manuel Hiebel 2011-10-29 16:09:59 CEST
(In reply to comment #5)
> yes, the kernel from testing works - thanks a lot

Ok thanks. So we can close this one.

Status: NEW => RESOLVED
Resolution: (none) => FIXED