From owner-freebsd-questions@FreeBSD.ORG Sun Jul 8 09:54:55 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 C23061065672 for ; Sun, 8 Jul 2012 09:54:55 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id 807FC8FC08 for ; Sun, 8 Jul 2012 09:54:55 +0000 (UTC) Received: from r56.edvax.de (port-92-195-60-31.dynamic.qsc.de [92.195.60.31]) by mx02.qsc.de (Postfix) with ESMTP id 89CB027CA5; Sun, 8 Jul 2012 11:54:54 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id q689srBk001919; Sun, 8 Jul 2012 11:54:54 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Sun, 8 Jul 2012 11:54:53 +0200 From: Polytropon To: Wojciech Puchar Message-Id: <20120708115453.8bd9b271.freebsd@edvax.de> In-Reply-To: References: <7E.91.25131.DEDA8FF4@smtp01.insight.synacor.com> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Thomas Mueller , 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 Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jul 2012 09:54:55 -0000 On Sun, 8 Jul 2012 09:49:30 +0200 (CEST), Wojciech Puchar wrote: > >> 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. An addition: You can label the a partition (e. g. /dev/da0a) or use its UFSID in /etc/fstab, so you don't depend on the exact device name, which in turn depends on the detection order of mass storage which is hard to predict. I'd like to recommend reading for details: http://www.wonkity.com/~wblock/docs/html/disksetup.html and http://www.freebsd.org/doc/handbook/geom-glabel.html -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...