On Mon, Oct 15, 2018 at 01:53:16PM -0700, michel thomasius wrote:
> Hi Hugo,
>
>
> thanks a million. You've hit the nail squarely on the head with your
> suggestions!!
>
> I've download TestDisk and have been able to read some of the data.
> Unfortunately, due to my limited knowledge about partitioning, I've only
> managed to scratch the surface of this ever deepening mystery. But at least
> I feel like I am getting somewhere :)
>
> I attach some pictures of what I have found. It looks like the two
> partitions within the image are of the type CRAMFS. I have tried to mount
> the .bin file on OSX and Ubuntu 16.04 as cramfs, but failed. OSX refuses,
> Ubuntu at least gives me a "cramfs: wrong magic" error in the DMESG log.
> Unfortunately this exhausts my partitioning knowledge, so I was wondering
> whether you know of a way to drive this forward?
cramfs is, as far as I know, a Linux-specific filesystem, so OSX
not knowing about it is expected. It's designed to have a small
footprint for the purposes of embedded systems, so it's not surprising
that it's found here.
"wrong magic" -- most filesystems contain a particular string at a
known location (for example, btrfs has "bHRfs_M_", starting at 65600
bytes from the start of the partition). This is referred to as the
"magic string", and is usually checked by the kernel when it's asked
to mount a filesystem of a particular type. If the right string isn't
found, you get messages like "wrong magic".
So, either it's actually a cramfs image and it's been corrupted, or
it's a non-standard cramfs image with a different magic, or it's
something else, but it happens to look like a cramfs in some other
respect.
Although... did you actually create the partition table entries?
You said you're trying to mount the .bin file, but that in itself
won't mount as cramfs -- you'll have to make the partition table (or
do loopback with the right offsets), and mount from the right place in
the image.
> I suspect that something within the partitioning table is still corrupt or
> misconfigured. But I don't know how to fix that. Would you be happy to lend
> a hand with this?
Sure, although I'm only really around tomorrow evening from 18.30,
and Friday evening this week.
How large is the image file? Could you stick it somewhere that I
could download it?
Hugo.
> (right-click on the images and select "Open Image in new tab" to see the
> original size)
>
> [image: Screen Shot 2018-10-15 at 21.01.37.jpg] <about:invalid#zClosurez>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> [image: Screen Shot 2018-10-15 at 21.01.48.jpg] <about:invalid#zClosurez>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> [image: Screen Shot 2018-10-15 at 21.01.58.jpg] <about:invalid#zClosurez>
>
>
>
>
>
>
>
>
>
>
>
> [image: Screen Shot 2018-10-15 at 21.00.00.jpg] <about:invalid#zClosurez>