General discussion

Locked

recovering a dd image to original state.

By dennis ·
I?ve been asked to help in a government project which involves restoring a drive to it?s original state from a dd image. How the images were originaly created is questionable but I have narrowed it down to the fact that they were created by booting with an old version of Red Hat on an xp pro box then using dd. Each drive was imaged to a clean drive so that now I have a raw drive with 20 images ending in .001, .002 and so forth. Each image is 2gig in size.There is also a text file as well. My delema is that I know very little about dd or linux as a whole. I?ve read articles and still do not have the answer I need. I was hoping you could point me in the right direction. Any help would be most appriciated.

This conversation is currently closed to new comments.

2 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

by Jaqui In reply to recovering a dd image to ...

if you have the bootable linux cd, then you are laughing.

boot it up.
open console window ( or go to rescue mode )

type dd /path/to/image.file.name /dev/hda(whichever partition number you are restoring)

hda1 ( first primary, usually windows partition on dual boot)
hda4(5) last primary first extended partition

read the text file, it may have important info about the image files

but if you can boot to console in linux, then it is simply typing the command with a path to image file, and a path to write point.
usually write point will be a device, not a mount point.
( with linux you can mount the image without actually writing it to disk )

Collapse -

by sarahmeggs In reply to recovering a dd image to ...

I dont' know if you have solved this - most likely. But dd is pretty simple to use:

dd if=<input file> of=<output file>

You sometimes have to use block sizes, bs=<some value> if it doesn't work the first time with no block size specified, but generally the default will do.

In linux, everything is a file, so you can, once you have booted off the cd, run the command above with the approprite input file name and the output file name of the destination drive - /dev/hda3 or whatever it is.

Back to Linux Forum
2 total posts (Page 1 of 1)  

Related Discussions

Related Forums