DSBMD

About

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.

Feature overview

Current Version

1.11.2

Release Notes

Installation

FreeBSD® ports

The preferred way is to use the FreeBSD® ports:
# cd /usr/ports/sysutils/dsbmd && make install distclean

Installation from source

# tar xf dsbmd-1.11.2.tgz && cd dsbmd-1.11.2 && make install
or check out the most recent code on GitHUB

Warning

Running DSBMD together with hald is not recommended. Since both daemons access the same system resources and execute similar actions, this might lead to malfunction.

Setup

In order to start DSBMD at boot time, add the following line to your /etc/rc.conf:
dsbmd_enable="YES"
Depending on your needs, install the FreeBSD ports fusefs-exfat, fusefs-gphotofs, fusefs-ntfs, fusefs-simple-mtpfs, fusefs-ext2, fusefs-hfsfuse, and fusefs-lkl. DSBMD comes with predefined commands in dsbmd.conf that use these ports to mount the corresponding filesystems.

Connecting to DSBMD

Members of the wheel and operator group are allowed to connect to DSBMD if not configured otherwise.

Mounting as regular user

If you want DSBMD to mount storage devices as regular user (default) who initiated the mount command, set

usermount = true
in dsbmd.conf, and set the sysctl variable vfs.usermount to 1:
sysctl vfs.usermount=1
To make this setting permanent, add
vfs.usermount=1
to /etc/sysctl.conf

Users of DSBMD<1.8 have to add their username to the operator group in order to be able to mount FUSE filesystems:
# pw groupmod operator -m yourusername

Automount

Configure DSBMD for mounting as regular user (see above). This will allow you to unmount automounted media without special privileges. Install sysutils/dsbmc-cli and start
dsbmc-cli -a
manually as regular user, or add the command
dsbmc-cli -a&
to your shell's rc file, or to your window manager's autostart file.

Download

Download DSBMD