DSBMD is a media/filesystem type detecting daemon for FreeBSD®
that allows local clients (DSBMC,
DSBMC-Cli) to mount storage devices.
It is configured to work out of the box.
DSBMD watches the mount table for changes, monitors devd
events for new storage devices, polls CD/DVD drives and card readers for
media change events, determines media types, volume names, and
filesystem types. Mountable devices, changes in the mount table as
well as device add/remove events and altered states of mountable
devices are presented to clients. Clients can request DSBMD to mount,
unmount, and eject media, or set the CD/DVD reading speed.
Client authentication is handled using unix®
domain-socket credentials. Authorization can be defined on a
user and/or group basis.
For each supported filesystem, mount flags or external mount
commands can be defined.
Supported filesystems are: ISO-9660, FAT, NTFS, UFS, Ext2/3/4,
HFS+, exFAT, Btrfs, and XFS.
Mounts and unmounts not initiated though
DSBMD are detected, and necessary action are taken.
Simple plain text protocol. DSBMD can be used and
debugged using Telnet
(telnet -u /var/run/dsbmd.socket)
or Netcat (nc -U /var/run/dsbmd.socket).
Support for Linux® LVM logical volumes.
Support for memory disks (md)
Support for MTP devices
Support for PTP devices
The preferred way is to use the FreeBSD®
# cd /usr/ports/sysutils/dsbmd && make install distclean
Installation from source
# tar xf dsbmd-1.3.tgz && cd dsbmd-1.3 && make install
or check out the most recent code on
together with hald
recommended. Since both daemons access the same system resources and execute
similar actions, this might lead to malfunction.
In order to start DSBMD
at boot time, add the following line to
Depending on your needs, install the FreeBSD ports fusefs-exfat
. For mounting HFS+ volumes, install
comes with predefined commands in dsbmd.conf
these ports to mount the corresponding filesystems.
Mounting as regular user (since version 0.5)
If you want DSBMD
to mount storage devices as regular user (default) who initiated
the mount command, set
usermount = true
, and set the sysctl variable
To make this setting permanent, add
for mounting as regular user (see above). This will
allow you to unmount automounted media without special privileges. Install
manually as regular user, or add the command
to your shell's rc file, or to your window manager's autostart file.