From: Michal Jaegermann <michal@ellpspace.math.ualberta.ca>
Subject: Re: moving linux from one disk to another
Date: Sat, 25 Oct 1997 10:03:34 -0600 (MDT) [thread overview]
Message-ID: <376231d4be22ec0f47380f4e7a0cb0dc.axp-list@archive.invalid> (raw)
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
next parent reply other threads:[~1997-10-25 16:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <01BCE124.8EA23A80.hunt@lbpc.com>
1997-10-25 16:03 ` Michal Jaegermann [this message]
1997-10-27 20:39 moving linux from one disk to another Robert L. Millner
[not found] <199710251603.KAA03016@ellpspace.math.ualberta.ca>
1997-10-27 13:21 ` Roman Martonak
-- strict thread matches above, loose matches on Subject: below --
1997-10-25 13:59 John Ross Hunt
1997-10-24 10:35 Martin Ostermann
1997-10-24 8:45 Roman Martonak
1997-10-24 15:32 ` Michal Jaegermann
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox