From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <376231d4be22ec0f47380f4e7a0cb0dc.axp-list@archive.invalid> X-Archive-Original-Message-ID: <199710251603.KAA03016@ellpspace.math.ualberta.ca> Date: Sat, 25 Oct 1997 10:03:34 -0600 (MDT) From: Michal Jaegermann Subject: Re: moving linux from one disk to another In-Reply-To: <01BCE124.8EA23A80.hunt@lbpc.com> John Ross Hunt wrote: > > Here's an easier way. ... > find / -depth -xdev -print | cpio -padvVmB /mnt/disk2 With this caveat the the above will not work if your current installation is using more than one partition (it can be fixed). '-xdev' is a stumbling block and you **really** do not want to skip it. Otherwise the line above has one advantage over 'cp -a' - you do not have to worry about creating 'proc' on your target directory. Easier? I will not argue as this is a matter of taste. :-) But the line above is practically equivalent to 'cp -ax / /mnt/disk2' and the same limitations do apply. I did not want to complicate matters. :-) More "trouble" if your target disk has multiple partitions and their numbers on both disks are not necessarily the same. John is right that on a Unix installation with a less capable 'cp' one has to do something like the above. For example (root partition only): tar -clf - / | (cd /mnt/disk2 ; tar -xpf - ) which can be a bit simpler and safer with GNU tar. Depending on what you have on hands there are few other similar methods. Take your pick. :-) Summary: a totally "fool-proof and easy" method of cloning your whole installation on another disk does not exist. You will have to think a bit about what you are doing and with what. Michal -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com