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 1Nl2cZ-00041D-S4 for garchives@archives.gentoo.org; Fri, 26 Feb 2010 16:00:56 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C2EC7E0710; Fri, 26 Feb 2010 16:00:29 +0000 (UTC) Received: from mail.askja.de (mail.askja.de [83.137.103.136]) by pigeon.gentoo.org (Postfix) with ESMTP id 91674E0710 for ; Fri, 26 Feb 2010 16:00:29 +0000 (UTC) Received: from static-87-79-89-40.netcologne.de ([87.79.89.40] helo=zone.wonkology.org) by mail.askja.de with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1Nl2c9-0005sK-0B for gentoo-user@lists.gentoo.org; Fri, 26 Feb 2010 17:00:29 +0100 Received: from localhost (localhost [127.0.0.1]) (uid 1000) by zone.wonkology.org with local; Fri, 26 Feb 2010 17:00:26 +0100 id 00011BB9.4B87F01A.00003387 From: Alex Schuster To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] When copying an os to new disk Date: Fri, 26 Feb 2010 17:00:22 +0100 User-Agent: KMail/1.13.0 (Linux/2.6.31-tuxonice_k8; KDE/4.4.0; i686; ; ) References: <87hbpdotge.fsf@newsguy.com> <3ac129341002260359h2066deeby135975b1d1b19368@mail.gmail.com> <854dca5c1002260746k48e40be4pcc4d4b6ece79add2@mail.gmail.com> In-Reply-To: <854dca5c1002260746k48e40be4pcc4d4b6ece79add2@mail.gmail.com> 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="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201002261700.23925.wonko@wonkology.org> X-Archives-Salt: 80ee1b7d-272c-467b-8fa9-83d9ea4df5f4 X-Archives-Hash: 1952beaaf25b7c363551bfc61cd0c91d Kyle Bader writes: > > I opted to reinstall from source that machine, which wasn't exactly a > > bad choice anyway. But as always, rtfm is good advice! Thanks (not > > sarcastic, except to mock myself). > > Another option other than rsync or dd is to use tar: Yeah, that's what I usually do.n The fastest method probably is star, but the syntax is a little different. > tar cf - $old_dir | ( cd $new_dir: tar xf - ) > tar cf - $old_dir | ssh $other_host "( cd $new_dir: tar xf - )" ^ The ':' separating commands should be a ';'. Using the -C option would be a little easier, but your method also would work for star. This piping through ssh is quite cool, isn't it. If $old_dir is the root partition, I would bin-mount it first to somewhere else, so other directories mounted to it (especially/dev, /proc and /sys) are not copied: mount -o bind / /mnt old_dir=/mnt Wonko