Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ rmmount(1) — SunOS 5.2

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

fsck(1M)

vold(1M)

rmmount.conf(4)

vold.conf(4)

rmmount(1)

NAME

rmmount − removable media mounter that automatically mounts file systems on CD-ROMs and floppies. 

SYNOPSIS

/usr/sbin/rmmount [ −D ]

DESCRIPTION

rmmount() is a removable media mounter that is executed by Volume Management whenever a CD-ROM or floppy is inserted. The Volume Management daemon, vold(1M), manages CD-ROM and floppy devices. 

Upon insertion, rmmount() determines what type of file system (if any) is on the media.  If a file system is not identified, rmmount() does not mount the file system. The media is accessable through UNIX block or character devices. These devices depend on the name of the media and can be found in places such as /vol/dev/dsk/ct06/unnamed_cdrom and /vol/rdev/fd0/unlabeled.  See SunOS 5.1 Adding and Maintaining Devices and Drivers for more information on the location of CD-ROM and floppy media. 

If a file system type is determined, it is checked to see that it is “clean”.  If the file system is “dirty”, fsck -p (see fsck(1M)) is run in an attempt to clean it. If fsck(1M) fails, the file system is mounted read-only. 

File systems are mounted in their respective media mount location (either /cdrom or /floppy). 

If the media is read-only (CD-ROMs or the write protect tab is set on a floppy), the file system is mounted read-only. 

After the mount is complete, “actions” associated with the media type are executed.  These actions allow for the notification of other programs that new media is available.  These actions are shared objects and are described in the configuration file, /etc/rmmount.conf, (see rmmount.conf(4)). 

Note: File system mounted by rmmount() are always mounted with the nosuid flag set thereby disabling set-uid programs and access to block or character devices in that file system.  Upon ejection, rmmount() unmounts mounted file systems and executes actions associated with the media type. If a file system is “busy” (a process has it current working directory in it), the ejection will fail. 

OPTIONS

−D Turn on the debugging output from the rmmount() dprintf calls. 

FILES

/etc/rmmount.conf removable media mounter configuration file. 

/usr/lib/rmmount/∗.so.1 shared objects used by rmmount. 

SEE ALSO

fsck(1M), vold(1M), rmmount.conf(4), vold.conf(4)

SunOS 5.1 Adding and Maintaining Devices and Drivers
 

SunOS 5.2  —  Last change: 23 Feb 1993

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026