Bug 98347 - Modify the HAL mounting behavior of removable media to use both static and dynamic mount points
Summary: Modify the HAL mounting behavior of removable media to use both static and dy...
Status: VERIFIED FIXED
: 98481 104955 113710 115157 (view as bug list)
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: unspecified
Hardware: Other All
: P5 - None : Enhancement
Target Milestone: ---
Assignee: Danny Kukawka
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-25 17:19 UTC by Kirk Coombs
Modified: 2007-06-05 11:04 UTC (History)
7 users (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kirk Coombs 2005-07-25 17:19:07 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.
Comment 1 Danny Al-Gaaf 2005-07-26 09:52:57 UTC
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.  
Comment 2 Danny Al-Gaaf 2005-08-13 01:30:43 UTC
*** Bug 98481 has been marked as a duplicate of this bug. ***
Comment 3 Kirk Coombs 2005-08-16 16:20:08 UTC
*** Bug 104955 has been marked as a duplicate of this bug. ***
Comment 4 Kirk Coombs 2005-08-18 17:34:58 UTC
>>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.
Comment 5 Danny Al-Gaaf 2005-08-28 08:23:46 UTC
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)


Comment 6 Danny Al-Gaaf 2005-08-29 08:15:15 UTC
*** Bug 113710 has been marked as a duplicate of this bug. ***
Comment 7 Danny Al-Gaaf 2005-09-03 18:29:52 UTC
*** Bug 115157 has been marked as a duplicate of this bug. ***
Comment 8 Michael Stather 2005-09-08 15:45:31 UTC
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)