In no particular order ...
If media is present when user starts machine, the media automounts under ivman's account, and then a regular user can't unmount it.
- Disable ivman daemon so that the ivman user doesn't do any mounting:
# update-rc.d -f ivman remove
- Start ivman under the user's account at login so the regular user can mount via ivman.
Turning off the ivman daemon is handled by the SkinnyDebbie installer. I wrote a custom script (start-ivman) to handle user startup that checks the above at IceWM startup. I also wrote a control panel widget that repairs the above if it breaks (e.g., after an ivman package update).
The default SkinnyDebbie behavior is that automounting will be started for the first user that is logged in and not for subseqent users until the first user logs off. In practice this is fine because SkinnyDebbie is intended for single-user logins. The start-ivman script warns the user if someone else is already using automounting.
Not all media automounts, USB hard drives in particular
- Add /etc/hal/fdi/policy/mountpolicies.fdi as documented in http://gentoo-wiki.com/HOWTO_ivman (2009.10.30 update: I think this has been moved to http://en.gentoo-wiki.com/wiki/Ivman).
- Remove CDROM and DVD but not FLOPPY entries from /etc/fstab.
- Remove CDROM and DVD but not FLOPPY links from /media.
- Remove CDROM and DVD but not FLOPPY links from /.
It's not at all obvious to the regular user where/when removable media is inserted
- Edit ~/.ivman/IvmConfigActions.xml so that:
ROX-Filer announces the insertion of media and prompts the user for desired action (e.g., open /media directory, launch CD ripper, etc.)
ivman scans on init
- Add /media link to the desktop
- Add /media link to Rox's bookmarks
- Add /media link to IceWM's "start" menu
There are several custom "annc" scripts (anncRoxMedia, anncCDDA, anncDVDvideo) that get called per media type. These scripts check to see if ROX's pinboard is running; if it is, then it will announce the insertion of media. The IceWM startup delays the start of ROX's pinboard by a few seconds so that the user doesn't get bombarded with media announcements when logging in.
If user logs off without unmounting stuff, the folders remain in /media but the media is not mounted
- Write script pumountall that pumounts everthing and use it to unmount everything at logoff (via ~/.icewm/shutdown).
User needs guidance in good habits (i.e., unmount before remove)
- Write script pumount-fb, which does pumount with GUI feedback.
- Tell ROX-Filer to use script pumount-fb to unmount.
CD and DVD media don't mount ... ever
See "Not all media automounts, USB hard drives in particular" above.