[CentOS] Copying CentOS to new drive

Wed May 4 11:22:04 UTC 2016
wwp <subscript at free.fr>

Hello Timothy,

On Wed, 04 May 2016 12:38:41 +0200 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

I personally would not copy FROM or TO running systems. Thus,
proceeding to the copy from a third (liveCD or not) system sounds good
to me. A bare cp -ax, tar or rsync. Of course, make sure that the
target fs is empty before copying (WRT system files).


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <http://lists.centos.org/pipermail/centos/attachments/20160504/fc6ab58a/attachment-0004.sig>