[ltp] Cloning a hard disk?

Patrick Huber linux-thinkpad@linux-thinkpad.org
Thu, 18 Aug 2005 17:33:08 +0200


Sure, that'll work fine.

To copy the entire disk, use the device file for the disk and not for the 
partitions (use /dev/hda instead of /dev/hda1).

dd if=/dev/hda of=/dev/sda

Am Donnerstag, 18. August 2005 17.08 schrieb Jaime Iniesta:
> Do you think this would work if instead of mounting the new HD on another
> machine, I've got it mounted by USB on the Thinkpad?
>
> I mean, boot the Thinkpad with a Knoppixx CD and 'dd' the /dev/hda to
> /media/usb or whatever is called the new HD.
>
> I want to clone the *entire* HD, not just a partition, to keep the hidden
> Windows recovery partition.
>
> Jaime
>
> 2005/8/18, Richard Neill <rn214@hermes.cam.ac.uk>:
> > Paul Kaplan wrote:
> > >>So I'm looking for a Windows software that will let me clone the IBM
> >
> > hard
> >
> > >>disk, entirely, with all its partitions and data, onto the Samsung hard
> > >>disk.
> >
> > Boot the laptop with knoppix. Then, something like:
> >
> >
> > dd if=/dev/hda1 | ssh root@des-machine -e "cat /dev/hdX1"
> >
> >
> > This assumes you have the samsung disk mounted in another machine.
> >
> > Notes:
> >
> > 1)check my syntax - I am not certain it's correct
> >
> > 2)Remember to test the new image!
> >
> > 3)Think carefully about partitions. If you copy them over partition at a
> > time, you'll need to partition the new disk first. If you copy over the
> > entire disk (dev/hda rather than dev/hda1), then what happens if the two
> > disks are not exactly the same size?
> >
> > Richard
> > --
> > The linux-thinkpad mailing list home page is at:
> > http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad