Rpi 4 doesn't boot after crash (error 110 whilst intialising sd card)

January 10, 2024, 13:04

stocis

blk_update_request I/O error, dev mmcblk0 error 110 whilst intialising sd card got data interrupt 0x0000002 even though no data operation was in progress

stocis

I updated pihole and shortly after that, screen crashed so the only solution was for a reboot.

stocis

cmdline.txt reads console=serial0,115200 console=tty1 root=PARTUUID=dc6627a9-02 rootfstype=ext4 elevator=deadline rootwait to which i added fsck.repair=yes however this did not make a difference.

techdaniel

You may can try updating the Bootloader by setting up one another sd card with imager

oops.se

Shouldn't it be fsck.mode=force fsck.repair=yes

oops.se

And then remove fsck.mode=force fsck.repair=yes after a reboot

oops.se

So it doesn't check it at every reboot

stocis

so what i need to do is change the cmdline.txt

stocis

console=serial0,115200 console=tty1 root=PARTUUID=dc6627a9-02 rootfstype=ext4 elevator=deadline rootwait fsck.mode=force fsck.repair=yes and if that works change it back to console=serial0,115200 console=tty1 root=PARTUUID=dc6627a9-02 rootfstype=ext4 elevator=deadline rootwait

stocis

correct?

oops.se

And have you tested the SD card? The only tool I know of is a Windows program "H2testw"

stocis

sd card is fine yes, i checked it with sd card test on mac but i will also try h2testw as well

stocis

i have another sd card but i dont know how to do that

techdaniel

Go to your imager and install “EEPROM Update” or similar

techdaniel

Then boot your pi up and wait a minute then it should be done

stocis

and then change the sd card to mine?

techdaniel

Yes

oops.se

yes

stocis

alright i'll try that. but first shouldn't i try this?

oops.se

Noop

techdaniel

You may but I think it is better to let that in a state where it worked

oops.se

No need to run a fsck if it is a firmware issue that is causing the error

stocis

so to get this right, this is not an issue of the sd card but of the bootloader, and the second sd card will basically fix the boot for the pi to start, then shut down then replace sd and boot ?

oops.se

It could be an issue with the firmware. And it could be an issue with a SD turned bad.

stocis

alright i understand. I will try the methods you suggested and report back. thanks for the help

oops.se

YW

techdaniel

SDs can easily die

oops.se

There are two types of SD cards, the one that is broken and the one that is going to be broken.

stocis

bootloader / eeprom updated

stocis

shutdown pi / changed with my sd

stocis

mmc0 got data interrupt 0x000000002 even though no data operation was in progress

stocis

is there a way to clone the card and restore that image to a new one so i dont lose everything?

stocis

win32diskimager?

stocis

sorry for the ping, whenever you got a moment

oops.se

There is several ways to do this. You can mount if in a Linux/MAC, Windows needs something that can read the ext filesystem, example https://www.diskinternals.com/linux-reader/

stocis

ok what next?

stocis


stocis

is there a way to fix the partition ?

stocis


oops.se

No, but you can read it and copy files from it

stocis

is there a way to copy everything on to a prior sd image?

oops.se

Install a OS on a new SD and put the old SD card in a USB-SD adapter and then you can put that in your Raspberry Pi, mount the SD card and copy it

oops.se

Do you have a SD/USB adapter?

stocis

i do yes but how is that going to help me for example get programs installed, configurations etc?

oops.se

Ohh that is a mine field I keep my self away from

stocis

and its a 128gb sd, i only have a 16gb now

stocis

guess the only way is to start fresh huh

oops.se

I will be a bit mean now, That is your problem ... 😉

stocis

nuh i understand

oops.se

Some config files is in the /etcfolder and some is hidden in your home folder

oops.se

And I keep track of what I install

stocis

i would like to basically salvage 2-3 programs

stocis

homebridge for one and pihole

stocis

those are the most important ones i guess

oops.se

Then I would google about those two and backup or stored config

oops.se

homebridge is a home automation ?

stocis

yeah

oops.se

I am doing a lot of stuff in that area, and I would recommend to use docker for those

oops.se

Then is backup/restore soooooo easy

stocis

alright thanks for the heads up

oops.se

If you would like to get a bit of guiding in docker, just reach ot

stocis

its okay i got this, it just gonna take a long time setting everything back up

stocis

do you know where the boot commands are stored?

stocis

for example fan controller, monitor display etc ?

oops.se

Boot commands, elaborate

oops.se

No I don't

stocis

any software that can help or try to fix the sd ?

oops.se

A SD has a limited count of write operation to a cell and the way to work around it is that there is a number of free cells to replace cells that has gone bad. But when the free cells is gone there is no way to fix that.

oops.se

You can prevent it by, disable logging, turn of swap and the best solution is to use a SSD disk!'

stocis

no i get that, i just want to clone everything on my other sd card if that made sense. I can see 99% of the files but i dont know if a drag and drop would make any difference since i need to install everything back. I was just wondering if there's a way to recover profile / themes / configs etc

stocis

but that can't be done so guess i'll just recreate everything from square 1

oops.se

Well that is impossible to answer!

oops.se

And yes a "begin from the beginning" is probably the best way and to prevent that something like this happens again is to keep a "log of what you install" and modifications. And to implement backup.

stocis

i've enabled realvnc from rasperry pi but it doesnt start on boot

stocis

and if manually opened it says no connectivity

stocis

anydesk doesnt want to install either

stocis

do you know how to make the "headless" monitor work?

stocis

right now the only thing i can see is from a really small touch screen and can't connect to it via anydesk

stocis

also is there a way to fix the boot process (boot process is upside down until it boots to ui)

stocis

havent had any sleep, i'm tired, nothing works

oops.se

Headless means no GUI just terminal

stocis

the gui then..

oops.se

My gui is the terminal 😉

stocis

i can see the os ui on the small touchscreen and if i connect a monitor it will work

stocis

but when i connect to it via vnc or anydesk (before) i had a 1920x1200 scren

stocis

now i can't install anydesk (for some reason right click install package is missing) and if i install from the website the armhf

stocis

sudo dpkg -i Anydesk.deb ?

stocis

Warning the unit file, source configuration file or drop-ins of anydesk.service changed on disk. run systemctl daemon-reload to reload units

thunder07337

Then you should go to sleep and get back to work with a fresh head.

stocis

thanks, that helps a lot mate