Help to restore a dd image file back to the hard drive
I've read the faqs and can find info on creating images but not of restoring them back to the hard drive.
I have created a dd image file of the complete hard drive /dev/hda on a removeable hard drive
using
dd if=/dev/hda of=/mnt/sdb1/image.dd
Now I am trying to restore the image back to the hard drive as an upgrade went wrong.
However
dd if=/mnt/sdb1/image.dd of=/dev/hda is not working.
I think I have to make hda writeable but I don't know the exact syntax of the command I need.
On the left of the desktop I can find icons for hda1, hda3 and hda7 which are currently on my machine but are currently unmounted.
What exactly do I do here?
Hope someone can help.
Regards
Brian C
Re: Help to restore a dd image file back to the hard drive
Are you getting an error message? Describe "not working."
1. You must be root, and running from the Knoppix CD.
2. NOTHING on hda should be mounted, including swap.
' swapon -s ' == swap status; ' swapoff /dev/hdaX '
' umount /dev/hda* '
3. ' dd if=/mnt/sdb1/image.dd of=/dev/hda bs=2M '
Note: It may be more useful to image partitions (/dev/hda1) rather than the entire drive.
--You can also compress/uncompress the drive image on the fly:
' dd if=/dev/hda bs=1M |gzip -9 >/mnt/sdb1/image.dd.gz '
' gzip -cd image.dd.gz > /dev/hda ' == Restore
Quote:
Originally Posted by BrianC
I've read the faqs and can find info on creating images but not of restoring them back to the hard drive.
I have created a dd image file of the complete hard drive /dev/hda on a removeable hard drive
using
dd if=/dev/hda of=/mnt/sdb1/image.dd
Now I am trying to restore the image back to the hard drive as an upgrade went wrong.
However
dd if=/mnt/sdb1/image.dd of=/dev/hda is not working.
I think I have to make hda writeable but I don't know the exact syntax of the command I need.
On the left of the desktop I can find icons for hda1, hda3 and hda7 which are currently on my machine but are currently unmounted.
What exactly do I do here?
Hope someone can help.
Regards
Brian C
Re: Help to restore a dd image file back to the hard drive
Quote:
Originally Posted by BrianC
I've read the faqs and can find info on creating images but not of restoring them back to the hard drive.
I have created a dd image file of the complete hard drive /dev/hda on a removeable hard drive
using
dd if=/dev/hda of=/mnt/sdb1/image.dd
Now I am trying to restore the image back to the hard drive as an upgrade went wrong.
However
dd if=/mnt/sdb1/image.dd of=/dev/hda is not working.
I think I have to make hda writeable but I don't know the exact syntax of the command I need.
On the left of the desktop I can find icons for hda1, hda3 and hda7 which are currently on my machine but are currently unmounted.
What exactly do I do here?
Hope someone can help.
Regards
Brian C
I am having a similar challenge. I made a HD image using DD, but grabbed the SDA1, not the entire disk image SDA. Every attempt I make to restore the image, including ones involving restoring to a partition larger than the original disk etc., all result in failure. The image I am trying to restore is an XP drive and the MFT does not restore to the correct location, if at all. Is there something simple I am missing to enable a simple recovery of this image? I've restored dd'd images, but am at a loss to restore a partition.
Any help would be most apprec.; I've spent way too many hours trying various alts. unsuccessfully....
Re: Help to restore a dd image file back to the hard drive
Same thing happened to me on a laptop. I was screwed, and had to basically reinstall Windows - so at that point I said hell with it and installed Knoppix. :)
One can always run Windows under vmware, after all...
Quote:
Originally Posted by JSMATT
Quote:
Originally Posted by BrianC
I've read the faqs and can find info on creating images but not of restoring them back to the hard drive.
I have created a dd image file of the complete hard drive /dev/hda on a removeable hard drive
using
dd if=/dev/hda of=/mnt/sdb1/image.dd
Now I am trying to restore the image back to the hard drive as an upgrade went wrong.
However
dd if=/mnt/sdb1/image.dd of=/dev/hda is not working.
I think I have to make hda writeable but I don't know the exact syntax of the command I need.
On the left of the desktop I can find icons for hda1, hda3 and hda7 which are currently on my machine but are currently unmounted.
What exactly do I do here?
Hope someone can help.
Regards
Brian C
I am having a similar challenge. I made a HD image using DD, but grabbed the SDA1, not the entire disk image SDA. Every attempt I make to restore the image, including ones involving restoring to a partition larger than the original disk etc., all result in failure. The image I am trying to restore is an XP drive and the MFT does not restore to the correct location, if at all. Is there something simple I am missing to enable a simple recovery of this image? I've restored dd'd images, but am at a loss to restore a partition.
Any help would be most apprec.; I've spent way too many hours trying various alts. unsuccessfully....