E
E
Elvis2021-12-17 13:56:30
Raspberry Pi
Elvis, 2021-12-17 13:56:30

Why did the login-password disappear on RaspberryPi? And what can be done about it?

Hey!
I have Pi 4. There is a console OS. It's been more than a week since my installed media server software has been working on it. I was still watching movies last night, but today I found out that there is no access. I got on the shell to connect from a mobile phone - it writes the wrong password. I went to turn on the computer, I connect through it - the same thing. the error is excluded firstly because both there and there my login-password is saved and will connect automatically, and secondly it is difficult to make a mistake when the login and password are "pi" (no need to write here for security, since this is for home use and I don't care) .
I took my raspberry, connected it to the monitor - I enter the login, password and the same error.
I tried the standard combination pi - raspberry the result is the same.

What to do now? How can I restore access if I don’t want to reflash. by itself, reinstalling the OS and all the software is an option, but it’s so vlom to set everything up again.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Elvis, 2021-12-17
@Dr_Elvis

It helped to change the password in the following way:
1. We take out the sd flash drive from the raspberry and insert it into the computer
2. Open the cmdline.txt file for editing
3. Put a space after "rootwait" and add "init=/bin/sh", save.
4. Insert sd back into the raspberry and boot
5. After a while, press Enter and it should appear #
6. We write the commands in sequence:
mount -o remount, rw /
passwd pi
Enter the new password twice
sync
exec /sbin/init
7. Further download will begin. you can check the new password for user pi.
8. Turn off the raspberry for example with the command sudo poweroff
9. Again, pull out the sd flash drive, insert it into the computer, delete the "init = / bin / sh" that was added, save and now you can return the flash drive back.
The article helped:https://windowsreport.com/raspberry-pi-password-no...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question