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.
# cd /usr/ports/sysutils/dsbmd && make install distclean
# tar xf dsbmd-1.10.tgz && cd dsbmd-1.10 && make installor check out the most recent code on GitHUB
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.
Members of the wheel and operator group are allowed to connect to DSBMD if not configured otherwise.
If you want DSBMD to mount storage devices as regular user (default) who initiated the mount command, set
usermount = truein dsbmd.conf, and set the sysctl variable vfs.usermount to 1:
sysctl vfs.usermount=1To make this setting permanent, add
# pw groupmod operator -m yourusername
dsbmc-cli -amanually as regular user, or add the command
dsbmc-cli -a&to your shell's rc file, or to your window manager's autostart file.