1 Oct
2001
1 Oct
'01
11:03
Will this work with a resier filesystem? thanks Rich
I'd use cpio in passthrough mode in combination with find, such as:
cd / find . -xdev | cpio -pm /mnt/newroot
It maintains permissions and does error checking etc... Works for everything, including /dev /proc! The -xdev stops find traversing devices, i.e. the above only copies the root fs, it doesn't do any other partitions mounted on /usr... Just do the same for each partition.
With lilo you can do lilo -r /mnt/newroot, no need for a boot floppy! The box should then boot from the new disk...
HTH,
Mark