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 1NWU7t-00015v-Q0 for garchives@archives.gentoo.org; Sun, 17 Jan 2010 12:21:05 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7DB75E0818; Sun, 17 Jan 2010 12:20:14 +0000 (UTC) Received: from ksp.sk (element.ksp.sk [158.195.16.154]) by pigeon.gentoo.org (Postfix) with ESMTP id 53A05E0818 for ; Sun, 17 Jan 2010 12:20:14 +0000 (UTC) Received: by ksp.sk (Postfix, from userid 1004) id B4DB5E02E; Sun, 17 Jan 2010 13:20:13 +0100 (CET) Date: Sun, 17 Jan 2010 13:20:13 +0100 From: YoYo siska To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: How can I move system to new disk? Message-ID: <20100117122013.GA27546@ksp.sk> References: <4B50A6F0.8060404@gmail.com> <20100116224044.GB762@ksp.sk> 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-Disposition: inline In-Reply-To: X-YoYo: 47 X-Exotic-Header-Data: 47/2 User-Agent: Mutt/1.5.18 (2008-05-17) X-Archives-Salt: 78c29e69-83fa-41c5-b2ce-dd9f20f39525 X-Archives-Hash: c370fec8ba2163f4195fdc6d76473827 On Sun, Jan 17, 2010 at 08:48:21AM +0200, Nikos Chantziaras wrote: > On 01/17/2010 12:40 AM, YoYo siska wrote: >> On Sat, Jan 16, 2010 at 03:21:32PM +0200, Nikos Chantziaras wrote: >>> On 01/15/2010 07:33 PM, Jarry wrote: >>> [...] >>> I'll just copy the instructions I have someone else here: >>> >>> You can clone the existing Gentoo installation into the new partition >>> and boot from it. You can do this while the system is actually running. >>> The new partition can be anything you want (different size, different >>> file system). This usually means: >>> >>> >>> rsync your existing / to your target / (except /dev, /sys and /proc and >>> of course mount points that belong to a different filesystem, /boot or >>> /home for example if you're using dedicated partitions for those). If >>> you mounted your target / as /root/newpart, this is done with: >>> >>> rsync -ax / /root/newpart >>> >>> If this copied directories it shouldn't have (like /sys or /proc), >>> simply delete them again. >>> [...] >> >> If you are doing it this way (on a running system with mounted >> dev/proc/sys...), you can just bind-mount your current / to another >> directory. That "copy" will not contain any "sub-mounts" > > rsync -ax / /target shouldn't copy any sub-mounts either, because of the > -x option. See man rsync. I mentioned it just in case ;) > yes, but it will miss any files "hidden" under those mounts, though normally that menas only /dev/, the others are empty... and i like it more, because it makes a more "exact" copy ;) yoyo