public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Dale <dalek@exceedtech.net>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Moving linux system to another partition
Date: Fri, 08 Jun 2007 17:38:42 -0500	[thread overview]
Message-ID: <4669DA72.4070005@exceedtech.net> (raw)
In-Reply-To: <200706081748.03919.alan@linuxholdings.co.za>

[-- Attachment #1: Type: text/plain, Size: 1604 bytes --]

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

:-)  :-)  :-)  :-)

[-- Attachment #2: Type: text/html, Size: 2169 bytes --]

  parent reply	other threads:[~2007-06-08 22:45 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-08 15:05 [gentoo-user] Moving linux system to another partition Aleksey Kunitskiy
2007-06-08 15:18 ` Hemmann, Volker Armin
2007-06-08 15:48   ` Alan McKinnon
2007-06-08 15:59     ` Albert Hopkins
2007-06-08 16:21       ` Aleksey Kunitskiy
2007-06-08 16:43     ` Tim Allingham
2007-06-08 18:52       ` Hans-Werner Hilse
2007-06-09 18:25         ` Tim Allingham
2007-06-11  7:24         ` Mick
2007-06-11  8:58           ` Hans-Werner Hilse
2007-06-11 15:18             ` Randy Barlow
2007-06-11 14:54               ` Alan McKinnon
2007-06-11 15:00               ` Hans-Werner Hilse
2007-06-08 22:38     ` Dale [this message]
     [not found]   ` <200706081839.07324.alexey.kv@gmail.com>
2007-06-08 15:59     ` Mauro Faccenda
2007-06-08 15:54 ` Albert Hopkins
2007-06-08 16:01   ` Mauro Faccenda
2007-06-08 18:09     ` Benno Schulenberg
2007-06-08 16:25 ` [gentoo-user] " Remy Blank
2007-06-09  8:45 ` [gentoo-user] " Vladimir Rusinov
  -- strict thread matches above, loose matches on Subject: below --
2007-06-08 16:40 burlingk
2007-06-08 16:52 burlingk
2007-06-09  0:01 jamesc
2007-06-09  0:25 ` Albert Hopkins
2007-06-09  8:14   ` Florian Philipp
2007-06-09  0:18 jamesc
2007-06-09  0:43 jamesc

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4669DA72.4070005@exceedtech.net \
    --to=dalek@exceedtech.net \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox