From owner-freebsd-questions@FreeBSD.ORG Sun Jul 8 07:49:37 2012 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 3D806106566C for ; Sun, 8 Jul 2012 07:49:37 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [89.206.35.99]) by mx1.freebsd.org (Postfix) with ESMTP id A1EFE8FC15 for ; Sun, 8 Jul 2012 07:49:36 +0000 (UTC) Received: from wojtek.tensor.gdynia.pl (localhost [127.0.0.1]) by wojtek.tensor.gdynia.pl (8.14.5/8.14.5) with ESMTP id q687nUMm001583; Sun, 8 Jul 2012 09:49:30 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.5/8.14.5/Submit) with ESMTP id q687nU8m001580; Sun, 8 Jul 2012 09:49:30 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Sun, 8 Jul 2012 09:49:30 +0200 (CEST) From: Wojciech Puchar To: Thomas Mueller In-Reply-To: <7E.91.25131.DEDA8FF4@smtp01.insight.synacor.com> Message-ID: References: <7E.91.25131.DEDA8FF4@smtp01.insight.synacor.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.7 (wojtek.tensor.gdynia.pl [127.0.0.1]); Sun, 08 Jul 2012 09:49:31 +0200 (CEST) Cc: Carmel , Polytropon , freebsd-questions@freebsd.org Subject: Re: Format a USB flash drive using gpart 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: Sun, 08 Jul 2012 07:49:37 -0000 >> Magdeburg, Germany > > I have used gpart to partition a USB flash drive into FreeBSD boot partition, root partition and swap partition. making swap partition on USB pendrive is at least stupid. if you won't swap at all - wasted space. If you will it would be so slow and wear USB pendrive so quickly that you certainly don't want this. bsdlabel -w device bsdabel -e device and make "a" partition start from 0 to end, 4.2BSD newfs it bsdlabel -B and put everything in one partition. make heavy use of tmpfs, make sure noatime is put in fstab to limit writes to pendrive.