On Fri, Aug 18, 2000 at 10:38:20AM +1200, Dan Griffiths wrote: > This command will take care of duplicating everything including device > files and permissions: > find <source dir> -mount | cpio -dumpv <target dir>
I have a (bigger) SCSI disk that I want to move my system onto. (Currently my system lives on a smaller IDE disk) I created a /boot, a swap and a / partition on /dev/sda: # fdisk -l /dev/sda Disk /dev/sda: 255 heads, 63 sectors, 131 cylinders Units = cylinders of 16065 * 512 bytes Device Boot Start End Blocks Id System /dev/sda1 * 1 3 24066 83 Linux /dev/sda2 4 11 64260 82 Linux swap /dev/sda3 12 131 963900 83 Linux I next mkXX'ed them and mounted /boot and / under the two mount points /mnt/newboot and /mnt/newslash, respectively. After that, I did the command described above to copy over everything. Next, I adjusted /mnt/newslash/etc/fstab to reflect the new disk. I also adjusted lilo.conf accordingly and ran lilo -C /mnt/newslash/etc/lilo.conf. Now, I suppose if I boot up next time, this should work just fine, correct? I can't actually test this right now as I am recompiling a kernel on a different box that I ssh'ed to from this box... :) So, does anyone have any suggestions / comments on this topic? Sven