From owner-freebsd-questions@FreeBSD.ORG Tue Nov 27 16:16:14 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8B9D53C6 for ; Tue, 27 Nov 2012 16:16:14 +0000 (UTC) (envelope-from ralf.mardorf@rocketmail.com) Received: from nm23-vm4.bullet.mail.ukl.yahoo.com (nm23-vm4.bullet.mail.ukl.yahoo.com [217.146.176.134]) by mx1.freebsd.org (Postfix) with ESMTP id ADFC48FC13 for ; Tue, 27 Nov 2012 16:16:12 +0000 (UTC) Received: from [217.146.183.208] by nm23.bullet.mail.ukl.yahoo.com with NNFMP; 27 Nov 2012 16:13:48 -0000 Received: from [217.146.182.88] by tm1.bullet.mail.ukl.yahoo.com with NNFMP; 27 Nov 2012 16:13:48 -0000 Received: from [127.0.0.1] by smtp151.mail.ukl.yahoo.com with NNFMP; 27 Nov 2012 16:13:48 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rocketmail.com; s=s1024; t=1354032828; bh=ohpFg0C9BRK0WGBOv2sjr2jYDkuAz7oYgGEGcOcUzVY=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Message-ID:Subject:From:To:Date:In-Reply-To:References:Content-Type:X-Mailer:Mime-Version:Content-Transfer-Encoding; b=j+/O61UYXepGrQnegzOwphwwD/8bR/PTh3ZR3D96zQyxOnnOgOg/K0/ZIfxIqJ58zJlFL15HzdKDjY6RGk0AxIDlYFJagTbFQcAli7dWRfTowZYeBXSs6tlAe/OGDvAnOskA34oWSuXQKPTZx/mHySMQftWnkUoD+jJPNsxGyus= X-Yahoo-Newman-Id: 769460.41925.bm@smtp151.mail.ukl.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: mew4.UkVM1m5pWBSbiKkPZySvWurboAhB8Fs.Ca2wWCNXeR MRB5eiocLugPL0vTiU2zq7nNuAueMPy4IzslDkt8keQnuij716VNfzRXJZMq Ym743uqYXco4QBmRhIriZLsKi2P537gZAzaPjIaKYN.k1C5xiKjUcl_.aYPz xYX7rI5ZqXkCaWk42eQ_5kZerV_Q10Pbg45bW8EXhLmY2FCqQgBCxUjU5yiI ev3d9Xr03Y3iXc0S4X0cQq.Htoh.Hg4zGYC76E3EiZ1Hvlul6BRgWvPYdhzc PeOFJbCP5bP7pnuCOlf6W2rClen6fe3KfjTWd9CJit_Ket_ikI.8YdmGYf_0 hSYiabLYuAG63Tz_XP_JzmWLhZdu2iECkBjdmsbAtsqp2OA0C2JlFCJ7p5aM hZxyRxX6G0miZxVcTwB2AEguWrMnNr5LJTv9z1A-- X-Yahoo-SMTP: BeMCPs2swBABTJ3kAeEiC_hE0mz8jRexLddJfD8pI2j32fOacjBmXg-- Received: from [92.231.7.148] (ralf.mardorf@92.231.7.148 with login) by smtp151.mail.ukl.yahoo.com with SMTP; 27 Nov 2012 08:13:48 -0800 PST Message-ID: <1354032827.2827.57.camel@q> Subject: Re: [Bulk] Re: How to create a partition for FreeBSD 9.0? From: Ralf Mardorf To: freebsd-questions@freebsd.org Date: Tue, 27 Nov 2012 17:13:47 +0100 In-Reply-To: References: <1353795280.2662.12.camel@q> <20121124233520.7ad4b4be.freebsd@edvax.de> <1353798889.2662.46.camel@q> <20121125002717.11a61c8d.freebsd@edvax.de> <1353807268.2773.16.camel@q> <20121125131908.671f6d31.freebsd@edvax.de> <1353846552.2508.23.camel@q> <1353877782.2508.225.camel@q> <1354029192.2827.11.camel@q> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.6.0-0ubuntu3 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Nov 2012 16:16:14 -0000 On Tue, 2012-11-27 at 09:05 -0700, Warren Block wrote: > On Tue, 27 Nov 2012, Ralf Mardorf wrote: > > > All instructions failed. Is there a way to mount a linux partition or > > USB-stick and to redirect the output of the gpart commands to a log > > file? > > > > In linux after mounting a partition or usb-stick I would do it like > > that: > > > > spinymouse@q:~$ echo "$ ls -l" >> logfile > > spinymouse@q:~$ ls -l >> logfile > > Too much work. Use script(1): > $ script /tmp/session.log > $ (do a bunch of stuff) > $ exit > > And session.log will contain everything. Including control characters, > so edit it before posting. > > > So how can I mount e.g. an USB stick? > > This is in the Handbook somewhere, but a quick look didn't find it, so: > > # mount -t msdosfs /dev/da0s1 /mnt > > That assumes there is a FAT filesystem in the first partition of the > memory stick, a common setup. Please don't use NTFS. Thank you :) I use USB sticks as they are, with FAT, if I e.g. need Linux permissions, I use an archive on the USB stick. Yes, I'll edit the logfile, before posting. Indeed "script /tmp/session.log" is better, than my stupid idea. Regards, Ralf