adding an extra hard disk and adding space to /usr

Andriy Gapon avg at icyb.net.ua
Fri Nov 10 17:41:02 UTC 2006


on 10/11/2006 14:32 Oliver Fromme said the following:
> Aaron Burke wrote:
>  > SNIP
>  > > >    (FreeBSD 4.x)  : cd /usr; tar clpf - . | (cd /mnt; tar xvf -)
>  > > >    (FreeBSD 5.x+) : cd /usr; gtar clpf - . | (cd /mnt; gtar xvf -)
>  > > iirc tar(1) has changed in 5.3.  why do you use gtar please? is new tar
>  > > missing something?
>  > Well, technically no, but it requires more typing.
> 
> That's why I prefer to use cpio:
> 
> cd /usr; find -dx . | cpio -dump /mnt
> 
> which works on _any_ version of FreeBSD out of the box.

$ pax rw /usr /mnt
is even less typing and works on any system with POSIX-compliant
utilities :-)
Not to mention all other goodies that pax provides (I especially like -s
option).

-- 
Andriy Gapon


More information about the freebsd-stable mailing list