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



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).

If you can plug the hard disk of the "clean pc" into your existing
system, then I recommend dd. If you need to manually move the data
between the computers then partimaged is handier. If both computers
exists in a fast lan, I guess you could just

At source
- export / from the source over NFS
At target
- boot a live cd on the target,
- mount source.ip:/ /mnt
- dd if=/mnt/dev/sda (or whatever hard disk on source is) of=/dev/sda

(This tip is untested though).

--
Linux amin 2.6.18-4-486 #1 Mon Mar 26 16:39:10 UTC 2007 i586 GNU/Linux
Hans Ekbrand (http://sociologi.cjb.net) <hans@xxxxxxxxxxxxxxxxx>
GPG Fingerprint: 1408 C8D5 1E7D 4C9C C27E 014F 7C2C 872A 7050 614E

Attachment: signature.asc
Description: Digital signature



Relevant Pages

  • Re: Transfer F7 partition to a new hard disk
    ... I have just bought a new hard disk. ... If you truly want a clone, and this can be dangerous, you have been warned: ... The dangerous part comes in if you have labels on the partitions. ... Linus Torvalds ...
    (Fedora)
  • Re: how to create an image of your debian computer hard drive for cloning
    ... I was wondering how I could make a clone or image of my computer hard disk ... make a partition bootable ... between the computers then partimaged is handier. ...
    (Debian-User)
  • Re: Back up hard disk
    ... the partitions caused some problems last week and I had to switch it off. ... I have bought a second hard disk in case the first hard fails altogether ... I want to clone the first hard disk onto the new hard disk and I have been ...
    (microsoft.public.windowsxp.hardware)
  • Re: Back up hard disk
    ... Use disk imaging software to clone a hard disk. ... Popular programs are Acronis True Image, Symantec Norton Ghost and Image for Windows by Terabyte Unlimited. ... the partitions caused some problems last week and I had to switch it off. ...
    (microsoft.public.windowsxp.hardware)
  • Re: New computer
    ... > thing I would do is to run Partition Magic, and create partitions like I ... Ghost your current HD for later restore to your current machine. ... Remove the hard disk and install it in your new computer. ... Folow the on-screen instructions and install new drivers as necessary. ...
    (microsoft.public.win2000.general)