MACMNTD(8) MachTen Programmer’s Manual MACMNTD(8)

NAME
macmntd - Macintosh removable media mount daemon

SYNOPSIS
/usr/sbin/macmntd

DESCRIPTION
macmntd automatically mounts floppies, CDROMS, and other
removable media when they are inserted into their disk
drives. macmntd waits for disk inserted events by opening
the disk inserted device, -I /dev/diskinsert. This open
request blocks until the next disk is inserted, at which
time the open completes. Then macmntd issues an ioctl to
glean the disk’s Macintosh volume name from the disk
inserted device. This name is passed as a parameter to
/sbin/mount which follows its normal rules in -I
/etc/fstab to determine where to mount the volume. (In
MachTen, /etc/fstab may contain entries of the form If
there is no entry in -I /etc/fstab for this volume, macm-
ntd makes a directory in -I /volume with the same name as
the Macintosh volume name of the inserted disk, and mounts
the volume there.

Removable volumes which have been mounted under MachTen
are automatically unmounted from MachTen when they are
ejected from the Macintosh via the Finder dragging them to
the trash. If a path in -I /volume was created by -I
macmntd, this path is not removed until the next reboot of
MachTen, at which time -I /etc/rc cleans up the -I /volume
directory.

FILES
/dev/diskinsert
/volume

SEE ALSO
mount(8), fstab(5)

NOTES
Only one process can be waiting for the disk inserted
event via an open of the -I /dev/diskinsert device. Sub-
sequent open requests fail with EBUSY.

MachTen April 26, 1995 1