TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TCLUG:17626] Right way to move an installation.



On Fri, 12 May 2000, BIll Layer wrote:

> Quick question: What is the correct way to mirror a Linux installation (or a
> partition for that matter) to another partition? For instance, if one is
> installing a new hard drive.. 

-=-

mkdir /newusr
mount /dev/newpartition /newusr
(cd /usr && tar cf - .) | (cd /newuser && tar xf -)
mv /usr /oldusr
mv /newusr /usr
rm -rf /oldusr

-=-

Worked for me, upon several occasions, with several different distributions.

-David