Re: How to Move from 1 drive to another?

From: John Summerfield (debian_at_ComputerDatasafe.com.au)
Date: 08/01/04

  • Next message: John Summerfield: "Re: Networking Problem"
    Date: Sun, 01 Aug 2004 09:01:43 +0800
    To: debian-user@lists.debian.org
    
    

    Silvan wrote:

    >On Saturday 31 July 2004 06:21 am, Jonathan Wheelhouse wrote:
    >
    >
    >
    >>>I would boot a Linux Live CD like knoppix, partition and format the new
    >>>drive, copy everything from the old drive to the new one, chroot into the
    >>>"new" system, install a boot loader, reboot and be happy.
    >>>That is a lot easier then installation from scratch and you can keep
    >>>everything installed and configured so far.
    >>>
    >>>
    >>This sounds like the least amount of work and still giving a good
    >>result - I'll give it a go.
    >>
    >>Off to read about chroot .
    >>
    >>
    >
    >I'm not sure why you should need to bother with booting a live CD. I've done
    >this lots of times. Put the new drive in, boot the existing installation,
    >partition and format the new drive from the existing installation, mount its
    >partitions somewhere temporarily, cp -a the stuff over as appropriate, edit
    >its bootloader config and fstab as appropriate, chroot into it and
    >run /sbin/lilo then reboot, and presto. You only need a rescue CD if you
    >screw something up. (Which I've certainly done, yes, so keep that CD in your
    >back pocket. :)
    >
    >

    This does not copy any open files properly. Running mysql or postgresql?
    Stuffed database.

    Single-user mode? maybe okay. Mounted filesystems ro? fine.

    -- 
    Cheers
    John
    -- spambait
    1aaaaaaa@computerdatasafe.com.au  Z1aaaaaaa@computerdatasafe.com.au
    Tourist pics http://portgeographe.environmentaldisasters.cds.merseine.nu/
    -- 
    To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: John Summerfield: "Re: Networking Problem"

    Relevant Pages

    • Re: SATA drive probs: Knoppix OK, but nothing else
      ... <snip - problems booting new installation from SATA drive> ... installed copy of lilo. ... And then chroot into that mounted partition and run the ...
      (Debian-User)
    • Re: How to Move from 1 drive to another?
      ... > Off to read about chroot. ... Put the new drive in, boot the existing installation, ... partition and format the new drive from the existing installation, ... registered Linux user #243621 ...
      (Debian-User)
    • Re: Problems Installing Fedora x86_64
      ... I had to change the BIOS and disable the built in RAID. ... Apparently during the installation, you must have told the installer to ... After exit the chroot and the shell reboot. ... Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines ...
      (Fedora)
    • Re: Restoring old root partitions.
      ... >and chroot to it. ... Then you mount any others needed to support what ... >Now you're on your root partition. ... Check that and umount anything you'll need to remount ...
      (Debian-User)
    • RE: booting up the system
      ... GRUB now is installed and running smoothly on my machine. ... have you fully setup the chroot environment? ... you need to mount your partitions (especially ... Furthermore, on debian CD installation, I skip to another terminal, ...
      (Debian-User)