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 1NyVc6-0001oM-W4 for garchives@archives.gentoo.org; Sun, 04 Apr 2010 19:36:07 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 273DCE0795; Sun, 4 Apr 2010 19:35:42 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 08BBEE0795 for ; Sun, 4 Apr 2010 19:35:42 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id B16CF1B40D3 for ; Sun, 4 Apr 2010 19:35:41 +0000 (UTC) X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Score: -1.696 X-Spam-Level: X-Spam-Status: No, score=-1.696 required=5.5 tests=[AWL=0.903, 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 gs+L4kzN2sgk for ; Sun, 4 Apr 2010 19:35:35 +0000 (UTC) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by smtp.gentoo.org (Postfix) with ESMTP id 1BFF51B4040 for ; Sun, 4 Apr 2010 19:35:34 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1NyVbP-000166-Pk for gentoo-user@gentoo.org; Sun, 04 Apr 2010 21:35:23 +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 ; Sun, 04 Apr 2010 21:35:23 +0200 Received: from kerframil by 93-97-192-207.zone5.bethere.co.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 04 Apr 2010 21:35:23 +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: Sun, 04 Apr 2010 20:35:11 +0100 Message-ID: References: <20100404190523.GI5229@solfire> 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: <20100404190523.GI5229@solfire> X-Archives-Salt: 13041ddc-aff0-45d1-8c4a-249123092310 X-Archives-Hash: 9f377107f42c9e3b61ddd0871aac4595 On 04/04/2010 20:05, meino.cramer@gmx.de wrote: > > Hi, > > I have to move my whole system from one disk to another > bigger one. > > I think of doing as follows: > Boot a system via CD/DVD (knoppix for example). > Mount small disk read-only > Mount bigger disk read-write > > cd into mountpoint of the first one > cp -a . ../ > > Seems to me slow but correct? Or? cp -a is fine although, in my experience, I've found that rsync is more reliable: rsync -av /mnt/oldrootfs/. /mnt/newrootfs/. Note that -a covers almost everything but you may need the following additional options depending on how your filesystem has been used: -H = preserve hard link -A = preserve ACLs -X = preserve extended attributes (in in doubt, recommended) Whichever way you go about it, ensure that no pseudo-filesystem or bind mounts are present within "/mnt/oldrootfs" at the time. Cheers, --Kerin