Re: how to create an image of your debian computer hard drive for cloning



On Tue, 2008-09-30 at 23:14 +0200, Hans Ekbrand wrote:
On Tue, Sep 30, 2008 at 09:49:08PM +0200, Aniruddha wrote:
On Tue, 2008-09-30 at 14:18 -0400, David Clymer wrote:
On Tue, Sep 30, 2008 at 1:11 PM, Robert Robert <robertrobert93@xxxxxxxxx> wrote:
Dear All,
I was wondering how I could make a clone or image of my computer hard disk
that contains debian OS. I want to do this in order to make an exact copy to
another clean pc with no os at all. What complete free software can I use
for this ? Is there a manual some where on the net about this ?

I highly recommend Clonezilla-live. it makes cloning to/from any sort
of storage very simple. You can clone to an attached usb drive, to a
network drive via nfs, samba, or ssh. (http://www.clonezilla.org/)


Clonezilla uses partimage which I haven't found too reliable. I still
prefer to tar /. It works perfectly every time.

To tar / will not

- partition the disk
- make a partition bootable
- put the right files on the right partitions unless the partitions are
- created manually
- mounted at the correct mountpoints.

The OP mentioned a "clean pc with no os at all", which sounds much
like an unpartitioned disk, on which tar / will not work at all (since
there is no partitions and no filesystem to untar to).

-Boot livecd
-Run cfdisk
-Format partitions
-Unpack tar
-Chroot
-Adjust config files
-Run grub-install

This takes about 30 minutes. Alternatively if one really want to do bare
metal recovery; image products from Paragon and Acronis are the best
choice.


--
Regards,

Aniruddha





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



Relevant Pages

  • Re: Software to clone disk and resize target partiions at same time?
    ... >> resize any or all of the partitions. ... That only means that partitions it doesnt understand the format ... I think its best to clone from the bootable rescue CD too, ... > I have to be sure and unplug it and plug the target disk in it's place so ...
    (comp.sys.ibm.pc.hardware.storage)
  • Re: quickly partition disk, copy an image, install grub
    ... just clarifying: ... > swapp partitions might be of major issue on usb-sticks and cf ... > the problem with low level copying a disk to another with dd... ... tar /mnt/master ...
    (Debian-User)
  • Re: Upgrade to new drive issues
    ... I started the clone anyway with a proportional parttion copy which ran ... partition and got a disk error. ... I am reluctant to use partition magic to delete the partitions since I do ... resolved your problem as it involves the cloning of partitions from one HDD ...
    (microsoft.public.windowsxp.hardware)
  • Re: How to mirror a Linux Server?
    ... I think put hard disk out and duplicate hard disk may be the easiest ... If you either use an IDENTICAL disk or at lest create IDENTICAL PARTITIONS on the new one to the old one, dd will clone either the whole disk or just the partitions. ... If the hardware is identical, but the disk is bigger, you can clone partitions as long as they are the same size..what that usually means is usinf DD on things like / /usr and so on and using tar to get the data from different sized partitions. ...
    (comp.os.linux.misc)
  • Re: Acronis TrueImage question
    ... If you're trying to answer my question, disk ... >>To the best of my knowledge Acronis True Image (unlike Symantec's Norton ... >>partitions on that disk; however, ... clone the entire contents of your internal HD to your ...
    (microsoft.public.windowsxp.general)