From owner-freebsd-questions@FreeBSD.ORG Mon Jul 9 05:47:07 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 9254C106564A for ; Mon, 9 Jul 2012 05:47:07 +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 F17428FC14 for ; Mon, 9 Jul 2012 05:47:06 +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 q695l2vo023119; Mon, 9 Jul 2012 07:47:02 +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 q695l1l2023116; Mon, 9 Jul 2012 07:47:02 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Mon, 9 Jul 2012 07:47:01 +0200 (CEST) From: Wojciech Puchar To: Thomas Mueller In-Reply-To: <47.B3.06836.B9F4AFF4@smtp02.insight.synacor.com> Message-ID: References: <47.B3.06836.B9F4AFF4@smtp02.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]); Mon, 09 Jul 2012 07:47:02 +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: Mon, 09 Jul 2012 05:47:07 -0000 >> file system" (as you said without partitions, and I'll take >> that literally): You can use tar, "the universal file system >> that isn't a file system" to write data to the USB stick. > which is best in USB pendrive wear and speed point of view. pendrive's flash translation layers are just awful, only linear writes works well. >> Writing stuff: > >> # tar cf /dev/da0 /my/files i would recomment tar -b 128 -cf /dev/da0 /my/files > Might > # tar xf /dev/da0 > work in other BSDs or even other (quasi-)Unixes including Linux, using the appropriate device name where applicable in place of da0? yes it will run fine under linux, openbsd, netbsd, slowlaris etc. > > While that particular construst could probably not be booted, it is possible to boot from a floppy or image file that does not contain a file system. If you need bootable pendrive then you have to use disklabel and make filesystem.