Select Page

ABIOLA RASP – Raspberries for African School Projects

Wie können wir helfen?

< Alle Themen
Print

Recover lost password

no-038 au-03

Default Password

Default password of Raspberry Pi is raspberry.

Recover Password

Assume that you changed your default password, after a while you forgot it. To recover it please follow below instructions:

  1. Shut down Raspberry Pi and remove SD Card.
  2. Insert SD Card into your PC.

REQUIREMENTS: MicroSdCard Reader is necessary to insert it!!!
PC/Laptop

3. Open the cmdline.txt in Sd Card. You will see a line like a below:

console=serial0,115200 console=tty1 root=PARTUUID=2b8b0421-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles

4. Add following to the end of the existing text.

init=/bin/sh

It should look like below:

console=serial0,115200 console=tty1 root=PARTUUID=2b8b0421-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles init=/bin/sh

NOTE: This text is one line

5. Insert the Sd Card into the Raspberry Pi and power up it.

6. You’ll see a prompt screen. Type below command and press enter.

mount -o remount, rw  /

You can get below error message:
/bin/sh:0:can’t access tty:job control
Then, you type again above command and press enter.

7. Run below command

passwd pi

8. Enter new password and retype new password

You must get below message, after retype your password.
passwd: password updated successfully.

9. Run below command

exec /sbin/init

10. Run below command

exec /sbin/init

After above command, Raspberry will boot.

11. Shut down Raspberry Pi again, remove Sd Card and open cmdline.txt.

12. Remove the init=/bin/sh text you added in Step 4.

13. Insert the Sd Card into the Raspberry Pi and power up it.

Your new password is now active.

Zurück Raspberry Pi Emulator for Windows
Weiter Rename a folder and file
Inhaltsverzeichnis