1 |
On Mon, 27 Dec 2010 16:20:55 +0100 |
2 |
Marc Blumentritt <marc.blumentritt@×××××.de> wrote: |
3 |
|
4 |
> Hi, |
5 |
> |
6 |
> I have bought myself a Christmas present, a new shiny hard disk. Now I |
7 |
> want to copy my old Gentoo system to my new disk like this: |
8 |
> |
9 |
> 1.) boot with gentoo boot cd |
10 |
> 2.) mount my old system ind /old ( / in one partition, /home, /usr, |
11 |
> /var, /tmp and /opt in lvm2 volumes and /boot on it's own partition) |
12 |
> 3.) mount my new disk ind /new (just 2 partitions, 1 for / and 1 |
13 |
> for /boot) 4.) copy from /old to /new |
14 |
> 5.) modify fstab and prepare grub |
15 |
> 6.) reboot |
16 |
> |
17 |
> Concerning step 4: what is the best copy command? |
18 |
> I tried with |
19 |
> |
20 |
> cp -a /old/* /new |
21 |
> |
22 |
> but got some problems in /home. My user dir got the wrong permissions (I |
23 |
> d'ont know, if this is in some way connected with /home being a mount |
24 |
> point). Of course this could be the same in other dirs. |
25 |
> |
26 |
> Is there a better method? I read years ago on this list about using tar |
27 |
> with this (piping the tar output into a second tar command, which |
28 |
> extracts the files to their final destination). |
29 |
> |
30 |
> Are there other tools? Or did I use cp in a wrong way? |
31 |
|
32 |
I'd just use rsync. |