From owner-freebsd-questions@FreeBSD.ORG Tue Nov 11 23:04:18 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 5F9D01065670 for ; Tue, 11 Nov 2008 23:04:18 +0000 (UTC) (envelope-from gnemmi@gmail.com) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.25]) by mx1.freebsd.org (Postfix) with ESMTP id 098F98FC14 for ; Tue, 11 Nov 2008 23:04:17 +0000 (UTC) (envelope-from gnemmi@gmail.com) Received: by qw-out-2122.google.com with SMTP id 9so101983qwb.7 for ; Tue, 11 Nov 2008 15:04:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:references:in-reply-to:mime-version:content-disposition :cc:content-type:content-transfer-encoding:message-id; bh=ICXQ+xY31C8YJGIPapBTHnKfhhmu2tZwGiycQlgyztw=; b=kLP+BmdJVoCqaepnKl2VlAWaPeKlBqqv4EKk8S9vhg2qnvRQENUXxSHx61CVF02i/w KFucicuKu9GPgyr3m28bL5pCd/zZd3/qiQmxCPc45UUzSRCiRwo6qYrSt7WPSE/bZIQ+ dC1b6MZjFESCB4hXKPMgv/3BfLjeZwwsBCVms= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :content-disposition:cc:content-type:content-transfer-encoding :message-id; b=HSiA5uGl4+DR/qbSwQnTne8jCC40/iZf9iQlHpo9TthZqUresb/wyqtm9lAmcpRYQk JjcudFeD/hn/Sb9fwBlbSGEqgIovno39n69ZNF+OFB6wWwtMp8r/CWHSRJT9ihYigEX/ 1zz0xO3DCx7Bk+Kuw+AFnt1uPLbsO4Q0q+RLU= Received: by 10.215.38.10 with SMTP id q10mr9110227qaj.264.1226444657210; Tue, 11 Nov 2008 15:04:17 -0800 (PST) Received: from ?192.168.1.2? ([190.177.222.241]) by mx.google.com with ESMTPS id 33sm10893199yxr.3.2008.11.11.15.04.15 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 11 Nov 2008 15:04:16 -0800 (PST) From: Gonzalo Nemmi To: freebsd-questions@freebsd.org Date: Tue, 11 Nov 2008 21:04:13 -0200 User-Agent: KMail/1.9.10 References: <20081111192900.GA5398@icarus.home.lan> In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200811112104.13257.gnemmi@gmail.com> Cc: Pieter Donche Subject: Re: FreeBSD and USBmemorystick 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, 11 Nov 2008 23:04:18 -0000 On Tuesday 11 November 2008 5:39:02 pm Pieter Donche wrote: > On Tue, 11 Nov 2008, Jeremy Chadwick wrote: > > On Tue, Nov 11, 2008 at 08:25:51PM +0100, Pieter Donche wrote: > >> If I insert a USB memory stick in my laptop with FreeBSD 7.0 nothing > >> happens. On the same laptop in the SuSE 10.1 partition, the same USB > >> stick appears in Konqueror under Storage Media and is ready to use) > >> In FreeBSD, Konqueror shows nothing under Storage Media. > >> Is this normal? > > > > What shows up in your kernel message log (outside of X, usually on the > > first virtual console) when you insert the stick? It should show a > > umass device being added, then a daX device being added. > > There are indeed messages: > umass0: on uhub4 > da0: at umass-sim0 ... > .. > da0: 60 Mb (OK, it is a 64 Mb key) > GEOM_LABEL: Label for provider da0s1 is msdosfs/USB MEMORY > > also when unplugging, some messages > > $ ls -la /dev/da0s1 > shows only the character device line > OK then .. let's get it to work. 1) Open /etc/devfs.rules and add the following lines: [system=10] add path 'da*' mode 0666 (Edit that line to suit your needs) 2) Open /etc/rc.conf and add the following line devfs_system_ruleset="system" (Edit that line to suit your needs) 3) Create a mountpoint for your pendrive mkdir -p ~/mnt/pen (Edit that line to suit your needs) 4) Open /etc/fstab and add a line like this one /dev/da0s1 /home/your_user_name/mnt/pen msdosfs rw,noauto 0 0 (Edit that line to suit your needs) Reboot Done ... Now you can create a "Link to device" on your KDE desktop and make it point to your /dev/da0s1. Insert your pendrive and click on your newly created "pendrive" device link. Remember to umount it before unplug it Otherwise .. get ready to wrestle hal/dbus and policykit ... Regards -- Blessings Gonzalo Nemmi