Gentoo Archives: gentoo-user

From: YoYo siska <yoyo@××××××.sk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: How can I move system to new disk?
Date: Sun, 17 Jan 2010 12:21:05
Message-Id: 20100117122013.GA27546@ksp.sk
In Reply to: [gentoo-user] Re: How can I move system to new disk? by Nikos Chantziaras
1 On Sun, Jan 17, 2010 at 08:48:21AM +0200, Nikos Chantziaras wrote:
2 > On 01/17/2010 12:40 AM, YoYo siska wrote:
3 >> On Sat, Jan 16, 2010 at 03:21:32PM +0200, Nikos Chantziaras wrote:
4 >>> On 01/15/2010 07:33 PM, Jarry wrote:
5 >>> [...]
6 >>> I'll just copy the instructions I have someone else here:
7 >>>
8 >>> You can clone the existing Gentoo installation into the new partition
9 >>> and boot from it. You can do this while the system is actually running.
10 >>> The new partition can be anything you want (different size, different
11 >>> file system). This usually means:
12 >>>
13 >>>
14 >>> rsync your existing / to your target / (except /dev, /sys and /proc and
15 >>> of course mount points that belong to a different filesystem, /boot or
16 >>> /home for example if you're using dedicated partitions for those). If
17 >>> you mounted your target / as /root/newpart, this is done with:
18 >>>
19 >>> rsync -ax / /root/newpart
20 >>>
21 >>> If this copied directories it shouldn't have (like /sys or /proc),
22 >>> simply delete them again.
23 >>> [...]
24 >>
25 >> If you are doing it this way (on a running system with mounted
26 >> dev/proc/sys...), you can just bind-mount your current / to another
27 >> directory. That "copy" will not contain any "sub-mounts"
28 >
29 > rsync -ax / /target shouldn't copy any sub-mounts either, because of the
30 > -x option. See man rsync. I mentioned it just in case ;)
31 >
32 yes, but it will miss any files "hidden" under those mounts, though
33 normally that menas only /dev/, the others are empty...
34 and i like it more, because it makes a more "exact" copy ;)
35
36 yoyo