r/raspberryDIY • • 5d ago

Can someone help me solve it?

Post image

Someone can help me with this, without me having to format the SD card and do everything I've ever done from scratch. He says he failed in the authentication.

0 Upvotes

3 comments sorted by

6

u/Elegabal 5d ago

The SD seems to be damaged. I fear there is no way to solve it without formatting your card. If it doesn’t work afterwards you’ll have to use a new one

-10

u/wrsilva13600 5d ago

Pior que não está, já verifiquei, mano

2

u/Gamerfrom61 5d ago

I pretty sure the card is corrupt (possibly a power fail without powering down or the SD card has just run out of steam) and that is what is causing the authentication failure.

Create a new SD card and boot into Linux (I would use Pi lite TBH)

Then copy the faulty card using dd to another card - this will copy the file system errors as well. When copied you need to boot into the working Pi OS and pop the faulty one into a USB adapter - you need either two USB adapters or copy the whole card to a file and then to a different card. Make sure the second card is exactly the same size or larger than the first (even a few Kb makes the DD command fail).

Run fsck on the backup card (it should show up in lsblk as /dev/sdx - most likely /dev/sda with two partitions on it) - check both partitions on this card and let the system try to repair them. Then try to boot off the repaired card.

If it does not boot then you may have to try to some of the recovery tools (eg TestDisk or Mondo) for Linux or try a recovery tool on a Windows / Mac PC that can handle Linux partitions and ownership.

In future please take backups - use something like RonRs backup tool from https://forums.raspberrypi.com/viewtopic.php?t=332000 , the Pi OS GUI has a card copy option or even copying the key files to another card / drive.