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 1NyZpj-0001TS-4m for garchives@archives.gentoo.org; Mon, 05 Apr 2010 00:06:27 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 72B3EE07C8 for ; Mon, 5 Apr 2010 00:06:26 +0000 (UTC) Received: from matrix.inten.pl (matrix.inten.pl [91.200.187.34]) by pigeon.gentoo.org (Postfix) with ESMTP id 0FDEBE0512 for ; Sun, 4 Apr 2010 23:52:06 +0000 (UTC) Received: from localhost (unknown [91.200.187.211]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by matrix.inten.pl (Postfix) with ESMTPSA id C1AE4A1D871 for ; Mon, 5 Apr 2010 01:52:04 +0200 (CEST) Date: Mon, 5 Apr 2010 01:51:56 +0200 From: Kacper =?UTF-8?B?S29wY3p5xYRza2k=?= To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: Moving the system from one disk to another Message-ID: <20100405015156.35c47be3@matrix.inten.pl> In-Reply-To: <20100404210403.7d895c29@digimed.co.uk> References: <20100404190523.GI5229@solfire> <20100404210403.7d895c29@digimed.co.uk> X-Mailer: Claws Mail 3.7.5 (GTK+ 2.18.6; i686-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=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 0e1b6d06-7fa6-4c32-b0fb-29a8357dd3b5 X-Archives-Hash: 144fd42f3378b2fea6f73e28365c5550 Dnia 2010-04-04, o godz. 21:04:03 Neil Bothwick napisa=C5=82(a): > On Sun, 04 Apr 2010 20:35:11 +0100, Kerin Millar wrote: >=20 > > Whichever way you go about it, ensure that no pseudo-filesystem or > > bind mounts are present within "/mnt/oldrootfs" at the time. >=20 > Use the -x option with rsync to stop it descending into other > filesystems. >=20 >=20 AFAIK "mount --bind / /somewhere" and rsync'ing /somewhere/ instead of / would be more useful then "-x" option - stage1,2,3 has static /dev entries which should also be copied. Since udev mounts it with tmpfs, rsync with -x would skip those entries (static and from tmpfs). I suppose you can ignore static /dev if you use initrd. Since author of this thread wants to mount filesystem(s) of "the system" from livecd of some kind, there is no point in using any of ideas in this or previous email - there will be no other filesystems mounted. I often use that trick with /somewhere/ to backup live system from laptop to external drive. But it does not work well with innodb... man mount man rsync good luck --=20 Kacper Kopczy=C5=84ski