! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Wrong device unmount handling
Status:
RESOLVED: WONTFIX

Comments

Description Artyom Smirnov 2008-05-10 22:34:13 CEST
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.14) Gecko/20080417 BonEcho/2.0.0.14
Build Identifier: 

Flash disk automounts properly, but if disk ejected manually (without umounting), device stayed mounted and mount point don't delete. I notice it after upgrading hal from 0.5.9 to 0.5.11. If downgrade hal to 0.5.9, manually ejected device properly umounts and mount point deletes accordingly.

Reproducible: Always

Steps to Reproduce:
1. Turn on automounter
2. Insert flash disk and wait for mount point appear
3. Remove flash disk

Actual Results:  
Device must umount and mount point must be deleted

Expected Results:  
Device not umounted and mount point remain.

Also I notice this messages in syslog (if hal > 0.5.9) after ejecting:

FAT: Directory bread(block 3843) failed
FAT: Directory bread(block 3844) failed
FAT: Directory bread(block 3845) failed
FAT: Directory bread(block 3846) failed
FAT: Directory bread(block 3847) failed
...

or 

EXT3-fs error (device sdd1): ext3_find_entry: reading directory #2 offset 0
EXT3-fs error (device sdd1): ext3_find_entry: reading directory #2 offset 0
EXT3-fs error (device sdd1): ext3_find_entry: reading directory #2 offset 0
EXT3-fs error (device sdd1): ext3_find_entry: reading directory #2 offset 0
EXT3-fs error (device sdd1): ext3_find_entry: reading directory #2 offset 0
EXT3-fs error (device sdd1): ext3_find_entry: reading directory #2 offset 0
...

May be it hal bug?
Comment 1 Nick Schermer editbugs 2009-10-17 11:31:03 CEST
Linux is simply not designed to remove devices without unmounting (actually, no os is suitable for that). So just unmount before removing the device.

Bug #4073

Reported by:
Artyom Smirnov
Reported on: 2008-05-10
Last modified on: 2009-10-17

People

Assignee:
Nick Schermer
CC List:
0 users

Version

Version:
unspecified

Attachments

Additional information