From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 23B181395E2 for ; Sat, 19 Nov 2016 16:07:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 605B6E0B0B; Sat, 19 Nov 2016 16:07:49 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id AD3E0E0AD7 for ; Sat, 19 Nov 2016 16:07:47 +0000 (UTC) Received: from kern ([92.78.232.95]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0Ldcv0-1cZBTP0aP4-00ijyL for ; Sat, 19 Nov 2016 17:07:45 +0100 Date: Sat, 19 Nov 2016 17:07:43 +0100 From: Frank Steinmetzger To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] plain copy of root disk won't work Message-ID: <20161119160743.GD14798@kern> Mail-Followup-To: gentoo-user@lists.gentoo.org References: <20161118192013.GA23580@eee.birulevo.net> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="uxuisgdDHaNETlh8" Content-Disposition: inline In-Reply-To: <20161118192013.GA23580@eee.birulevo.net> User-Agent: Mutt 1.7.1; VIM - Vi IMproved 7.4 X-Provags-ID: V03:K0:rvrs0shv5GaRuF3jSoytzPlPU+/n5vmxmn7qeXI+TTzQcCegsiC xAEJgY1GwrDyBSoIV8e1UN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1808adbb12b12206607f002017d57503 --uxuisgdDHaNETlh8 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Nov 18, 2016 at 10:20:13PM +0300, =D0=9A=D0=BE=D0=BD=D1=81=D1=82=D0= =B0=D0=BD=D1=82=D0=B8=D0=BD wrote: > On Fri, Nov 18, 2016 at 04:30:28PM +0100, Raffaele BELARDI wrote: > > I want to move the main disk contents (hda, PATA) to another, larger > > disk (sda, SATA). > > > > hda contains 4 ext3 partitions (root, home, data, swap). > > I created 4 ext3 partitions on sda and copied the data over from the > > corresponding hda partitions using 'cp -ax'. >=20 > Didn't you do this from working system on hda? In this case there > really could be troubles with special files etc. Imho live-cd better > for this purpose. >=20 > At any case imho it's better to split this task >=20 > 0. Boot from live-cd. If I can=E2=80=99t be bothered with live CDs, I bind-mount the root partiti= on. I use that frequently to do root-backups. That way you can get the files within /dev which are required even before /dev is populated (null and zero, IIRC). This will, of course, not prevent files from being changed during the rsync run, because the system is still live and kicking. So I usually run it several times to see what has changed in the meantime. mkdir /mnt/bindroot mount --bind / /mnt/bindroot rsync -ahXAHi --delete /mnt/bindroot/ /path/to/new/partition/ Since this is a bindmount, no need for -x. Use -A and -X if you use acls and xattrs, respectively. But you definitely want -H. For example git installs all its commands as hardlinks to a single binary. --=20 Gru=C3=9F | Greetings | Qapla=E2=80=99 Please do not share anything from, with or about me with any social network. Idealism grows with the distance to the problem. --uxuisgdDHaNETlh8 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJYMHjOAAoJEIsxvrVA1DDKHEIQAIL2GqUEoicKqFP+Ze9YClIp hL/idwwyQ/JIfGc7ZjG0f7OAyFem/ulYSM6jGpfgCmF5m6EgMnncBFuvViSAYZDS wD7dd1YIFLo24WTqkdq1slrixE6Gk0gFadr1ydArlBPhwNOtq14sLep2pdcczjX+ ZlK5PlLVgpete8qHOBFG3JnzS9lJpGuqqea0X5vRHWAgxdeauaNcWoJn+cqKtvVm 8zEMoKcH1DJU5xqoccuuIbUnGk3+Jq6aZxhRh1E5SyzWAePzp+MXPmYExqBkBwUo A1MhNyM6JQXn+ZoZIT3RFjsWzu7uXaQlisL6jX6c9T3upaqFRFf+3Wro5UzihCLI VHv+V3XL7iy1dywCrdSBZwbGWwv4JPmmxsXEa646GV1MQCWjMNiFL+CsOwyaTN8l gwq5xrBrx+Jc84jKJiSdKiWeZ5EkGIElfrO7ZphRSwEd02IJcEaOVS8OHaNvDDqH ChnzCdnSWntKwBn/loZWj/yYYvvr3c9/oTzh/WtqmHT4yXBU+80p4/PjMakJ3giW Ao+fpF33YRhaRgznWRkB1VNefeSzz19X/H/Olk5NMB8wpaYoyuz3+3NoDW7dx+8a i6eN5M+b3KRc7NYN9lKrwultZK0YYB4QacOzJexfliskZujGq08dbHhBkHNEj/aK Eczr0mmeFtTxuXFAQm5B =HTOs -----END PGP SIGNATURE----- --uxuisgdDHaNETlh8--