i386/87877: non-root mount operation fails

Maxim Konovalov maxim at FreeBSD.org
Fri Apr 14 15:07:04 UTC 2006


Synopsis: non-root mount operation fails

State-Changed-From-To: open->closed
State-Changed-By: maxim
State-Changed-When: Fri Apr 14 14:47:49 UTC 2006
State-Changed-Why: 
Non-root mount works OK on several desktop system I have.  Please
ask questions in the appropriate maillists.

Basically you need (this is actually FAQ http://tinyurl.com/ns9p7):

1. As root load all filesystem specific kernel code (compiled in
the kernel, loaded as module at startup etc).

2. Put vfs.usermount=1 in /etc/sysctl.conf.

3. Make sure you are an owner of the mount point.

4. Make sure you have an approriate permissions for the device you mount.

E.g. for iPod partition I have:

/boot/loader.conf
	...
	msdosfs_load="YES"
/etc/sysctl.conf
	...
	vfs.usermount=1
/etc/fstab:
	...
	/dev/da0s2 /ipod msdos rw,noauto 0 0
/etc/devfs.rules
	...
	add path da0s* mode 660
	add path da0s* user maxim
$ ls -ld /ipod
drwxr-xr-x  3 maxim  wheel  512 Apr  1 17:52 /ipod

http://www.freebsd.org/cgi/query-pr.cgi?pr=87877


More information about the freebsd-i386 mailing list