On Tuesday 11 October 2005 17:12, Randall R Schulz wrote:
> Could someone whose CD / DVD auto-mounting is working properly please
> show us their /etc/fstab? In particular, the lines pertaining to their
> CD/DVD drive(s). Mine are:
>
> /dev/dvdrecorder  /media/dvdrecorder  subfs
> noauto,fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
> /dev/dvdrecorder2 /media/dvdrecorder2 subfs
> noauto,fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0

I try to bring some light in the discussion about mount hotplugged 
media/volumes like CD/DVD/USB-Stick/USB-Harddisk on SUSE 10.0.

1.) The fstab entries have nothing to do with this process by default. All 
mounts of removable media in the system are done by HAL and the 
hald-subfs-mount helper by default.

2.) The way/behavior how hal mount a DVD/CD:

* if a media/volume is inserted and and detected by HAL, HAL call 
hald-subfs-mount if the helper is defined in key 'info.callout.add' of the 
related device.

* if the volume in HAL contains the key 'volume.policy.should_mount=true' the 
volume/partition will get mounted by hald-subfs-mount. The helper try this 
way to mount to /media:
 
2.1.) check if there is a directory in /media named as one of the symlinks 
from this command: 'udevinfo -q symlink -p /sys/block/hdc' (replace the path 
with the correct of the device.)
2.1.a) if there is a match, we mount to the first match in /media and create 
if a volumelabel is available a symlink to this device with the name of the 
volumelabel 
2.1.b) if there is no matching dir in /media the helper create a dir named as 
the volumelabel or if not available as defined by the devicekey 
"volume.mount_point" in HAL.

* If the media/volume is removed and the device is removed from the devicelist 
in HAL by udev, HAL umount the device and call hald-subfs-mount. The helper 
checks if all is clean umounted and umount if needed. Before exit the helper 
remove all by the helper created dirs and symlinks which are not mounted.

I hope this explain how this currently work. If you have special problems, 
please file a bug in Bugzilla.

Cheers,

Danny


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to