Gentoo Archives: gentoo-user

From: Neil Bothwick <neil@××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: Moving the system from one disk to another
Date: Mon, 05 Apr 2010 08:03:36
Message-Id: 20100405080351.5eefd62e@digimed.co.uk
In Reply to: [gentoo-user] Re: Moving the system from one disk to another by walt
1 On Sun, 04 Apr 2010 18:34:27 -0700, walt wrote:
2
3 > My instinct is to use dd to duplicate the entire old disk to the new
4 > (unformatted) disk and then use gparted to twiddle it from there. (But
5 > I do love a puzzle ;o)
6
7 This works but has a some disadvantages. First, it is very slow. Then you
8 copy all filesystems as-is, including any fragmentation (which may be
9 significant if the old disk is nearly full). Also, rearranging the
10 partitions can be extremely time consuming, and not that straightforward
11 if you are moving partition start points.
12
13 A different sized disk generally deserves a different partition layout, so
14 starting from scratch and copying only the data is a better option.
15
16 You can also substantially reduce downtime by first rsyncing while the
17 system is running (using either -x or bind mounts). That will give a
18 slightly inconsistent root, so you then repeat the process from a live CD
19 (using --delete with rsync) to clean things up. The latter rsync takes a
20 fraction of the time as 99.*% of the data is already cpied.
21
22
23 --
24 Neil Bothwick
25
26 C&W music backward: get yer dog, wife, job, truck, kids, and sobriety
27 back.

Attachments

File name MIME type
signature.asc application/pgp-signature