I'm trying to follow the directions in https://howtoraspberrypi.com/recover-password-raspberry-pi/.
(For future reference in case that tutorial disappears, here is the steps up to the point which I ran into trouble.)
Remove SD card from Raspberry Pi (after powering off the Raspberry Pi).
Plug into SD card reader on computer.
Go to the root partition on the SD card and edit the contents of cmdline.txt
Add
init=/bin/sh
to end of line, and save and close.Remove card and place back in Raspberry Pi. Connect keyboard and monitor to Raspberry Pi and start Raspberry Pi.
Wait until screen freezes than type in
mount -o remount, rw /
to mount the root partition.
However, when I start up the raspberry pi after editing the cmdline.txt file and connecting a monitor and keyboard, it never gets to the point where I can type text. I see it booting up and then the screen goes blank.
This is the contents of the cmdline.txt:
dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles
Edit: Sometimes when I press some key on the keyboard, I am able to get a prompt:
hostname login:
I don't remember the password, so how do I get past that point?
To add, this runs on Raspbian Jessie.
quiet
in cmdline.txt, it might suppress the visibility of the text input – Jim Danner Dec 03 '19 at 00:41