I've forgotten my password, and all the help I can get from google tells me to edit the cmdline, but I can't find it. From what I gather, this is because I'm using NOOBs, and just to let you know I'm s complete beginner!! How do I reset my password?
I've forgotten my password, and all the help I can get from google tells me to edit the cmdline, but I can't find it. From what I gather, this is because I'm using NOOBs, and just to let you know I'm s complete beginner!! How do I reset my password?
What OS do you use
if it's raspbian the easyest method will be:
1) get the sd card and connect it to another pc
2) in the boot partition on the card edit the file named cmdline.txt and append to the end init=/bin/sh or init=/bin/bash ,the content it should be: dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline root wait init=/bin/sh
3) unmount the sd card put it in the raspberry (connected to a hdmi) and boot & w8 a little and you should see a prompt
4) enter the command : 'passwd pi' and put a new password
5) sync it an boot into OS: commands :
sync
exec /sbin/init
6) edit the file cmdline.txt to remove the init=/bin/sh
Alternatively edit the /etc/passwd to skip the password or get a new password in /etc/shadows (backup the files first)
What OS do you use
if it's raspbian the easyest method will be:
1) get the sd card and connect it to another pc
2) in the boot partition on the card edit the file named cmdline.txt and append to the end init=/bin/sh or init=/bin/bash ,the content it should be: dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline root wait init=/bin/sh
3) unmount the sd card put it in the raspberry (connected to a hdmi) and boot & w8 a little and you should see a prompt
4) enter the command : 'passwd pi' and put a new password
5) sync it an boot into OS: commands :
sync
exec /sbin/init
6) edit the file cmdline.txt to remove the init=/bin/sh
Alternatively edit the /etc/passwd to skip the password or get a new password in /etc/shadows (backup the files first)