From owner-freebsd-questions@FreeBSD.ORG Tue Jan 20 18:44:53 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 38C9F10656D9 for ; Tue, 20 Jan 2009 18:44:53 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail8.sea5.speakeasy.net (mail8.sea5.speakeasy.net [69.17.117.10]) by mx1.freebsd.org (Postfix) with ESMTP id 114ED8FC16 for ; Tue, 20 Jan 2009 18:44:52 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 23384 invoked from network); 20 Jan 2009 18:44:50 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail8.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 20 Jan 2009 18:44:49 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id 4859A50825; Tue, 20 Jan 2009 13:44:48 -0500 (EST) To: Ramiro Caso References: From: Lowell Gilbert Date: Tue, 20 Jan 2009 13:44:48 -0500 In-Reply-To: (Ramiro Caso's message of "Sun\, 18 Jan 2009 22\:19\:59 -0200") Message-ID: <44priholzz.fsf@be-well.ilk.org> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org Subject: Re: Cannot perform user mounts after upgrade X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jan 2009 18:44:53 -0000 Ramiro Caso 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/