I had to solve a problem to connect to my Raspberry Pi. I didn't use this RaspPi long time and forgot the pi user password.
The following sequence helps me to rescue the password:
1) login the RaspPi in rescue mode (hold Shift during the RaspPi start up)
2) edit the command.txt file. Add <space>init=/bin/sh at the end of command line (just after rootwait command). Exclamation: don't use Enter - the command in command.txt should be in one line.
3) exit the rescue mode and boot. The prompt sign # should appear.
4) run the mount -rw -o remount / command
5) passwd pi command and set a new password
6) remove init=/bin/sh from command.txt
Žádné komentáře:
Okomentovat