0
I always mounted complete disk images with mount -o loop,offeset=$((START * BLOCKSIZE)) image.raw /mnt
It's not working with the last 2 images. I always get the "mount: wrong fs type, bad option, bad superblock on /dev/loop0," message.
With this image the offset should be 1048576
Disk sm.img1: 39.1 GiB, 41943040000 bytes, 81920000 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x0000aa2b
Device Boot Start End Sectors Size Id Type
sm.img11 * 2048 79691775 79689728 38G 83 Linux
....
The image is working, I can boot it in qemu.
The mount cmd I am using:
mount from util-linux 2.29.1 (libmount 2.29.1: btrfs, assert, debug)
What am I doing wrong?
The size is 512. Binwalk found an ext4 signature at 1048576. – gj13 – 2017-03-01T11:11:07.220
The ext4 was not clean and if you use the ro flag ext4 simply doesn't mount it. My dmesg log output terminal was hanging so I did not get the ext4 kernel warning about this. I accept your answer because it is the best method if the blocksize is unknown. – gj13 – 2017-03-01T11:19:08.003