Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Jun 2012 19:55:42 +0200
From:      Matthias Apitz <guru@unixarea.de>
To:        freebsd-hackers@freebsd.org
Subject:   Re: cleaning /usr/obj before copying it to USB key
Message-ID:  <20120609175542.GA1108@tiny>
In-Reply-To: <79C2B8B9-9A7E-4793-AE03-FE387BB1694B@kientzle.com>
References:  <20120609143521.GA3940@tinyCurrent> <79C2B8B9-9A7E-4793-AE03-FE387BB1694B@kientzle.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <guru@unixarea.de> - 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120609175542.GA1108>