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 1HwhjF-0005Af-JK for garchives@archives.gentoo.org; Fri, 08 Jun 2007 16:54:26 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l58Gq8DP031380; Fri, 8 Jun 2007 16:52:08 GMT Received: from vscan03.westnet.com.au (vscan03.westnet.com.au [203.10.1.142]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l58GhPJV018121 for ; Fri, 8 Jun 2007 16:43:26 GMT Received: from localhost (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with ESMTP id 4ABB9B60D20 for ; Sat, 9 Jun 2007 00:43:24 +0800 (WST) Received: from vscan03.westnet.com.au ([127.0.0.1]) by localhost (vscan03.westnet.com.au [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08448-02-8 for ; Sat, 9 Jun 2007 00:43:24 +0800 (WST) Received: from [192.168.1.55] (unknown [124.149.44.124]) by vscan03.westnet.com.au (Postfix) with ESMTP id C6C11B60CCD for ; Sat, 9 Jun 2007 00:43:23 +0800 (WST) Subject: Re: [gentoo-user] Moving linux system to another partition From: Tim Allingham To: gentoo-user@lists.gentoo.org In-Reply-To: <200706081748.03919.alan@linuxholdings.co.za> References: <200706081805.00549.alexey.kv@gmail.com> <200706081718.54067.volker.armin.hemmann@tu-clausthal.de> <200706081748.03919.alan@linuxholdings.co.za> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-LtFKGAiRtux67lYmbvlM" Date: Sat, 09 Jun 2007 02:43:23 +1000 Message-Id: <1181321003.6827.3.camel@localhost> 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 X-Mailer: Evolution 2.8.3 X-Archives-Salt: 96af7e60-eb37-44be-83da-a4641266114f X-Archives-Hash: 5ea5ceb4f6c2eacc9b1948a670f6311a --=-LtFKGAiRtux67lYmbvlM Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Fri, 2007-06-08 at 17:48 +0200, Alan McKinnon wrote: > 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? >=20 > No. >=20 > cp -a is equivalent to cp -dpPR >=20 > and from the man page: >=20 > -p same as --preserve=3Dmode,ownership,timestamps >=20 > What the OP *will* have a problem with a copying /proc, /dev, /sys and=20 > other virtual filesystems. When I do this trick, I usually dd or tar or=20 > cp -a entire filesystems and then copy / with this trick: >=20 > mount -o bind / /some/tmp/dir > cp -a /some/tmp/dir /some/other/dir >=20 > This ensures that only files actually on-disk are copied >=20 > alan >=20 >=20 > --=20 > 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? >=20 > Alan McKinnon > alan at linuxholdings dot co dot za > +27 82, double three seven, one nine three five I generally prefer to do this with dd, from a remote environment dd if=3D/dev/ of=3D/dev/ Tim Allingham tim -at- datafirst-it.com.au --=-LtFKGAiRtux67lYmbvlM Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (GNU/Linux) iD8DBQBGaYcrzDi2M4U3QqIRAjSmAKCnwe4XqSNcncRAXIMVKulUqLOO8gCeLA9a L5wqQdlbQdaqlpFm3H4yZ2w= =Kulr -----END PGP SIGNATURE----- --=-LtFKGAiRtux67lYmbvlM-- -- gentoo-user@gentoo.org mailing list