Page 1 of 1

Trouble with SDCard's, for RPi

Posted: Sun Feb 11, 2024 12:57 am
by handy
I've finally got around to attempting to upgrade my Pi-4 with the latest MX-23.1_rpi.img. Haven't done anything with the Pi's for quite some time apart from usage. So my old memory has me relearning things again.

Anyway, I've used the following on an unused 16GB SDCard:

Code: Select all

sudo dd bs=4M if=mx23.1_rpi.img of=/dev/sdb status=progress conv=fsync
There were no errors, it automatically mounted in my computer & I could look inside of the 2 directories. All seems fine.

I stick the SD into the Pi & it boots up, then has a kernel panic - Failed to execute /init ?

So I tried using another new SDCard, this time via the Pi-imager. It gives me an error:
Write error while trying to zero out last part of card. Card could be advertising wrong capacity (possible counterfeit).
The first card that I used also had GParted giving errors when I looked at it there. Something about a partition being outside the disk - from memory.
I expect that I'll get the same response from GParted too.

If anyone has any ideas about what the problem is I'd be happy to read them. I may be making an obvious mistake, dunno?

Re: Trouble with SDCard's, for RPi

Posted: Sun Feb 11, 2024 5:05 pm
by handy
I should mention that these are Verbatim cards that I have used previously, all bought from a reputable electronics firm - Jaycar Electronics.

I also did the sha256sum mx23.1_rpi.img & the numbers were identical.

The kernel panic says the following - I photographed & transcribed it:

Code: Select all

Failed to execute /init (error -2)
kernel panic - not syncing: no working init found. Try passing init= option to kernel. See Linux Documentation...
I've got the rest of it it - call trace & all the other stuff if it is of any use to anyone?

Re: Trouble with SDCard's, for RPi

Posted: Sun Feb 11, 2024 5:14 pm
by Jerry3904
I highly recommend that you try using MX Live USB Maker or RPi's Imager; I've never had a problem with either of them over a couple of years of intense RPi testing.

FWIW: I only use Samsung or San Disk sd cards b/c they keep coming to the top of evaluation charts.