Re: cloning Debian?

From: Manolis Tzanidakis (mtzanidakis_at_freemail.gr)
Date: 08/19/03

  • Next message: Alvin Oga: "Re: placement of partitions on hard drive"
    Date: Tue, 19 Aug 2003 01:54:12 +0300
    To: debian-user@lists.debian.org
    
    
    

    [20030818] Gregory Guthrie <guthrie@mum.edu> wrote:

    [snip]
    > I have a working system, and want to clone it to a bigger, newer, faster
    > one, keeping the old one as a backup...
    [/snip]

    [snip]
    > Any ideas on remedies, or other /better ways to do a remote clone?
    > I've spent way.... too much time trying things that should work in a simple
    > manner!
    [/snip]

    My way for cloning debian installations remotely via ssh, aka
    getting our hands dirty.
    First grab an iso of lnx-bbx (from lnx-bbx.org), burn it, boot
    it on the "target" box, set up network & make sure the "source"
    box has sshd running.

    On the "target" :
    1. cfdisk your disk
    2. mkfs your destination partitions
    3. $ mkdir /mnt/rw/target
    4. mount destination partitions on /mnt/rw/target
    5. $ cd /mnt/rw/target
    6. $ ssh SOURCE_IP 'cd /; tar -cplf - C / .' | tar xpvf - -C .
    (repeat 6 for all separate mounted partitions, like /boot, /usr
    etc. by replacing 'cd /' with ie 'cd /boot')

    Take a nice nap :)

    7. edit /mnt/rw/target/etc/{lilo.conf,fstab} to match the "target"
    system.
    8. $ lilo -v -C /mnt/rw/target/etc/lilo.conf
    9. reboot & re-run lilo on the target box.

    -- 
    Manolis Tzanidakis
    (mtzanidakis-at-freemail-dot-gr)
    Jabber: mtzanidakis@jabber.org
    ICQ: 102798230
    GnuPG Key Fingerprint: 
    5CA5 41D6 09F1 C4B9 C331
    65EF 4B3F 6979 EB8C 88F3
    Get my public key at: pgp.mit.edu
    
    

    -- 
    To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    


  • Next message: Alvin Oga: "Re: placement of partitions on hard drive"

    Relevant Pages

    • Re: Ghost/Clone Hard Drive?
      ... will snip some unrelated stuff and comment inline...And please, ... solid state disk. ... I used Spotmau Clone Genius but while the clone did ... I would strongly second Gene's suggestion to take a look at the Casper 5 ...
      (microsoft.public.windows.vista.general)
    • Re: Ghost/Clone Hard Drive?
      ... will snip some unrelated stuff and comment inline...And please, ... solid state disk. ... I used Spotmau Clone Genius but while the clone did ... I would strongly second Gene's suggestion to take a look at the Casper 5 ...
      (microsoft.public.windows.vista.general)
    • Re: President Lincolns own prayer for the United States
      ... clone that exists now or will exist at some point in the future. ... of survival, despite that as Dawkins noted, "Genes don't care ... worlds where I went back and cured or warned them. ...
      (soc.retirement)
    • Re: Servos integral to surfaces?
      ... radios and blah blah blah, all of which ideas of genius you will 'leave ... to the experts' to actually make work <snip> ... Then I will put a few photos of the working system onto a CD. ... albeit not with the ideally designed servo. ...
      (rec.models.rc.air)
    • Re: New build not powering up
      ... compared to paying a bit more for a working system! ... someone who has a degree in software engineering and knows his way ...
      (uk.comp.homebuilt)