Introduction - will it change my life?

Magic(!) Mounter (mmounter) tries to bring to Linux/UNIX a more user-friendly behaviour regarding the automatic mounting/unmounting of volumes (disks, partitions, CD-ROMs, floppies, ZIPs...).

It's approach is completely user-space based so you won't need to patch your kernel (like you would have to to use other solutions like supermount). It should also be fairly portable (even if HP-UX support is broken right now).

Getting Magic(!) Mounter - I want it now !

Installation - what should I do with this bunch of bytes?

By default, the installation (either by RPM or manual) creates a startup file named /etc/rc.d/init.d/mmounter.rc. The RPM automatically activates it but if you installed manually, you should activate it by typing (as root)
/sbin/chkconfig --add mmounter.rc
/sbin/chkconfig mmounter.rc on
/etc/rc.d/init.d/mmounter.rc start

Configuration - does it make coffee ?

The config is stored in /etc/mmounter.conf
the format of this file is similar to the .INI files used by Windows:
[section]
key=value
key=value

each "section" here is a device or a special device.
known options for normal devices:

special devices

Example configuration

[/dev/cdrom]
fs=hfs,iso9660
type=CD-ROM
eject=/usr/bin/eject
options=ro
userdisk=yes
delay=5

[/dev/zip]
fs=ext3,ext2,hfs
type=ZIP
eject=/usr/bin/eject
options=exec,nosuid,nodev
userdisk=yes
delay=5

[</proc/partitions]

[*]
fs=ext3,ext2,vfat,hfs,iso9660
mountbase=/Local
mount=/bin/mount
options.vfat=exec,nosuid,nodev
options.hfs=exec,nosuid,nodev
options.iso9660=exec,nosuid,nodev
type=Hard disk
userdisk=no
delay=15
 

Usage

The users can un-mount the volumes tagged as 'userdisk' by typing
mmumount /path/to/mountpoint
or
mmumount /path/to/device
The volume will then be unmounted and ejected (if configured so).
Lyonel Vincent

SourceForge Logo