Explore .raw file?

0

I have a .raw file that is a snapshot of a hard drive. I'm trying to explore the contents of it on my Ubuntu computer, however I'm not sure how to go about doing this. Is there a way to mount it and explore it that way? cat shows many files and their contents, along with directory paths, so I know it's recoverable.

Thanks

jaredfol

Posted 2015-04-18T06:59:13.790

Reputation: 1

Migrate to Ask Ubuntu? – thilina R – 2015-04-18T07:16:23.973

@slayernoah it is perfectly on topic here. http://meta.superuser.com/a/2645/19943

– Mokubai – 2015-04-18T07:20:30.640

hmm. Single partition or a few? – Journeyman Geek – 2015-04-18T07:45:04.563

Answers

0

It depends if its a single partition or a few. I'm rather find of kpartx for actual raw images with more than one drive kpartx -a -v foo.raw load up the .raw file, then you can mount the /dev/mapper devices as if they were normal drives. There's a pretty nice, more complete set of examples on the nfolampblog

If its a single drive joejoe21b's answer should work

Journeyman Geek

Posted 2015-04-18T06:59:13.790

Reputation: 119 122

kpartx -l <file> does not show any output, nor does the command in your answer. – jaredfol – 2015-04-18T21:33:45.453

Are you sure its actually a valid disk image? – Journeyman Geek – 2015-04-18T22:32:53.890