From owner-freebsd-questions@FreeBSD.ORG Mon May 26 04:41:01 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 CE0581065686 for ; Mon, 26 May 2008 04:41:01 +0000 (UTC) (envelope-from parish@magichamster.com) Received: from jedburgh.just4dns.com (jedburgh.just4dns.com [78.129.134.130]) by mx1.freebsd.org (Postfix) with ESMTP id B93738FC23 for ; Mon, 26 May 2008 04:41:00 +0000 (UTC) (envelope-from parish@magichamster.com) Received: from [86.153.243.228] (helo=movens.plus.com) by jedburgh.just4dns.com with esmtp (Exim 4.68) (envelope-from ) id 1K0UVu-0006dK-F9 for freebsd-questions@freebsd.org; Mon, 26 May 2008 05:40:50 +0100 Received: from [10.10.1.4] (redshift [10.10.1.4]) by postbag.localdomain (Postfix) with ESMTP id B1B271CC32 for ; Mon, 26 May 2008 05:40:51 +0100 (BST) Message-ID: <483A3F52.9040907@magichamster.com> Date: Mon, 26 May 2008 05:40:50 +0100 From: Mark Ovens User-Agent: Thunderbird 2.0.0.14 (X11/20080524) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4839ADF8.7090805@telenix.org> In-Reply-To: <4839ADF8.7090805@telenix.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Fuzioned-MailScanner-Information: Please contact the ISP for more information X-MailScanner-ID: 1K0UVu-0006dK-F9 X-Fuzioned-MailScanner: Not scanned: please contact your Internet E-Mail Service Provider for details X-Fuzioned-MailScanner-SpamCheck: X-Fuzioned-MailScanner-From: parish@magichamster.com X-Spam-Status: No X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - jedburgh.just4dns.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - magichamster.com X-Source: X-Source-Args: X-Source-Dir: Subject: Re: Stick memory USB 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: Mon, 26 May 2008 04:41:01 -0000 Chuck Robey wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > nej ALL wrote: >> Hi, >> >> I'm new on FreeBSD not on unix. >> >> I want to mount automatically an usb-stick memory into my machine ? >> I get some problems. >> >> Need help. > > You're trying with your devfs stuff to create the file, but you have to realize > it's a device representing a filesystem, not just a file. What you want to read > is the mount and fstab man pages, mount to find out how to mount your memory > stick, and fstab to figure out how to get it to happen automatically. The devfs > stuff is all mistaken, I think, you want that when you want to change > permissions or make softlinks of devices, not to create them in the first place, > least that's how I';'ve always used it, and I know very well that the correct > line in /etc/fstab WILL automount your memory stick. > Are you sure Chuck? The devfs rules stuff is to allow non-root users to mount removable media isn't it? I followed the instructions at http://gphoto.sourceforge.net/doc/manual/permissions-usb.html - the FreeBSD-specific stuff is near the bottom of the page - but I have *exactly* the same problem as the OP with my mobile phone. It is detected as da2 and da3 (phone and memory stick - mine's a SCSI system so da0 and da1 are the HDDs) but only the top-level device nodes (/dev/da[23]) are created. I can try to mount /dev/da3 until I'm blue in the face and it always fails but as soon as I attempt to mount /dev/da3s1 it fails first time but succeeds the second time because the /dev/da3s1 device node gets created on the first (failed) mount attempt. It doesn't matter whether I have an entry in /etc/fstab for /dev/da3s1 or not, it stills fails, but creates the device, on the first attempt. Maybe something has changed? The page I linked to above refers to FreeBSD 5 but I'm running 6.3-STABLE. Regards, Mark