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.3

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.3.tgz && cd dsbmd-1.3 && 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, and fusefs-ext2. For mounting HFS+ volumes, install hfsfuse. DSBMD comes with predefined commands in dsbmd.conf that use 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
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

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