Bugzilla – Bug 98347
Modify the HAL mounting behavior of removable media to use both static and dynamic mount points
Last modified: 2007-06-05 11:04:31 UTC
In 9.3 HAL was introduced for automatic mounting/unmounting of removable media to /media/VolumeLabelOfMedia instead of a static location such as /media/dvdrecorder. This is convienent in many cases and annoying in many cases too--It's nice to have the volume label, but it's also nice to have the reliable static location. There have been workarounds to diable HAL or have it mount to static locations. See: http://portal.suse.com/sdb/en/2005/05/dkukawka_subfs_nomount.html http://portal.suse.com/sdb/en/2005/05/dkukawka_hal_mountpoints.html I propose another solution: Have HAL mount the media to the dynamic volume label locactions, but then symbollicaly link them to the old static locations. i.e.: /media/VolumeLabel/ -> /media/dvdrecorder If it is technically easier to go the other way (/media/dvdrecorder -> /media/VolumeLabel), that is fine too. This way, we get the best of both worlds.
Yes we discussed this behavior and would add the second way (mount to /mount/ cdrom and add a link to cdrom named like the volume, because I'm not sure if all programs like Wine ... can follow the link as in solution one) to the submount binary for HAL.
*** Bug 98481 has been marked as a duplicate of this bug. ***
*** Bug 104955 has been marked as a duplicate of this bug. ***
>>From Bug #98481 >We discussed this and now we change the behavior to the in bug #98347. Reason: >we can/would not change the behavior of yast. > >Now we plan to mount the device to the first symlink from the udevinfo -q >symlink -p block.device Has this been rolled out? I am not seeing this happening on beta2 yet.
Changed for beta 4 to this behavior: * if we ge a new volume /device for mount check if the device / volume is already mounted (this was also in the current solution) * if not mounted: ask udevinfo for known symlinks * check if there is a free symlink with a related existing directory in /media --> if there is a existing, not mounted dir in /media: - mount to this mountpoint and add a link with volume label --> if there is a existing, mounted dir in /media: - try to find an other --> if no dir available: - mount to volume label / desired_mount_point from HAL (if the user want a mount to a special device: change udev rule and add the needed directories to /media)
*** Bug 113710 has been marked as a duplicate of this bug. ***
*** Bug 115157 has been marked as a duplicate of this bug. ***
So if I create two dirs /mount/dvd and /mnt/dvdrecorder, how do I have my dvds mounted there (and perhaps linked to the media name as well)