Re: Copy entire filesystem
On Wed, 26 Aug 1998 adavis@netpci.com wrote:
[ snip ]
: My questions are, again, how to copy a filesystem but not it's linked
: directories from other drives, and, second, how to do this whole job
: successfully.
Here's how I do it.
mke2fs /dev/[newdevice]
mount /dev/[newdevice] /mnt
cd [root of old fs]
find . -xdev | cpio -padm /mnt
Now change /etc/fstab to reflect the changes, and reboot. I use cpio
because it copies device files correctly, preserves permissions
properly, and doesn't do weird things that I don't expect.
You do have to complete this step for each filesystem you wish to move.
Hope that helps,
--
Nathan Norman
MidcoNet 410 South Phillips Avenue Sioux Falls, SD
mailto:finn@midco.net http://www.midco.net
finger finn@home.midco.net for PGP Key: (0xA33B86E9)
Reply to: