cleaning /usr/obj before copying it to USB key

Matthias Apitz guru at unixarea.de
Sat Jun 9 17:55:44 UTC 2012


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 at 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


More information about the freebsd-hackers mailing list