From owner-freebsd-questions@FreeBSD.ORG Wed Jan 9 06:29:22 2008 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 5B48D16A41A for ; Wed, 9 Jan 2008 06:29:22 +0000 (UTC) (envelope-from andy.elvey@paradise.net.nz) Received: from smtp5.clear.net.nz (smtp5.clear.net.nz [203.97.33.68]) by mx1.freebsd.org (Postfix) with ESMTP id 1552E13C465 for ; Wed, 9 Jan 2008 06:29:22 +0000 (UTC) (envelope-from andy.elvey@paradise.net.nz) Received: from [203.97.97.11] (203-97-97-11.cable.telstraclear.net [203.97.97.11]) by smtp5.clear.net.nz (CLEAR Net Mail) with ESMTP id <0JUD00L6A60VJ020@smtp5.clear.net.nz> for freebsd-questions@freebsd.org; Wed, 09 Jan 2008 19:29:21 +1300 (NZDT) Date: Wed, 09 Jan 2008 19:30:14 +1300 From: Andy Elvey In-reply-to: To: freebsd-questions@freebsd.org Message-id: <478469F6.2080505@paradise.net.nz> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit References: <478338F3.4080202@paradise.net.nz> User-Agent: Thunderbird 1.5.0.7 (X11/20061027) Subject: Success! ( was - can't mount USB key as user ) 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: Wed, 09 Jan 2008 06:29:22 -0000 usleepless@gmail.com wrote: > hmmm, freebsd.org seems to be broken for me.... > > - man devfs.rules > > - create /etc/devfs.rules: ( substitute wheel for the group you want ) > > [localrules=10] > add path 'da*s*' mode 0660 group wheel > > - append to /etc/rc.conf: > > devfs_system_ruleset="localrules" > > - make sure the dir you are mounting on is owned by the user who > issues the mount command. > > - make sure vfs.usermount=1 > > - reboot after changing devfs.rules & rc.conf > > worked for me, let us know if it worked for you. > > regards, > > usleep > Hi again - Success! I can now mount USB devices as a user - thanks very much for your help usleep! One of the things that helped (as it usually does ;) ) was having a careful re-read of the docs for USB devices. When I did that, I found that for some silly reason, instead of having 'da*' in my /etc/devfs.rules file, I had 'da*s*' . ( Argh..... applies face firmly to keyboard..... ). Anyway, that now works perfectly. I have more good news. The above stuff was for my USB key. I also have an external USB hard-drive (with the Linux ext2 filesystem on it). When I tried that, at first it didn't work (not surprisingly). A quick search on the net gave me a page that mentioned "kldload' (which I've never heard of - anyway, as I thought, it loads modules into the kernel). The example given was for reiserfs, but I tried (as su) "kldload ext2fs" and then (as normal user) "mount -t ext2fs /dev/da0s1 /mnt/andy" and it worked! Ahh... now I can get into the thing I've really been looking forward to - pf :-) . That should probably have me being nervous, but it doesn't. I've already done a lot of reading-up on it - it sounds great, and you've got to have a heap of respect for the guy who wrote it. I've already found out about pftop and so on, so that should come in handy.... Bye for now - - Andy