From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 9 15:00:12 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 427AC1065673 for ; Sat, 9 Jun 2012 15:00:11 +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 A4F278FC08 for ; Sat, 9 Jun 2012 15:00:05 +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 q59EximJ012411; Sat, 9 Jun 2012 16:59:48 +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 q59Exctg012342; Sat, 9 Jun 2012 16:59:42 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Sat, 9 Jun 2012 16:59:38 +0200 (CEST) From: Wojciech Puchar To: Matthias Apitz In-Reply-To: <20120609143521.GA3940@tinyCurrent> Message-ID: References: <20120609143521.GA3940@tinyCurrent> 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]); Sat, 09 Jun 2012 16:59:50 +0200 (CEST) Cc: freebsd-hackers@freebsd.org Subject: Re: cleaning /usr/obj before copying it to USB key X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Jun 2012 15:00:12 -0000 > my problem is that the both 'cp -Rp ...' commands takes many hours (12 > and six hours) because they are transferring a lot(!!!) of small files; I unless you want to kill you USB drive quickly (yes, it simulates disk THAT badly) then create image file on your hard disk exactly equal to your USB , use mdconfig, make all you need and then write with dd.