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?
Linux is simply not designed to remove devices without unmounting (actually, no os is suitable for that). So just unmount before removing the device.