Yes, but no need, automount mounts it automatically. That's my solution, may not work for OP.
pkg info -aD|less
(search for mount with the slash ("/") key) you'll find what you need. Typically vfs.usermount=1
in sysctl.conf(5) ( service sysctl reload
) will enable user mounts automagically via HAL (hald(8), service hald enable
& service hald restart
). Obviously, hald(8) must be up & running. su(do)
to root, and in the operator group because that is typically used to grant access to devices; traditionally, users in this group were the ones to take backups. service devfs restart
.FYI: Vermaden's "automount" has never failed me and is dead simple to install and use. Availablee here: https://github.com/vermaden/automount
It's just a script and he includes instructions so I actually don't use the port or package, just the GitHub version.
Caveat: I use this for thumb drives so can't speak to any other type of drive. I could never get sysutils/dsbmd to work at all.
chmod 666 xyz
: Don't do that! Period. Any other user can write to your files, e.g. a service (daemon) gone wild. You don't want that, right?! fstat -fm /media/* | less
(or most(1) instead of less(1)). The 3rd column show the PID of the respective program. Close the program, or kill <pid>
it. Many people like the advanced features of lsof(8) (list open files), you can install it and use that instead of the standard fstat(1). pkg install vim
& gview /usr/local/sbin/automount &
to read about the options of vermaden's automount, and of course also gvim /usr/local/etc/automount.conf.sample &
& save it to /usr/local/etc/automount.conf.But why don't justcd /usr/local/etc and cat automount.conf.sample and copy the files contents to a new file by;
ee automount.conf file and place the sample content into the new automount file
cp automount.conf.sample automount.conf
?Good Point! I'm having senior moments and simply did not remember. Thanks for reminding me!!But why don't justcp automount.conf.sample automount.conf
?