From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1NybhY-00040G-2w for garchives@archives.gentoo.org; Mon, 05 Apr 2010 02:06:08 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 32A99E09FB for ; Mon, 5 Apr 2010 02:06:07 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 4782DE0AC6 for ; Mon, 5 Apr 2010 01:50:15 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id E58F01B4038 for ; Mon, 5 Apr 2010 01:50:14 +0000 (UTC) X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Score: -2.147 X-Spam-Level: X-Spam-Status: No, score=-2.147 required=5.5 tests=[AWL=0.452, BAYES_00=-2.599] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6uCnRFXQFHX0 for ; Mon, 5 Apr 2010 01:50:08 +0000 (UTC) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by smtp.gentoo.org (Postfix) with ESMTP id 64FC61B403B for ; Mon, 5 Apr 2010 01:50:06 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1NybRv-0007E3-0q for gentoo-user@gentoo.org; Mon, 05 Apr 2010 03:49:59 +0200 Received: from 93-97-192-207.zone5.bethere.co.uk ([93.97.192.207]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 05 Apr 2010 03:49:59 +0200 Received: from kerframil by 93-97-192-207.zone5.bethere.co.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 05 Apr 2010 03:49:59 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Kerin Millar Subject: [gentoo-user] Re: Moving the system from one disk to another Date: Mon, 05 Apr 2010 02:49:46 +0100 Message-ID: References: <20100404190523.GI5229@solfire> <20100404210403.7d895c29@digimed.co.uk> 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=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 93-97-192-207.zone5.bethere.co.uk User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 In-Reply-To: X-Archives-Salt: 0f1118ea-9cbe-4002-8e7a-0d05f1cce655 X-Archives-Hash: 4f31067346b39d31dab1c5c4d3fa39d2 On 05/04/2010 02:34, walt wrote: > On 04/04/2010 01:04 PM, Neil Bothwick wrote: >> On Sun, 04 Apr 2010 20:35:11 +0100, Kerin Millar wrote: >> >>> Whichever way you go about it, ensure that no pseudo-filesystem or bind >>> mounts are present within "/mnt/oldrootfs" at the time. >> >> Use the -x option with rsync to stop it descending into other >> filesystems. > > This is directed to all of you gurus who replied to Meino's post: > > Meino's unstated assumption is that his new (larger) disk is already > formatted > (possibly partitioned?) before he copies the existing filesystem to it. > > IIUC the new disk will then be unbootable until grub or equivalent is > installed > on the new disk. Does this seem correct, or not? Absolutely correct. Two commands from the grub shell and job done :) > > My instinct is to use dd to duplicate the entire old disk to the new > (unformatted) > disk and then use gparted to twiddle it from there. (But I do love a > puzzle ;o) In general, I'm a proponent of copying filesystems, as opposed to copying entire block devices or disks. That's not to say that there aren't some situations where the latter approach makes sense. Note that it's possible to copy just the portion of the first sector that contains bootloader code as thus: dd if=/dev/sda of=/dev/sdb bs=446 count=1 NOTE: that's 446 as opposed to 512 as the latter would result in the partition table being copied too, which would be most undesirable. Cheers, --Kerin