Gentoo Archives: gentoo-user

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

Replies

Subject Author
Re: [gentoo-user] Re: How can I move system to new disk? YoYo siska <yoyo@××××××.sk>