Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image is not a valid disk image. on one provisioner but not another? #53

Open
synaption opened this issue Jul 1, 2024 · 3 comments
Open

Comments

@synaption
Copy link

I am getting this error message on one device but not another.
Image is not a valid disk image. Uncompressed size not dividable by sector size of 512 bytes.
They are trying to upload the same image.
One device is running the latest rasberry pi os bookworm, the other is running an old version of buster.
I'm not sure what else could be different that causes this error. Should I start from scratch?

@maxnet
Copy link
Collaborator

maxnet commented Jul 1, 2024

It only checks the disk size if "verify" is on in the project settings.
So you probably do not have that enabled in one of the projects.

Regardless of that, you are probably taking disk images the wrong way.
Your image size should never be something else than a multiple of 512 bytes.
That is the smallest unit a disk can address.

@synaption
Copy link
Author

I tried "Verify that image was written correctly" set to on and off on both with no difference. I have now zero padded the image which seems to work. truncate -s %512 sdcard.img.bz2

@maxnet
Copy link
Collaborator

maxnet commented Jul 1, 2024

If you are going to zero pad, do make sure you are padding the uncompressed image, and not a .bz2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants