HardDiskCloning
Jump to navigation
Jump to search
A heavily edited email response by Sergey Plis sent to the UNM csgrad list.
> Is it possible to clone/copy the entire hard disk (A) to another formatted hard disk (B)?
I had two identical disks one of which was partitioned and had linux and windows on it. Here's what I did:
1. Copy the partition table
- sfdisk -d /dev/hda > hda.out%%%sfdisk /dev/hdc < hda.out
2. For each partition, copy sector by sector
- for example
- dd -if /dev/hda2 -of /dev/hdc2
The second step can take a very long time.
Last Edit: Tue, 10 Jun 2003 11:31:27 -0700 Revisions: 1