Neil Bothwick wrote:
On Tue, 15 Jul 2008 09:43:33 +0300, Nikos Chantziaras wrote:
'cp -a' your existing / to your target / (except /dev, /sys and /proc).
If you mounted your target / as /root/target, you do:
cp -a /usr /root/hd
(repeat this for all directories in your current /
*EXCEPT* /dev, /proc, /sys and /lost+found)
mkdir /root/hd/dev
mkdir /root/hd/proc
mkdir /root/hd/sys
Or replace all this with one command
cp -al / /root/hd
I assume you meant 'cp -ax' :P
That's indeed faster than typing everything by hand and I forgot about it ;P
or, my preference
rsync -ax / /root/hd/
Well, /root/hd is empty so there's nothing to win with rsync other than
it being slower than cp. But it does the job too, anyway.
--
gentoo-user@lists.gentoo.org mailing list