Bug 106604

Summary: Unplug of USB mass storage device did not remove mount
Product: [openSUSE] SUSE LINUX 10.0 Reporter: o.stoyke
Component: HotplugAssignee: Danny Kukawka <dkukawka>
Status: VERIFIED INVALID QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: ihno
Version: Beta 2   
Target Milestone: ---   
Hardware: i586   
OS: All   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Output of lsusb & mount *after* the device has been removed
Output of 'lshal'
"/var/log/messages" after ladt reboot

Description o.stoyke 2005-08-23 06:41:50 UTC
I noticed this during attempts to write to /media/MOVING_CHIP (the volume name
is ok) which did not work. Instead, the hotplug system created and mounted
/media/MOVING_CHIP_1 for the second, third, etc. plugin events, no errors on that.

The device itself is ok, works properly on 9.3, Windows, ...
Comment 1 o.stoyke 2005-08-23 06:42:29 UTC
Created attachment 47073 [details]
Output of lsusb & mount *after* the device has been removed
Comment 2 o.stoyke 2005-08-23 06:52:30 UTC
I removed the mount point manually and replugged the device: No reaction (the
devices's LEDs flashed a couple of times...)

Manual mount works fine, the problem is cured with a reboot.

BTW, the storage device is a 0c76:0005.
Comment 3 Danny Al-Gaaf 2005-08-23 07:39:16 UTC
Can you reproduce that? If: please add output of lshal and the part of /var/log/
messages since the last (re)boot. If you can't reproduce this behavior, please 
close the bug
Comment 4 o.stoyke 2005-08-23 08:04:14 UTC
Created attachment 47084 [details]
Output of 'lshal'
Comment 5 o.stoyke 2005-08-23 08:04:41 UTC
Created attachment 47086 [details]
"/var/log/messages" after ladt reboot
Comment 6 o.stoyke 2005-08-23 08:06:26 UTC
Slightly different behaviour this time: The mount point existed after unplugging
the device as described. This time, the next plugin event re-used the mountpoint
and I could access the device.
Comment 7 Danny Al-Gaaf 2005-08-23 10:53:12 UTC
Please plugout the device. If the mountpoint is already present, please remove 
them manually. 

The correct behavior should be: If the device is added a mountpoit should be 
created if needed. If you remove this device, also all from hald-subfs-mount 
created mountpoints for this device get removed. If you shut down and plugout 
the device and reboot hald-subfs-mount should remove normally the unneeded 
mountpoints with the next mount/call.

Please test this (plug out, remove (if not removed automatically) the 
mountpoint, replug the device, check for new mount points. if you now plugout 
all new created mountpoints should be removed.).
Comment 8 Ihno Krumreich 2006-01-02 12:21:54 UTC
closed.