Turns out pmount or equivalents are not needed at all. User mounting in *BSD is much simpler and easier than in Linux.
It works like this:
- You set kern.usermount to 1 in sysctl.conf
- You make sure your user is in the group that owns the device nodes you want to mount (usually "operator")
- You run dmesg to find what the disk you plugged in is detected as, then disklabel on the disk to find the partitions
- You mount the partition you want somewhere in your home directory, like so:
Code:
$ mount /dev/sd1a ~/mnt
sd1a will now be mounted to ~/mnt, and you can access whatever's on it. As long as you don't change the partition layout, you can mount the partition again whenever using the same command.
Edit: umm right, you also have to chmod the relevant nodes to get read/write access. But after that it will work.