I swear every tutorial I see and every software I run across can't give you an exact image of your drive, it's either gzip-compressed, or it's in another format for some specific software.

I want to open the img in HxD to manually recover my data, so the image needs to be in the EXACT byte-order of the disk.

How can I do this??

why manual recovery over recovery software?

ChkDsk did quite a number on the filesystem, so much so that any mount or recovery gives you 0KB files in 300GB of data.

the data is still there, but nothing can find it.

  • You can use dd to get the exact same thing on another drive. – user210972 Jul 29 '15 at 19:30
  • 1 file right?? that can be taken as cloning the HDD, which I don't quite want to do. (I want to clone, but to a file rather than a disk). How can I do this without gzip?? – Tcll Jul 29 '15 at 19:34

If you're talking about something like https://wiki.archlinux.org/index.php/Disk_cloning#Create_disk_image you see

# dd if=/dev/sdX conv=sync,noerror bs=64K | gzip -c > /path/to/backup.img.gz

Which is getting the data, passing it through gzip, and writing it to a file. Now, watch this:

# dd if=/dev/sdX conv=sync,noerror bs=64K > /path/to/backup.img

Cool, huh? No no, hold your applause.

| improve this answer | |
  • nice, people should start passing this around more often... heh – Tcll Jul 29 '15 at 20:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.