From owner-freebsd-questions@FreeBSD.ORG Fri Oct 16 22:15:47 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 675B2106566C for ; Fri, 16 Oct 2009 22:15:47 +0000 (UTC) (envelope-from af.gourmet@videotron.ca) Received: from relais.videotron.ca (relais.videotron.ca [24.201.245.36]) by mx1.freebsd.org (Postfix) with ESMTP id 3EEFB8FC15 for ; Fri, 16 Oct 2009 22:15:47 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=UTF-8 Received: from [192.168.0.51] ([96.21.103.185]) by VL-MO-MR004.ip.videotron.ca (Sun Java(tm) System Messaging Server 6.3-4.01 (built Aug 3 2007; 32bit)) with ESMTP id <0KRM007AYOIAUZ10@VL-MO-MR004.ip.videotron.ca> for freebsd-questions@freebsd.org; Fri, 16 Oct 2009 18:15:46 -0400 (EDT) Message-id: <4AD8F094.4060309@videotron.ca> Date: Fri, 16 Oct 2009 18:15:48 -0400 From: PJ User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) To: Polytropon References: <4AD79FE4.6010109@videotron.ca> <20091016012610.99efbf26.freebsd@edvax.de> <4AD7B8F0.20903@videotron.ca> <20091016021759.f478642a.freebsd@edvax.de> In-reply-to: <20091016021759.f478642a.freebsd@edvax.de> Cc: freebsd-questions@freebsd.org Subject: Re: usb key problem 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: Fri, 16 Oct 2009 22:15:47 -0000 Polytropon wrote: > On Thu, 15 Oct 2009 20:06:08 -0400, PJ wrote: > >> Anyway, I found the solution on the web... couldn't belive it was that >> simple: just ignore the crap spewed out on the screen and just mount iit >> as you would any other disk. >> # mount -t msdosfs /dev/da0s1 /mnt >> and that's it >> > > Additionally, when you use mount_msdosfs, you can specify > masks (-m and -M) in order not to have +x attributes on all > the files; the MS-DOS file system on the stick could give > you unwanted results, for example if you have a .jpg file > on the stick and want to open it (with the default app for > .jpg file type), the system will try to execute it. > > > > >> Now to see how I can use it to restore stuff. :-D >> > > If you want to use the stick for FreeBSD operations, why not > give it a real file system (i. e. UFS) instead of some old > FAT? You can simply > > # newfs /dev/da0 > > and then access it in the standard way: > > # mount /dev/da0 /mnt > > See that file owner:group, permissions and flags are now > supported, and files that are not supposed to be executables > don't have +x attribute (as in opposite to FAT / msdosfs). > > You could even add an entry in /etc/fstab like this: > > /dev/da0s1 /media/stick msdosfs rw,noauto,noatime 0 0 > > or, for proper UFS: > > /dev/da0 /media/stick ufs rw,noauto,noatime 0 0 > > Keep in mind that when using device names, it's a matter of > in which sequence device are detected that result in the > corresponding device name (da0, da1 etc.); using labels is > the more elegant way here. > How do you mean, using labels; could you illustrate or clarify? for the above, I mean. I'm trying to set up labels for my normal systems with glabel and struggling...