Re: Transport debian woody from laptop to PC

From: Blake Swadling (blake_at_swadling.com)
Date: 10/05/04

  • Next message: Adi Linden: "Re: Woody or Sarge"
    To: Debian User <debian-user@lists.debian.org>
    Date: Tue, 05 Oct 2004 15:25:09 +1000
    
    
    

    On Tue, 2004-10-05 at 13:50, Paolo Alexis Falcone wrote:
    > On Tue, 5 Oct 2004 05:16:26 +0200, Oliver Fuchs
    > <oliverfuchs@onlinehome.de> wrote:
    > > Hi,
    > >
    > > I am running a debian woody box for a long time now on my laptop.
    > > I want to install it now with the (nearly) same configuration on my PC.
    > > Can I transport the laptop system (for example via tar) to my PC or won't
    > > this work.

    we routinely clone PCs running RedHat using by doing (almost) a simple
    cp -ax. we just set up our partitions as required and do a cp -ax like
    so ...

    -------------------------------------------------
    #!/bin/bash
    CWD=`pwd`
    mkswap -f /dev/hdc1
    mke2fs -j -L / /dev/hdc2
    mke2fs -j -L /home /dev/hdc3

    mount -t ext3 /dev/hdc2 /mnt/clone
    mount -t ext3 /dev/hdc4 /mnt/clone/home

    cp -axv / /mnt/clone
    cp -axv /home /mnt/clone

    cd ${CWD}
    umount /mnt/clone/home
    umount /mnt/clone
    --------------------------------------------------

    if you want to make it bootable (when connected as a primay master) then
    you have to muck around with grub or lilo to get it going. I haven't
    done it with grub, but lilo used to involve doing a chroot, and
    installing lilo on the second drive. the lilo.conf was set up so that it
    assumed the drive was a primary master and so was not bootable until
    connected properly.

    --------------------------------------------------
    chroot /mnt/clone
    sbin/lilo -C /etc/lilo.conf.clone
    exit
    --------------------------------------------------

    Cheers

    Blake Swadling
    Senior Software Engineer
    Newton Pty Ltd

    Telephone:
    +61 2 6247 3544
    Fax:
    +61 2 6247 3533
    Mobile:
    +61 407 026277
    Web:
    http://www.newton.com.au

    
    

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


  • Next message: Adi Linden: "Re: Woody or Sarge"

    Relevant Pages

    • Re: lilo and xp
      ... the idea with chroot is that you set your execution path, temporarily, on ... get rid of grub by 'wiping out' the mbr. ... boot your rh rescue disk, make your lilo edits, run and install lilo ... I think grub also chainloads OSs like xp. ...
      (comp.os.linux)
    • Re: Why all the futzing with boot loaders
      ... Now apt-get dist-upgrade _removes_ a working GRUB and installs a non-working LILO; ... There are a few situations, if I recall correctly, where lilo worked but grub didn't. ... IMHO, grub is a HUGE improvement over lilo, because you can have multiple boot options configured simultaneously, so if you screw up a new kernel install, you can always boot from the old one. ... Secondary loader: 19 sectors. ...
      (Debian-User)
    • Re: grub segmentation fault on RAID 1 lvm
      ... >This is not so true with RAID. ... Grub does not support it like lilo does. ... >and still be able to boot into the degraded one. ...
      (Fedora)
    • RE: Two OS - boot?
      ... It doesn't sound like you have choosen to use LILO or GRUB. ... linux disk if you want....the linux vmlinuz boot up will not be in the ... your BIOS to point to that disk to boot and leave it. ...
      (RedHat)
    • Re: lilo, grub & loadlin ?
      ... loadlin loader which can read reiser. ... LILO doesn't read filesystems. ... lilo and grub). ... wired specificly for any paritular file system -- /boot can be any type ...
      (comp.os.linux.misc)