From owner-freebsd-questions@FreeBSD.ORG Tue Nov 11 23:54:23 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 491C01065673 for ; Tue, 11 Nov 2008 23:54:23 +0000 (UTC) (envelope-from gnemmi@gmail.com) Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.30]) by mx1.freebsd.org (Postfix) with ESMTP id F1B6D8FC19 for ; Tue, 11 Nov 2008 23:54:22 +0000 (UTC) (envelope-from gnemmi@gmail.com) Received: by yx-out-2324.google.com with SMTP id 8so79114yxb.13 for ; Tue, 11 Nov 2008 15:54:22 -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:cc:references:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:message-id; bh=5TssWcD7X5BUWgDRBTNJSrp1/VHuuw8pwbA0w+bT56w=; b=Vp+0lVp/oydcQRFzaAwVjzjmh4IgFYIdAEfeoctzYTg09KGSwLLnx0xKygtz8ZrNhc H7yNitpnepDuLFy78shBoAbGW6Mly9wJiQtxxwT11e8bZzy564we+4+e/eFkRyUyA/WA t2c0IFgSFamQBggCDV0hRJ3ok+Gcihg3+jzuo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:cc:references:in-reply-to :mime-version:content-type:content-transfer-encoding :content-disposition:message-id; b=gqZAPRiZhXyBY8kqPcbj/PWt+tISTthxggY1ZeVZWF1cbl47BBV/NoyCYxT8VaPTGC st9Lipdi155ndAguGQpm7ImIst1NBiFp6bbBTXoJnK8Dn+JtB1cXj1mJ29U3tEWwwXuf GmVSWCTPKX9GwYFojFi5qeY/LHFBkLvgZAT1Q= Received: by 10.90.120.14 with SMTP id s14mr7810225agc.20.1226447059343; Tue, 11 Nov 2008 15:44:19 -0800 (PST) Received: from ?192.168.1.2? ([190.177.222.241]) by mx.google.com with ESMTPS id 38sm10933486aga.4.2008.11.11.15.44.16 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 11 Nov 2008 15:44:18 -0800 (PST) From: Gonzalo Nemmi To: Roland Smith Date: Tue, 11 Nov 2008 21:44:14 -0200 User-Agent: KMail/1.9.10 References: <200811112104.13257.gnemmi@gmail.com> <20081111231736.GA41416@slackbox.xs4all.nl> In-Reply-To: <20081111231736.GA41416@slackbox.xs4all.nl> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200811112144.14343.gnemmi@gmail.com> Cc: Pieter Donche , freebsd-questions@freebsd.org 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:54:23 -0000 On Tuesday 11 November 2008 9:17:36 pm Roland Smith wrote: > On Tue, Nov 11, 2008 at 09:04:13PM -0200, Gonzalo Nemmi wrote: > > 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 > > It's better to use this device, since it won't change when you plug in > an extra USB stick/drive. > > > > 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 > > add path 'msdosfs/*' mode 0666 > > I prefer 'mode 0660 group usb' in principle, but that is personal. Sure thing. But it adds an extra layer of complexity (I mean, he would have to be a member of the "usb" group or even create it if it doesn't exist) and I just wanted to be raw simple and to the core. Now thanks to you reply, Pieter has more info on how to get around this :) > > (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 > > /dev/msdosfs/USB\ MEMORY /home/your_user_name/mnt/pen msdosfs rw,noauto 0 > 0 > > > (Edit that line to suit your needs) > > > > Reboot > > > > Done ... > > I prefer to have a script do the mounting, so I can add some sane flags > to mount_msdosfs that you cannot put in options/fstab AFAICT, like > '-m 644 -M 755 -l -o noatime -o sync -o noexec -o nosuid'. > > Roland There you go Pieter ... a simple example (mine) and a more in-depth one (Roland's) on how to get your pendrive to work :) Thanks for improving on my simple example Roland =D Regards -- Blessings Gonzalo Nemmi