public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Best way to copy /* ?
@ 2010-12-27 15:20 Marc Blumentritt
  2010-12-27 15:20 ` Etaoin Shrdlu
                   ` (7 more replies)
  0 siblings, 8 replies; 42+ messages in thread
From: Marc Blumentritt @ 2010-12-27 15:20 UTC (permalink / raw
  To: gentoo-user

Hi,

I have bought myself a Christmas present, a new shiny hard disk. Now I
want to copy my old Gentoo system to my new disk like this:

1.) boot with gentoo boot cd
2.) mount my old system ind /old ( / in one partition, /home, /usr,
/var, /tmp and /opt in lvm2 volumes and /boot on it's own partition)
3.) mount my new disk ind /new (just 2 partitions, 1 for / and 1 for /boot)
4.) copy from /old to /new
5.) modify fstab and prepare grub
6.) reboot

Concerning step 4: what is the best copy command?
I tried with

cp -a /old/* /new

but got some problems in /home. My user dir got the wrong permissions (I
d'ont know, if this is in some way connected with /home being a mount
point). Of course this could be the same in other dirs.

Is there a better method? I read years ago on this list about using tar
with this (piping the tar output into a second tar command, which
extracts the files to their final destination).

Are there other tools? Or did I use cp in a wrong way?

Regards
Marc




^ permalink raw reply	[flat|nested] 42+ messages in thread

end of thread, other threads:[~2010-12-29 20:26 UTC | newest]

Thread overview: 42+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-27 15:20 [gentoo-user] Best way to copy /* ? Marc Blumentritt
2010-12-27 15:20 ` Etaoin Shrdlu
2010-12-27 16:37   ` Neil Bothwick
2010-12-27 16:52     ` Mark Knecht
2010-12-27 17:05       ` [gentoo-user] " Remy Blank
2010-12-27 20:26         ` Marc Blumentritt
2010-12-27 21:23           ` Remy Blank
2010-12-28  8:56             ` Marc Blumentritt
2010-12-28  9:18               ` Remy Blank
2010-12-28 10:49                 ` Neil Bothwick
2010-12-27 15:30 ` [gentoo-user] " ich bins
2010-12-27 15:34 ` [gentoo-user] " Lubos Kolouch
2010-12-27 15:41 ` [gentoo-user] " Jarry
2010-12-27 15:47 ` Dale
2010-12-29 17:03   ` Peter Humphrey
2010-12-29 17:14     ` Maciej Grela
2010-12-29 17:43       ` Paul Hartman
2010-12-29 17:50     ` Alex Schuster
2010-12-29 18:30       ` Peter Humphrey
2010-12-29 18:41         ` Alex Schuster
2010-12-29 19:16           ` Mick
2010-12-29 20:24             ` Stefan G. Weichinger
2010-12-27 17:27 ` Volker Armin Hemmann
2010-12-27 17:38   ` Mark Knecht
2010-12-27 17:51     ` Volker Armin Hemmann
2010-12-27 18:01       ` Mark Knecht
2010-12-27 17:45   ` Dale
2010-12-27 18:45     ` Neil Bothwick
2010-12-27 21:35       ` Dale
2010-12-28  5:02 ` Mike Edenfield
2010-12-28 13:20   ` Alex Schuster
2010-12-28 13:32   ` Neil Bothwick
2010-12-28 16:26     ` Joerg Schilling
2010-12-28 18:41       ` Mick
2010-12-29 15:38         ` Joerg Schilling
2010-12-29 16:17           ` Mick
2010-12-28 22:33       ` Neil Bothwick
2010-12-28 23:16         ` Mick
2010-12-28 23:36         ` Joerg Schilling
2010-12-29  0:51           ` Alex Schuster
2010-12-28 23:08       ` Alex Schuster
2010-12-29 14:40 ` [gentoo-user] Re: Best way to copy /* ? [SOLVED] Marc Blumentritt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox