Gentoo Archives: gentoo-user

From: Kerin Millar <kerframil@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: Moving the system from one disk to another
Date: Sun, 04 Apr 2010 19:36:07
Message-Id: hpaplg$oq4$1@dough.gmane.org
In Reply to: [gentoo-user] Moving the system from one disk to another by meino.cramer@gmx.de
1 On 04/04/2010 20:05, meino.cramer@×××.de wrote:
2 >
3 > Hi,
4 >
5 > I have to move my whole system from one disk to another
6 > bigger one.
7 >
8 > I think of doing as follows:
9 > Boot a system via CD/DVD (knoppix for example).
10 > Mount small disk read-only
11 > Mount bigger disk read-write
12 >
13 > cd into mountpoint of the first one
14 > cp -a . ../<mountpoint_of_bigger_disk>
15 >
16 > Seems to me slow but correct? Or?
17
18 cp -a is fine although, in my experience, I've found that rsync is more
19 reliable:
20
21 rsync -av /mnt/oldrootfs/. /mnt/newrootfs/.
22
23 Note that -a covers almost everything but you may need the following
24 additional options depending on how your filesystem has been used:
25
26 -H = preserve hard link
27 -A = preserve ACLs
28 -X = preserve extended attributes (in in doubt, recommended)
29
30 Whichever way you go about it, ensure that no pseudo-filesystem or bind
31 mounts are present within "/mnt/oldrootfs" at the time.
32
33 Cheers,
34
35 --Kerin

Replies

Subject Author
Re: [gentoo-user] Re: Moving the system from one disk to another Neil Bothwick <neil@××××××××××.uk>