View Single Post
Old 02-19-2004, 12:24 AM   #3
chris@nospam.com
 
Posts: n/a
Re: Clone Linux install onto a larger drive

On Thu, 19 Feb 2004 05:46:12 GMT, "Robert M. Riches Jr."
<spamtrap42@verizon.net> wrote:

>In article <40343dc0$1@news.comindico.com.au>, Mick Arundell wrote:
>>
>> How do I go about cloning an existing Linux installation complete with
>> data onto another, and much larger, hard drive?

>
>Just do it. Plug both drives in, boot, partition the new
>drive with fdisk, use tar or 'cp -p' to copy the stuff over,
>adjust /etc/fstab on the new drive, shut down, unplug the
>old driver, boot from the new one.
>
>One thing to watch out for is filesystem labels. Red Hat
>systems typically use LABEL=... in /etc/fstab. If you try
>to boot while you have two drives plugged in, giving you
>duplicate labels (one on each drive), it won't boot. Get
>_everything_ right, _then_ assign labels to the new drive,
>then power down. Otherwise, don't use labels to boot from
>the new disk. Knoppix can be useful for fixing up little
>details.



It will boot, but you're taking a gamble on which partition it will
actually use. Usually it's the first one it sees with that label, but
I've seen it pick the partition on the slave IDE first.

-Chris
  Reply With Quote