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 1HwnCh-0004It-97 for garchives@archives.gentoo.org; Fri, 08 Jun 2007 22:45:11 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l58Mhuto012107; Fri, 8 Jun 2007 22:43:56 GMT Received: from mirus.exceedtech.net (ns0.exceedtech.net [70.151.169.5]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l58Mck2F006020 for ; Fri, 8 Jun 2007 22:38:46 GMT Received: from [4.230.219.19] (dialup-4.230.219.19.Dial1.Houston1.Level3.net [4.230.219.19]) by mirus.exceedtech.net (8.12.8/8.12.8) with ESMTP id l58Mceqj014704 for ; Fri, 8 Jun 2007 17:38:41 -0500 Message-ID: <4669DA72.4070005@exceedtech.net> Date: Fri, 08 Jun 2007 17:38:42 -0500 From: Dale User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.4) Gecko/20070602 SeaMonkey/1.1.2 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 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Moving linux system to another partition References: <200706081805.00549.alexey.kv@gmail.com> <200706081718.54067.volker.armin.hemmann@tu-clausthal.de> <200706081748.03919.alan@linuxholdings.co.za> In-Reply-To: <200706081748.03919.alan@linuxholdings.co.za> Content-Type: multipart/alternative; boundary="------------000200090804050207000609" X-Archives-Salt: 6db98fac-5cf2-40bb-947b-df6c8dc149e1 X-Archives-Hash: 865f5db10c7da4aeca66c2f1559f50d5 This is a multi-part message in MIME format. --------------000200090804050207000609 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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? >> > > 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 > > > This is something I have done several times. This is how I do it. Boot the Gentoo CD or some other live CD, Knoppix should work. After you get booted up, mount the partitions, old and new, then use this command: cp -av /path/to/old /path/to/new and sit back and watch it all scroll by. It may take a good while depending on how much stuff you have to copy. I'm not saying that someone else doesn't have a better idea. I have seen where people tar the stuff then untar it to the new drive. To me, it is a useless step. What I use has worked for me every time and I have done it quite a bit. I hope that helps. Dale :-) :-) :-) :-) --------------000200090804050207000609 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by robin.gentoo.org id l58Mhuu8012107 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?
    

No.

cp -a is equivalent to cp -dpPR

and from the man page:

-p     same as --preserve=3Dmode,ownership,timestamps

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:

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


  


This is something I have done several times.=C2=A0 This is how I do it.=C2= =A0 Boot the Gentoo CD or some other live CD, Knoppix should work.=C2=A0 Afte= r you get booted up, mount the partitions, old and new, then use this command:=C2=A0 cp -av /path/to/old /path/to/new and sit back and watch it all scroll by.=C2=A0 It may take a good while depending on how much stuff you have to copy.

I'm not saying that someone else doesn't have a better idea.=C2=A0 I have seen where people tar the stuff then untar it to the new drive.=C2=A0 To = me, it is a useless step.=C2=A0 What I use has worked for me every time and I have done it quite a bit.

I hope that helps.

Dale

:-)=C2=A0 :-)=C2=A0 :-)=C2=A0 :-)
--------------000200090804050207000609-- -- gentoo-user@gentoo.org mailing list