Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Jan 2009 13:44:48 -0500
From:      Lowell Gilbert <freebsd-questions-local@be-well.ilk.org>
To:        Ramiro Caso <misha_78@hotmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Cannot perform user mounts after upgrade
Message-ID:  <44priholzz.fsf@be-well.ilk.org>
In-Reply-To: <BAY102-W171EBA042719112EF65F0AE1D30@phx.gbl> (Ramiro Caso's message of "Sun\, 18 Jan 2009 22\:19\:59 -0200")
References:  <BAY102-W171EBA042719112EF65F0AE1D30@phx.gbl>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
Ramiro Caso <misha_78@hotmail.com> writes:

> I can't perform user mounts for my pendrive, and I used to be able to, before
> making an upgrade. Moreover, user mounts for both /dev/cd0 and /dev/fd0 are
> still operational. Root mounts are possible, but it's doesn't strike me as good
> practice, and it is a little bit of an annoyance. I need help, at least a hint
> in some direction or other, because at this point I'm clueless.
>
> I'm running FreeBSD 7.1-RELEASE-p2, GENERIC kernel, i386. I just did a major
> ports updating, including perl-5.8.8 ==> perl-5.8.9. I ran the
> perl-after-upgrade script, and warned me about possible problems with
> /usr/local/sbin/snmpd and /usr/local/sbin/snmptrapd, but nothing else. I also
> recently installed /usr/ports/misc/compat5x, among other ports. I have some
> security and related ports installed, but they never caused problems before.
>
> The command I used is the expected one:
>
>   % mount -t msdosfs /dev/da0s1 ~/media/pendrive
>
> Now it gives the following (quite uninformative) error:
>
>   mount_msdosfs: /dev/da0s1: : Operation not permitted
>
> Strangely enough, a user mount with a read-only option works just fine:
>
>   % mount -o ro -t msdosfs /dev/da0s1 ~/media/pendrive
>
> The mount point still has the same ownership (me) and permissions (755) as
> before. Both /etc/devfs.rules, /etc/rc.conf and /etc/sysctl.conf have the
> relevant lines for allowing user mounts, namely:
>
> /etc/sysctl.conf    ==>  vfs.usermount=1
> /etc/devfs.rules    ==>  [localrules=10]
>                          add path 'da*s*' mode 0660 group usb
> /etc/rc.conf        ==>  devfs_system_ruleset="localrules"
>
> I don't recall this being necessary, but I also have devd enabled in rc.conf,
> although with no special rules for umass in devd.conf. Needless to say, I belong
> to group usb. This configuration worked before just fine. Any ideas?

You certainly always needed permissions on a device to be able to mount
it.  For a device already present at boot time, you would need an entry
in devfs.rules.  For a device plugged in later, you would instead need
devd to know how to handle it.

-- 
Lowell Gilbert, embedded/networking software engineer, Boston area
		http://be-well.ilk.org/~lowell/



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?44priholzz.fsf>