What if you have lost the password or I should say forgot the password of Raspberrypi.
Here are the following steps,very simple, easy to do.
Just do as I mention here, password will be definitiely changed.
Yes changed, not recovered. I mentioning the steps to change the password if you forgot your password. you can not recover the password as it is stored by OS in encrypted manner.
So, let start.
1. First of all, turn off Raspberry PI and take out the memorg card.
2. Insert memory card in your PC using memory card reader.
3. There will 2 partitions of your memory card. Open the drive named as "boot".
4. open file cmdline.txt in notepad or whatever text editor you like.
5. Don't modify whatever is already written in it.
But, at the end of the line, add the following :
init=/bin/sh
6. Save and close text editor.
7. Now insert memory card in Raspberry pi and power up it.
8. Now your Raspberry Pi will start with terminal and with root privileges.
9. now type the following command and press enter:
mount -o remount, rw /
10. Now type the following command:
passwd pi
11. Now it will prompt you to set new password twice.
Enter your new password. Make sure to remember it this time.
12. Now enter the following commands one by one. these will output nothing.
But, these are required to change the new password in raspbian.
13. Type the following command and press enter.
sync
14. Type the following command and press enter.
exec /sbin/init
That's it. Your new password has been successfully changed.
One last step it to revert "cmdline.txt" to original one.
Otherwise it will always start with shell having root privileges and we don't want that. Right !
So Shutdown Raspberry Pi.
Take out the memory card and put back into the computer.
open the cmdline.txt from drive named as "boot".
remove the part "init=/bin/sh" we entered at the end of the line.
Save the file.
Close Text editor.
And now re-insert this card into Raspberry pi.
Power-up Raspberry Pi.
You are good to go with new password now.
1XBet
ReplyDeleteBetting 1xbet korean in India. It can be great to find the most popular brands, especially ones that mens titanium wedding bands offer betting on sports such as football, tennis, Rating: 1/10 · Review 먹튀 커뮤니티 by Riku VihreasaariWhere 출장샵 can I find 1xbet?Where can I find 1xbet jordan 5 retro on sale betting?