How do I perform a Hard Disk Image Restore to a different disk

James McDonald james
Fri Jun 15 00:17:23 PDT 2007


I have an image of a partition which I took ages ago
 
I must have done a dd or something (I don't remember) but the md5sum.txt 
I left in the same directory as the image file says it's an exact copy 
of the /dev/hdb1 I took it off.

20060601-hdb1-beige_tower.img             100% 
c93fdfd25b90ed78ee0917383d0bf964
 
sudo md5sum /dev/hdb1
c93fdfd25b90ed78ee0917383d0bf964  /dev/hdb1


My question is how do I restore this back to a hard disk with a 
partition that isn't necessarily the same size?

i can't just do dd if=image.img of=/dev/hdb1 because the image will be 
for the wrong size...

any ideas?




More information about the Linux-users mailing list