On Wed, Apr 06, 2005 at 03:32:14PM -0400, Todd Shirk wrote:
devfs.conf only works for devices available at boot time. For devices
you can plug in at runtime you should use /etc/devfs.rules:
add path 'da*s*' mode 0666
And you should have the following in /etc/rc.conf:
The contents of devfs.rules are fed to devfs(8), so see it's manual page.
For a user to be able to use a filesystem, there are a couple of things
that need to be done:
- The sysctl variable vfs.usermount must be set to 1 (in /etc/sysctl.conf).
- The user in question must own the mount point.
I think the latter. Normally usbd(8) is notified of USB events, but in
this case it seems to get events for the umass* device, not the da*s*
device that you'll want to use. There have been people who've used a
shell-script called by usbd to figure out the connection between
umass<->da from dmesg output and then mount the filesystem, but that
doesn't do umounts. It's also complicated if you want it to work for
multiple users, unless you give it 777 permissions. You could also give
amd(8) a try.
I found that making a one-line shell script to do the mounting is much
R.F. Smith /"\ ASCII Ribbon Campaign
r s m i t h x s 4 a l l . n l \ / No HTML/RTF in e-mail
http://www.xs4all.nl/~rsmith/ X No Word docs in e-mail
public key: http://www.keyserver.net / \ Respect for open standards
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (FreeBSD)
-----END PGP SIGNATURE-----