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 1HwhED-0002I2-Tk for garchives@archives.gentoo.org; Fri, 08 Jun 2007 16:22:22 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l58GL2cc002818; Fri, 8 Jun 2007 16:21:02 GMT Received: from dnsmail4.fleet.navy.mil (pacfb.fleet.navy.mil [205.56.145.36]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l58GFO5x028027 for ; Fri, 8 Jun 2007 16:15:25 GMT Received: from VSCAN2 ([157.153.3.104]) by dnsmail4.fleet.navy.mil (8.12.11.SSC-RH.1/8.12.9) with SMTP id l58GEtEG024873 for ; Fri, 8 Jun 2007 16:15:23 GMT Received: from cv63ucsex1.cv63.navy.mil ([157.153.3.104]) by VSCAN2 (SMSSMTP 4.1.11.41) with SMTP id M2007060816152525255 for ; Fri, 08 Jun 2007 16:15:27 GMT 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="us-ascii" Content-Transfer-Encoding: quoted-printable content-class: urn:content-classes:message X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 Subject: RE: [gentoo-user] Moving linux system to another partition Date: Sat, 9 Jun 2007 01:52:28 +0900 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [gentoo-user] Moving linux system to another partition Thread-Index: Acep7P0awCjddguvS9W580CO4H84zQAADfPg From: To: X-Archives-Salt: fe31c9a4-116f-42cf-817e-cdadeaa13e72 X-Archives-Hash: 03241a6de51553761478052fab241e10 > -----Original Message----- > From: Alan McKinnon [mailto:alan@linuxholdings.co.za]=20 > Sent: Saturday, June 09, 2007 12:48 AM > To: gentoo-user@lists.gentoo.org > Subject: Re: [gentoo-user] Moving linux system to another partition >=20 >=20 > 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=20 > > 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,=20 > /sys and=20 > other virtual filesystems. When I do this trick, I usually dd=20 > 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 Is it possible to handle the tar process from inside a liveCD environment, and just tar the mount points (i.e. empty directories) for the virtual file systems instead of trying to tar the virtaul file systems themselves? Afterall, they are recreated at boot time, aren't they? -- gentoo-user@gentoo.org mailing list