From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.62) (envelope-from ) id 1HwgmQ-0008Lt-3M for garchives@archives.gentoo.org; Fri, 08 Jun 2007 15:53:38 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l58FqSp3030723; Fri, 8 Jun 2007 15:52:28 GMT Received: from cranium.sybase.co.za (sqlprd.sybase.co.za [192.96.139.1]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l58FiuOS020186 for ; Fri, 8 Jun 2007 15:44:57 GMT Received: from localhost (cranium.sybase.co.za [127.0.0.1]) by cranium.sybase.co.za (Postfix) with ESMTP id 77CF883451 for ; Fri, 8 Jun 2007 17:55:55 +0200 (SAST) X-Virus-Scanned: amavisd-new at sybase.co.za Received: from cranium.sybase.co.za ([127.0.0.1]) by localhost (cranium.sybase.co.za [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TbId13wWSBh1 for ; Fri, 8 Jun 2007 17:55:50 +0200 (SAST) Received: from bard.sybase.co.za (bard.sybase.co.za [192.168.2.6]) by cranium.sybase.co.za (Postfix) with ESMTP id 036CE83448 for ; Fri, 8 Jun 2007 17:55:50 +0200 (SAST) Received: from nazgul.sybase.co.za ([192.168.2.68]) by bard.sybase.co.za with Microsoft SMTPSVC(6.0.3790.1830); Fri, 8 Jun 2007 17:46:41 +0200 From: Alan McKinnon To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Moving linux system to another partition Date: Fri, 8 Jun 2007 17:48:03 +0200 User-Agent: KMail/1.9.7 References: <200706081805.00549.alexey.kv@gmail.com> <200706081718.54067.volker.armin.hemmann@tu-clausthal.de> In-Reply-To: <200706081718.54067.volker.armin.hemmann@tu-clausthal.de> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200706081748.03919.alan@linuxholdings.co.za> X-OriginalArrivalTime: 08 Jun 2007 15:46:41.0999 (UTC) FILETIME=[3595B5F0:01C7A9E4] X-Archives-Salt: 666f3303-2b81-4d8a-a625-365fa86bbd16 X-Archives-Hash: 4be8c3d3e6116f8e724ca8cf8305860e On Friday 08 June 2007, Hemmann, Volker Armin wrote: > On Freitag, 8. Juni 2007, Aleksey Kunitskiy wrote: > > Hi all, > > > > Is it safe to move my linux system by using: > > #>cp -rp /mnt/old_part /mnt/new_part > > and approriate changes in grub.conf/fstab on new system location ? > > nope. > > cp -a if you really want to use copy. But doesn't kill that the > ctime/mtime making uninstalling things a pain? No. cp -a is equivalent to cp -dpPR and from the man page: -p same as --preserve=mode,ownership,timestamps What the OP *will* have a problem with a copying /proc, /dev, /sys and other virtual filesystems. When I do this trick, I usually dd or tar or cp -a entire filesystems and then copy / with this trick: mount -o bind / /some/tmp/dir cp -a /some/tmp/dir /some/other/dir This ensures that only files actually on-disk are copied alan -- Optimists say the glass is half full, Pessimists say the glass is half empty, Developers say wtf is the glass twice as big as it needs to be? Alan McKinnon alan at linuxholdings dot co dot za +27 82, double three seven, one nine three five -- gentoo-user@gentoo.org mailing list