Here I will show how to recover your password of your Raspberry Pi (RPI).
PREREQUISITES
- Physical access to RPI.
- A computer with Windows or Linux or MacOS.
- Adapter to connect microSD to the computer.
- Keyboard and screen (HDMI) to connect RPI.
If you have access to a GUI (monitor+keyboard) you can try to turn off the RPI safely, but if you don have access or do not have a GUI installed just UNPLUG IT :(.
2. Extract the microSD from the RPI.
STEP 2. Single-Process mode
1. Connect the microSD card to the computer through the adapter if you need it.
2. in your computer navigate to the microSD card and you will find the file cmdline.txt
3. Edit the file adding to the end that you want to start in single-process modedwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait init=/bin/sh4. keep on eye that the cmdline.txt will maintain its structure of ONE LINE file.
5. Save the file and put in the RPI.PROBLEMS
you might have the problem that init=/bin/sh do not work because the OS do not enable your keyboard. :( DO NOT PANIC we have two more options:Pi Fr, R. (2018, March 14). How to recover the password of your Raspberry Pi if you lost it. 2018 Update. –. Howto Raspberry Pi. https://howtoraspberrypi.com/recover-password-raspberry-pi/
Resseting password using init=/bin/sh - Keyboard doesn’t work. (2018, June 19). Raspberry Pi Stack Exchange. https://raspberrypi.stackexchange.com/questions/85146/resseting-password-using-init-bin-sh-keyboard-doesnt-work
No comments:
Post a Comment