From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id CE94F1381F3 for ; Thu, 8 Nov 2012 19:48:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E0ABA21C050; Thu, 8 Nov 2012 19:47:49 +0000 (UTC) Received: from smarthost04.mail.zen.net.uk (smarthost04.mail.zen.net.uk [212.23.1.4]) by pigeon.gentoo.org (Postfix) with ESMTP id E539721C012 for ; Thu, 8 Nov 2012 19:46:26 +0000 (UTC) Received: from [82.71.28.203] (helo=echoes) by smarthost04.mail.zen.net.uk with esmtp (Exim 4.72) (envelope-from ) id 1TWY3W-00059Z-6l for gentoo-user@lists.gentoo.org; Thu, 08 Nov 2012 19:46:26 +0000 Date: Thu, 8 Nov 2012 19:46:01 +0000 From: john To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Hard drive change Message-ID: <20121108194601.57d11af6@echoes> In-Reply-To: <509BF735.2000300@binarywings.net> References: <509BF735.2000300@binarywings.net> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.12; x86_64-pc-linux-gnu) 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: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Originating-Smarthost04-IP: [82.71.28.203] X-Archives-Salt: 8adf8b90-7764-4d2c-ac20-4e5a24e7e68f X-Archives-Hash: c2b7aa2dc8552dd396a60e72e999e7f9 On Thu, 08 Nov 2012 19:17:25 +0100 Florian Philipp wrote: > Am 08.11.2012 17:37, schrieb Paul Hartman: > > On Thu, Nov 8, 2012 at 7:03 AM, Volker Armin Hemmann > > wrote: > >> Am 08.11.2012 12:12 schrieb : > >> > >>> I am about to change my hard drive on my machine from a 500GB to > >>> 2tb. > >>> > >>> To transfer I intend to dd the partitions across and then resize > >>> using lvm as home swap var are located on lvm. > >>> > >>> Is this the right approach or would you recommend another method? > >>> > >>> John D Maunder. > >> > >> 2tb drive probably different sector size. cp -auv recommended. > >> > > > > I agree, best approach is to partition and format the new drive as > > new, and then copy the files. This will also help you start your new > > disk with a lack of fragmentation. > > > > +1 > > Of course, a simple cp -auv /* /new_root won't suffice because of > proc, sys and friends. I prefer > mount --bind / /real_root > cp -auv /real_root/* /new_root > > Regards, > Florian Philipp > Thanks all for advice. Nice work with the mounting. -- John D Maunder