Formatting RPi FW image on SD card | Input file is not valid disk image. File size 102736650 bytes is not a multiple of 512 bytes

Hi,

In relation to the other post I’m trying a new installation to fix this issue.

In Step 2 of the doc: PiFi Docs - Download & Setup Guide

I selected RPi imager.

Step 3: I downloaded the latest RPi FW image for Rpi5.

Version 0.1.5.21 ( based on OpenWRR 24.10.1

At step 4 of PiFi Docs - Download & Setup Guide I get the below error:

"Input file is not a valid disk image. File size 102736650 bytes is not a multiple of 512 bytes. "

I recall having this same error last time I did the installation but can’t remember what was the resolution.

Hi,

Odd issue, haven’t experienced it myself. Can I ask which version of imager you have (should show on Pi imager)

I can see if I can recreate issue to help fix. Another way is to flash via https://etcher.balena.io/ but if I know which Pi imager you’re using as I haven’t seen that issue before

Hi again,

Thanks for the reply.

I think it was due to the wrong file type being used when I was using RPi imager. But I’m not sure

I think I didn’t extract the file fully or properly. I’m.not sure tbh…bcos I tried numerous times.

Although I was going through this step multiple times with a friend over WhatsApp chat doing it very systematically it failed numerous times.

I thought I was loading the correct file ( .img ) into the RPi imager.

i.e the .img file inside the extracted folder ( the folder that was extracted from the .gz file )

It may have been that I chose the incorrect option in 7zip to extract the folder which was causing the issue I’m not sure.

The menu options of 7zip were in Spanish so I maybe didn’t choose the right one ( I think I chose “Extract here” and the other option was “Extract Archive”)

It could be nice to put those ( *** simple but important *** ) steps on the PiFi guide doc ( bcos I see related posts on related forums about similiar error messages )

E.g:

Thanks again for your feedback,

“I think I didn’t extract the file fully or properly. I’m.not sure tbh…bcos I tried numerous times.”

No need to do so at all. Take the file as it is and add it to Raspberry Pi imager.

No suggestion to extract anything. Flash image exactly as-is from website (the img.gz version). Should just work?