From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1PXF4t-0006GY-9y for garchives@archives.gentoo.org; Mon, 27 Dec 2010 15:33:39 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1C674E077C; Mon, 27 Dec 2010 15:32:15 +0000 (UTC) Received: from mail.gmx.net (mailout-de.gmx.net [213.165.64.22]) by pigeon.gentoo.org (Postfix) with SMTP id 92630E077C for ; Mon, 27 Dec 2010 15:32:14 +0000 (UTC) Received: (qmail invoked by alias); 27 Dec 2010 15:32:13 -0000 Received: from unknown (EHLO [192.168.178.20]) [84.119.87.92] by mail.gmx.net (mp038) with SMTP; 27 Dec 2010 16:32:13 +0100 X-Authenticated: #30591987 X-Provags-ID: V01U2FsdGVkX1/acVNUQHHadeIq3+v2QtJrzWR1Vyr5mSbwTJKXrh MtKVSx+Cg9JabJ Message-ID: <4D18B132.7060003@gmx.net> Date: Mon, 27 Dec 2010 16:30:58 +0100 From: ich bins User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101220 Lightning/1.0b3pre Thunderbird/3.1.7 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Best way to copy /* ? References: In-Reply-To: X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Archives-Salt: 44385f99-4722-4bf7-b9e1-c776c438f089 X-Archives-Hash: ac08edea3d16bbe739f9bc9498536207 Am 27.12.2010 16:20, schrieb Marc Blumentritt: > 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 > > > http://en.gentoo-wiki.com/wiki/Custom_Stage4