[CentOS] Copying CentOS to new drive

Thu May 5 22:41:11 UTC 2016
Arun Khan <knura9 at gmail.com>

On Wed, May 4, 2016 at 3:38 AM, Timothy Murphy <gayleard at eircom.net> wrote:
> I recently asked about copying a running system to a new drive.
>
> As a postscript, I'm wondering if it would have been preferable
> to run the machine under a Live OS, and simply copy the root partition
> to the new drive?
> Eg while running under the LiveOS,
>   # mkdir /mnt/old /mnt/new
>   # mount /dev/sda7 /mnt/old
>   # mount /dev/sdb6 /mnt/new
>   # cp -avx /mnt/old /mnt/new
> or
>   # rsync -ax --progress /mnt/old /mnt/new

As has been discussed, doing file copies from a running system is not
recommended.

If by "Live OS" you mean booting the system with a LiveCD,  then
clonezilla would all of the above.

note: target (new) disk >= disk of the old system

-- Arun Khan