From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 9 17:55:44 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 B0C5C1065673 for ; Sat, 9 Jun 2012 17:55:44 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34]) by mx1.freebsd.org (Postfix) with ESMTP id 68F2E8FC16 for ; Sat, 9 Jun 2012 17:55:44 +0000 (UTC) Received: from [82.113.121.214] (helo=tiny.Sisis.de) by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1SdPt0-0006O7-ER for freebsd-hackers@freebsd.org; Sat, 09 Jun 2012 19:55:43 +0200 Received: from tiny.Sisis.de (localhost [127.0.0.1]) by tiny.Sisis.de (8.14.5/8.14.3) with ESMTP id q59HthW9001151 for ; Sat, 9 Jun 2012 19:55:43 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by tiny.Sisis.de (8.14.5/8.14.3/Submit) id q59Htg3k001150 for freebsd-hackers@freebsd.org; Sat, 9 Jun 2012 19:55:43 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: tiny.Sisis.de: guru set sender to guru@unixarea.de using -f Date: Sat, 9 Jun 2012 19:55:42 +0200 From: Matthias Apitz To: freebsd-hackers@freebsd.org Message-ID: <20120609175542.GA1108@tiny> References: <20120609143521.GA3940@tinyCurrent> <79C2B8B9-9A7E-4793-AE03-FE387BB1694B@kientzle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <79C2B8B9-9A7E-4793-AE03-FE387BB1694B@kientzle.com> X-Operating-System: FreeBSD 10.0-CURRENT r226986 (i386) User-Agent: Mutt/1.5.21 (2010-09-15) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 82.113.121.214 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 Reply-To: Matthias Apitz 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 17:55:44 -0000 El día Saturday, June 09, 2012 a las 08:57:33AM -0700, Tim Kientzle escribió: > On Jun 9, 2012, at 7:35 AM, Matthias Apitz wrote: > > > > To use the (booted) USB key later to install other laptops or netbooks I > > enrich the key with /usr/src and /usr/obj as: > > > > # cd /usr > > # cp -Rp src /mnt/usr > > # cp -Rp obj /mnt/usr > > > > 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; > > As someone else pointed out, flash drives are pretty slow > when making a lot of small writes. > > You can speed things up a lot by creating the image locally > then copying the image to USB. Here are parts of a shell > script I've been using for something similar: > ... Thanks for your hints, Wojciech and Tim; the USB key in question is of 16 marketing GByte; will this work as well with mdconfig or is there some limit? Thanks again matthias -- Matthias Apitz e - w http://www.unixarea.de/ UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370) UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5