zentara wrote:
Hi, I am setting up a raid array using the Software-RAID-HOWTO.
In the section "Root Filesystem on RAID" he explains how to copy a working filesystem to a new raid array. The commands are:
cd / find . -xdev | cpio -pm /mnt/newroot
What is going on in that command?
Does anyone else have a favorite command to do this function, which may be easier to remember? Why didn't he use dd?
Thanks for any insight.
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
It is never wise to copy a filesystem while it is still in business and never do that with "dd" under those circumstances. If you use the normal (ext2) filesystem, you better do it with the dump and restore programs, which are used for backup purposes. Mount the new empty filesystem lets say on /mnt cd /mnt dump 0f - /dev/<your source disk> | restore rf - And if you want to be very safe, do in in single use mode. Minze Broersma -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq