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 1PXEuZ-0005C3-0D for garchives@archives.gentoo.org; Mon, 27 Dec 2010 15:22:59 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B96CDE0444; Mon, 27 Dec 2010 15:21:23 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 8BB66E0444 for ; Mon, 27 Dec 2010 15:21:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 20F3B1B42B0 for ; Mon, 27 Dec 2010 15:21:23 +0000 (UTC) X-Virus-Scanned: by amavisd-new using ClamAV at gentoo.org X-Spam-Score: -2.102 X-Spam-Level: X-Spam-Status: No, score=-2.102 required=5.5 tests=[AWL=0.497, BAYES_00=-2.599] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Tjw6WJxvUGHk for ; Mon, 27 Dec 2010 15:21:15 +0000 (UTC) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by smtp.gentoo.org (Postfix) with ESMTP id B36BA1B4233 for ; Mon, 27 Dec 2010 15:21:12 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PXEso-00010N-Ls for gentoo-user@gentoo.org; Mon, 27 Dec 2010 16:21:10 +0100 Received: from dslc-082-082-093-036.pools.arcor-ip.net ([82.82.93.36]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 27 Dec 2010 16:21:10 +0100 Received: from marc.blumentritt by dslc-082-082-093-036.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 27 Dec 2010 16:21:10 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Marc Blumentritt Subject: [gentoo-user] Best way to copy /* ? Date: Mon, 27 Dec 2010 16:20:55 +0100 Message-ID: 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 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: dslc-082-082-093-036.pools.arcor-ip.net User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101214 Lightning/1.0b2 Thunderbird/3.1.7 X-Archives-Salt: 04f98f68-4345-4df1-9825-ae8c9ca8648c X-Archives-Hash: 4b2c45eddaa61a562a23a752ae355006 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