From: Mike Edenfield <kutulu@kutulu.org>
To: gentoo-user@lists.gentoo.org
Cc: Marc Blumentritt <marc.blumentritt@arcor.de>
Subject: Re: [gentoo-user] Best way to copy /* ?
Date: Tue, 28 Dec 2010 00:02:31 -0500 [thread overview]
Message-ID: <4D196F67.1010400@kutulu.org> (raw)
In-Reply-To: <ifaass$5v6$1@dough.gmane.org>
On 12/27/2010 10:20 AM, Marc Blumentritt wrote:
> Hi,
>
> I have bought myself a Christmas present, a new shiny hard disk. Now I
> want to copy my old Gentoo system to my new disk like this:
>
> 1.) boot with gentoo boot cd
> 2.) mount my old system ind /old ( / in one partition, /home, /usr,
> /var, /tmp and /opt in lvm2 volumes and /boot on it's own partition)
> 3.) mount my new disk ind /new (just 2 partitions, 1 for / and 1 for /boot)
> 4.) copy from /old to /new
> 5.) modify fstab and prepare grub
> 6.) reboot
>
> Concerning step 4: what is the best copy command?
> I tried with
>
> cp -a /old/* /new
This should have gotten the permissions right; -a implies
--preserve=all. Not sure what happened there.
The tar method you're looking for is:
tar -C /old cpf - | tar -C /new xvpf -
You'll probably not want to do the entire / in a single go,
since /proc, /sys, and /dev (at least) should be skipped.
Copy /old/sbin -> /new/sbin, etc. for all of the root
folders that aren't their own partitions. The rest you can
do the entire mount point at once, though I'm not sure you
really need to copy /tmp either.
You can also use rsync, dump/restore, and probably a dozen
other tools to make this work. Google for "backup entire
hard disk" and start reading :)
--Mike
next prev parent reply other threads:[~2010-12-28 5:04 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-27 15:20 [gentoo-user] Best way to copy /* ? Marc Blumentritt
2010-12-27 15:20 ` Etaoin Shrdlu
2010-12-27 16:37 ` Neil Bothwick
2010-12-27 16:52 ` Mark Knecht
2010-12-27 17:05 ` [gentoo-user] " Remy Blank
2010-12-27 20:26 ` Marc Blumentritt
2010-12-27 21:23 ` Remy Blank
2010-12-28 8:56 ` Marc Blumentritt
2010-12-28 9:18 ` Remy Blank
2010-12-28 10:49 ` Neil Bothwick
2010-12-27 15:30 ` [gentoo-user] " ich bins
2010-12-27 15:34 ` [gentoo-user] " Lubos Kolouch
2010-12-27 15:41 ` [gentoo-user] " Jarry
2010-12-27 15:47 ` Dale
2010-12-29 17:03 ` Peter Humphrey
2010-12-29 17:14 ` Maciej Grela
2010-12-29 17:43 ` Paul Hartman
2010-12-29 17:50 ` Alex Schuster
2010-12-29 18:30 ` Peter Humphrey
2010-12-29 18:41 ` Alex Schuster
2010-12-29 19:16 ` Mick
2010-12-29 20:24 ` Stefan G. Weichinger
2010-12-27 17:27 ` Volker Armin Hemmann
2010-12-27 17:38 ` Mark Knecht
2010-12-27 17:51 ` Volker Armin Hemmann
2010-12-27 18:01 ` Mark Knecht
2010-12-27 17:45 ` Dale
2010-12-27 18:45 ` Neil Bothwick
2010-12-27 21:35 ` Dale
2010-12-28 5:02 ` Mike Edenfield [this message]
2010-12-28 13:20 ` Alex Schuster
2010-12-28 13:32 ` Neil Bothwick
2010-12-28 16:26 ` Joerg Schilling
2010-12-28 18:41 ` Mick
2010-12-29 15:38 ` Joerg Schilling
2010-12-29 16:17 ` Mick
2010-12-28 22:33 ` Neil Bothwick
2010-12-28 23:16 ` Mick
2010-12-28 23:36 ` Joerg Schilling
2010-12-29 0:51 ` Alex Schuster
2010-12-28 23:08 ` Alex Schuster
2010-12-29 14:40 ` [gentoo-user] Re: Best way to copy /* ? [SOLVED] Marc Blumentritt
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=4D196F67.1010400@kutulu.org \
--to=kutulu@kutulu.org \
--cc=gentoo-user@lists.gentoo.org \
--cc=marc.blumentritt@arcor.de \
/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