Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Apr 2006 15:07:03 GMT
From:      Maxim Konovalov <maxim@FreeBSD.org>
To:        jema@sendmail.ru, maxim@FreeBSD.org, freebsd-i386@FreeBSD.org
Subject:   Re: i386/87877: non-root mount operation fails
Message-ID:  <200604141507.k3EF7387059942@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604141507.k3EF7387059942>