Login doesn't work

I have searched the existing open and closed issues

Hello

DietPi Version 10 - Trixie 13

Unfortunately, I forgot both the root password and the user password for my current Raspberry Pi running DietPi Trixie.

All the guides I found cover older DietPi versions and do not work on the current version.
Can anyone help me? Or at least tell me how to access the file systems via the SD card?
Thanks for your support.

This has nothing to do with the DietPi version. User management is standard Debian and works the same on all Debian systems. In your case, it’s specifically for Raspberry Pi. Just look for a guide for Raspberry Pi. That should work here, too.

Somehow, no luck. When I add init=/bin/sh to cmdline.txt, the partitions are not mounted properly. Because of that, I also cannot remount the / filesystem. blkid does not work either.

I was just hoping that maybe someone here could give me a tip on how to reset the password.

What is the output when you enter the following?

mount -o remount,rw /

The command does not work because the UUID in fstab cannot be determined, since udev is not running.
But I found a guide.

You need to add rw init=/bin/bash to cmdline.txt.
After that, follow the steps in that guide starting from the section “Passwort zurücksetzen ab Raspberry Pi OS Bookworm (2023+)” onward.

At least that worked for me.
Still, many thanks.

Sorry, I forgot the link.