LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Restore files from "dd" image (https://www.linuxquestions.org/questions/linux-general-1/restore-files-from-dd-image-618939/)

booshire 01-25-2011 11:58 AM

Offset
 
Sorry to reply on this zombie, but I cannot resist. To mount this image you have to use the "offset" extension. Check the man page. If you run fdisk -ul [imagef.ile] on the image you can grab the partitioning information and use the start block = to the offse.

Almost forgot, you have to take the block size x the number of blocks, so if it is 512 like default, just take the start block x 512.

example:

fdisk -lu sda.img
mount -o loop,offset=1048576 -t ext4 /backup/sda.img /old

PTrenholme 01-25-2011 12:08 PM

Did you read the whole thread before posting? Does your post add anything to unSpawn's post #8, above, in this thread? :scratch:

fritzdjam 06-30-2011 09:15 PM

Hi
I not so Familliar with taht extension but I had a crash disk and i use dataresue to save my data . since that a got a dd extension and i dont know how to get those datas back,on google i read those posts. can someone explain me what to do step by step if possible

theNbomr 06-30-2011 11:03 PM

It turns out there is another solution to this problem, which I have used; kpartx. There once was a very nice blog article with a perfect recipe for using it in this application. I cannot seem to find it at the moment, and the rest of what I can find isn't very illuminating. It is exactly the right tool, though, and I've used it a few times on a disk image dd'd from a multi-partition SD flash card.
--- rod.

unSpawn 07-01-2011 12:42 AM

Quote:

Originally Posted by theNbomr (Post 4400961)
It turns out there is another solution to this problem, which I have used; kpartx. There once was a very nice blog article with a perfect recipe for using it in this application. I cannot seem to find it at the moment, and the rest of what I can find isn't very illuminating. It is exactly the right tool, though, and I've used it a few times on a disk image dd'd from a multi-partition SD flash card.

I wrote about kpartx here and here aprox half a month after I made my previous post in this thread and there isn't really much more to using the command than that.


All times are GMT -5. The time now is 06:28 AM.