[Resolved] Mender-convert sdimg mount failing

Hello! I’ve been using mender-convert for a few months now to update raspberry pis in the wild. I tried to cut a new release today like I usually do and hit the following error from mender-convert during step 4: wrong fs type, bad option, bad superblock on /dev/mapper/loop0p2, missing codepage or helper program, or other error

Any ideas how to resolve this? For context, I’m still on mender 1.6 and running the following commands to convert a debian image to mender.

sudo dd if=/dev/rdisk2 of=input/golden-image.img bs=1m && sync
sudo chown $(whoami):staff input/golden-image.img
./docker-mender-convert raw-disk-image-shrink-rootfs --raw-disk-image $RAW_DISK_IMAGE
./docker-mender-convert from-raw-disk-image                 \
            --storage-total-size-mb 15000                   \
            --data-part-size-mb 6000                        \
            --raw-disk-image $RAW_DISK_IMAGE                \
            --mender-disk-image $MENDER_DISK_IMAGE          \
            --device-type "raspberrypi3"                    \
            --mender-client /mender                         \
            --artifact-name "hiome-core-${RELEASE}"         \
            --bootloader-toolchain arm-linux-gnueabihf      \
            --server-url "https://hosted.mender.io"         \
            --tenant-token $TENANT_TOKEN

Thanks!

hi , i have one doubt
mender-disk-image $MENDER_DISK_IMAGE
which image(MENDER_DISK_IMAGE) ur using …?

Looks like the issue was a corrupted source image somehow. Recreated the golden image from scratch and it converted fine now.

1 Like