Bug 6946 - fails to mount optical disc if hal previously exited uncleanly
Summary: fails to mount optical disc if hal previously exited uncleanly
Status: RESOLVED FIXED
Alias: None
Product: hal
Classification: Unclassified
Component: hald (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: David Zeuthen (not reading bugmail)
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-17 05:58 UTC by william.jon.mccann
Modified: 2006-05-23 08:33 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description william.jon.mccann 2006-05-17 05:58:52 UTC
HAL (HEAD) or the kernel started misbehaving with my DVD drive and wouldn't
release the disc.  So I rebooted.

When I come back up I try to mount the DVD again and I can't because:

mount_point    = 'Personal Data, May 15, 2006'
mount_fstype   = ''
mount_options  = 'uid=729       '
trying dir /media/Personal Data, May 15, 2006
15:49:21.662 [I] hald_dbus.c:3175: Client to local_server was disconnected
15:49:21.662 [I] hald_dbus.c:3185: unregistered
/opt/gnome/libexec/hal-storage-mount exited
15:49:21.670 [I] hald_dbus.c:2637: No more methods in queue
15:49:21.670 [I] hald_dbus.c:2682: failed with
'org.freedesktop.Hal.Device.Volume.MountPointNotAvailable' 'The mount point
'/media/Personal Data, May 15, 2006' is already occupied'

sudo ls -al /media/Personal\ Data\,\ May\ 15\,\ 2006/
Password:
total 12
drwx------ 2 root root 4096 May 16 09:34 .
drwxr-xr-x 3 root root 4096 May 16 09:34 ..
-rw-r--r-- 1 root root    0 May 16 09:34 .created-by-hal


The error message seems to come from hal-storage-mount.c when the mount point
exists and is requested explicitly.

Maybe in this case where it is clear that HAL created the mountpoint and that
the mountpoint is empty that HAL should just remove the directory and continue?
Comment 1 Danny Kukawka 2006-05-24 01:33:48 UTC
This should be fixed with the latest fixes in CVS and the scripts section. On 
startup of HAL hal-system-storage-cleanup-mountpoints should be called and 
cleanup all by hal created mountpoints.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.