public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Rumen Yotov <rumen@qrypto.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Install Migration
Date: Tue, 05 Jun 2007 03:39:22 +0300	[thread overview]
Message-ID: <4664B0BA.5060001@qrypto.org> (raw)
In-Reply-To: <20070604230838.GA30684@cortana.slightlyderanged.net>

Richard Cox wrote:
> On Mon, Jun 04, 2007 at 04:52:26PM -0500, Randy Barlow wrote:
>> I've set up my desktop machine using LVM over software raid, and 
>> although I like it I'm getting weary of the complication of the setup 
>> for a simple desktop system.  What I would like to do is get the same 
>> install (packages, config files, etc) as are currently used, but have it 
>> all on one file system for simplicity.  I know I can use DD to copy a 
>> filesystem, but I don't think that will work in this case.  I was 
>> thinking of doing a fresh install and then using my backup of /etc to 
>> try and get the same setup.  If I copy the world file from the previous 
>> system and emerge -e world, will that get all the packages I currently 
>> have?  Afterwards I would just copy the rest of /etc into place and go 
>> about on my merry way.  Are there any problems with this approach?
>>
>> R
>> -- 
>> gentoo-user@gentoo.org mailing list
> 
> 
> Normally I just use the dump and restore utilites for this.
> Forgive me if the syntax is a bit off, I haven't had to do this for a little while.
> 
> I usually do this from a seperate machine on the network:
> On the machine you don't want to reformat do:
> ssh root@oldmachine dump 0fz9 - /dev/device_to_backup > backup.image
> 
> That will do a full dump of the filesystem to your other machine that you will restore later.  When you restore that, it won't care about partitions or filesystem so you can change them however you want.
> 
> Wipe / format you old machine how you want it, and boot a gentoo install cd or some other live cd (unless the gentoo cd has changed recently it won't have restore on it tho).  Then on that old machine that you just wiped mount the new fresh filesystem (should be completely empty, no stage install or anything).  cd to that directory you just mounted and do:
> 
> ssh user@machine_with_backup cat /path_to/backup.image | restore -xf -
> 
> That'll cat the file back to restore on the old machine and should do a restore into the current directory.
> 
> From there chroot in and reinstall your bootloader / edit fstab if you need, etc etc.  :)
> 
> -Rick
Hi,
Nice info, thanks (i'm not the OP)
Could recommend "mkstage4.sh" script (search gentoo-wiki.com)
Works for me.
HTH, Rumen
-- 
gentoo-user@gentoo.org mailing list



  reply	other threads:[~2007-06-05  0:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-04 21:52 [gentoo-user] Install Migration Randy Barlow
2007-06-04 23:08 ` Richard Cox
2007-06-05  0:39   ` Rumen Yotov [this message]
2007-06-05  7:33 ` Alan McKinnon
2007-06-05 11:54   ` Randy Barlow
2007-06-05 16:00     ` Alan McKinnon
  -- strict thread matches above, loose matches on Subject: below --
2007-06-04 21:58 Randy Barlow

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=4664B0BA.5060001@qrypto.org \
    --to=rumen@qrypto.org \
    --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