find . -xdev Prints a list of file names in the current directory (.) without descending other file systems (usr, var, home, etc). You need to cd to / so that the find output will be relative, i.e. not start with a /. For instance, if you want to copy the usr filesystem, you would use find usr -xdev (*without* the /) The pipe | connects this to: cpio -pm /mnt/newroot Reads a list of file names to copy to another path (p) withhout changing modification (m) times of the files. dd will only work for filesystems if they are identical - could be dangerous to use in your case. Piet le Roux 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
-- 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