0

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.

2
  • You can use dd to get the exact same thing on another drive.
    – user210972
    Commented Jul 29, 2015 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
    Commented Jul 29, 2015 at 19:34

1 Answer 1

4

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.

1
  • nice, people should start passing this around more often... heh
    – Tcll
    Commented Jul 29, 2015 at 20:06

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .