Gentoo Archives: gentoo-user

From: Zhu Sha Zang <zhushazang@×××××××××.br>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] How can I move system to new disk?
Date: Fri, 15 Jan 2010 18:33:24
Message-Id: 4B50B4A5.6020601@yahoo.com.br
In Reply to: [gentoo-user] How can I move system to new disk? by Jarry
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 Em 15-01-2010 15:33, Jarry escreveu:
5 > Hi, I'm facing this problem:
6 >
7 > I want to exchange hard-drive in my computer for other, bigger
8 > one. I do not want to add new hard-drive somewhere on mount-point
9 > permanently, I just want to copy everything from the old drive
10 > to the new one and then get rid of the old one. And of course,
11 > I'd like to use my computer as before. What is the best (maybe
12 > I should ask for safest) way to acomplish this?
13 >
14 > First I thought about "cp -a". But I'm not sure which directories
15 > I should skip (/proc, maybe some other like /dev?). And I do not
16 > know how cp handles links (if I first copy link and later target,
17 > where is the link pointing? to the original file or its copy?).
18 >
19 > Maybe dump/restore is better solution? Or something else?
20 >
21 > Jarry
22 >
23
24 In a small cluster with machines have the same configuration (or not,
25 when newer hd are more bigger than the oldest) i use a live cd and cp
26 - -pr /mnt/gentoo/* /mnt/gentoo2/*.
27
28 Works fine. Changing hostname and ip and i have a new cluster client.
29 Better than ghost that don't change mbr or dd. A "shutdown -Fr now" in
30 a first reboot is a good idea.
31
32 att
33 -----BEGIN PGP SIGNATURE-----
34 Version: GnuPG v2.0.11 (GNU/Linux)
35 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
36
37 iEYEARECAAYFAktQtKUACgkQ35zeJy7JhCh/rQCcDO7hr/0V64cnHBudL2BseQKg
38 OtEAn2P13ZvQXDprMCNrNbCNEGGD0GJw
39 =zlNP
40 -----END PGP SIGNATURE-----