Closed Quaso17 closed 1 month ago
You've not provided any details of your custom OS. Given that all the other operating systems flash and boot successfully you would need to explain what's different in your custom OS.
You've not provided any details of your custom OS. Given that all the other operating systems flash and boot successfully you would need to explain what's different in your custom OS.
I didnt create the OS and only flashed it onto the SD-Cards before. Its based of Debian Bookworm 64-bit from March this year. Its merely pre-configurations, pre-installed software and thats about it.
Thanks for the report, @Quaso17.
Unfortunately, I cannot see how this can be an issue with Imager. rpi-imager
does not offer customisation of custom OSs, and as such it would have performed only a very straightforward block copy.
From your log, it looks like the custom OS image file contains an invalid ext4 partition, and the log is telling you how to fix it:
fsck.ext4: Superblock invalid, trying backup blocks...
fsck.ext4: Bad magic number in super-block while trying to open /dev/mmcblk0p2
Have you confirmed the source file has not been corrupted, or modified in a manner you didn't expect?
Thanks for the report, @Quaso17.
Unfortunately, I cannot see how this can be an issue with Imager.
rpi-imager
does not offer customisation of custom OSs, and as such it would have performed only a very straightforward block copy.From your log, it looks like the custom OS image file contains an invalid ext4 partition, and the log is telling you how to fix it:
fsck.ext4: Superblock invalid, trying backup blocks... fsck.ext4: Bad magic number in super-block while trying to open /dev/mmcblk0p2
Have you confirmed the source file has not been corrupted, or modified in a manner you didn't expect?
The custom image is based on Debian Bookworm 64-bit and only things that were done are: Enabled Kioskmode, made pre-configurations (hostname, ip etc…). And 5 months ago when I tried writing the image on my SD-Card it worked perfectly fine. I tried different Pi’s, different SD-Cards and when I tried other OS they worked. The custom image has never been changed either.
I tried different Pi’s, different SD-Cards and when I tried other OS they worked. The custom image has never been changed either
I'd suggest that must be a paradox. Have you tried other OS writing tools, eg, Balena Etcher?
I tried different Pi’s, different SD-Cards and when I tried other OS they worked. The custom image has never been changed either
I'd suggest that must be a paradox. Have you tried other OS writing tools, eg, Balena Etcher?
I have also tried Win32 Disk Imager but the result was the same.
Thanks for the update, @Quaso17
If you're seeing similar behaviour with other tools, I'd suggest that your problem is likely with the image itself. Have you been able to perform a full file re-hash and compare against a known good value?
No response in > 2 weeks, and no indication this is a problem with rpi-imager
. Closing as stale.
What happened?
I am currently trying to use my custom OS I used half a year ago already and boot up a new Raspberry Pi 4B Model V Rev 1.5. For some reason I end up in the initramfs. I tried another SD-Card, another Raspberry Pi, another OS and came to the conclusion that my SD-Card is fine and so is my Raspberry Pi. The other OS works perfectly fine but I dont think there is an issue with my custom OS as it already worked prior and hasnt been touched since. Ive tried resolving errors within initramfs but with no success. At this point im out of ideas.
Version
1.8.5 (Default)
What host operating system were you using?
Windows
Host OS Version
22H2
Selected OS
Custom
Which Raspberry Pi Device are you using?
Raspberry Pi 4B, 400, and Compute Modules 4, 4S
What kind of storage device are you using?
microSD Card in an internal reader
OS Customisation
Relevant log output