4

I installed ubuntu 20.04 64 bit on my Raspberry Pi 4, after boot process at the login screen, username and password won't work. what to do? I am unable to login.

3 Answers 3

5

If you installed the correct Ubuntu version from here and followed the tutorial here, and you are sure that installation is not corrupted, you could try to reset the password.

  1. mount the sd in rw mode on a linux system
  2. chroot to the mounted sd
  3. use the passwd command to change the user password
  4. reboot

OR

  1. mount the sd in rw mode on a linux system
  2. edit the password file i.e.: /mnt/etc/shadow

Editing the password file:

You'll find a row containig

<your_user>:<hashed_password>:14589::::::

like

pippo:$1$9fsdljkel!nFDSfdfasL.blablabla1!54M:14589::::::

just remove "$1$9fsdljkel!nFDSfdfasL.blablabla1!54M" and obtain

pippo::14589::::::

This way user "pippo" will have a blank password. Don't try to modify root user because he can't login directly on Ubuntu OS. Once logged on the system just set the password for that user and check if it is set correctly.

1
  • 1
    Solved. Thankyou very much. changed passwd file and it worked. May 5, 2020 at 13:42
2

Directly after 1st boot the username and password (ubuntu/ubuntu) won't work, even though the login screen is shown. After waiting until the cloud-init + SSH-key creation messages are shown it will be possible to log in with the default credentials (ubuntu/ubuntu). This may take a few minutes depending on what model of Pi is being used.

1

ubuntu 20.04.2 or greater installed in Raspberry Pi login > ubuntu password > ubuntu

documentation > https://ubuntu.com/tutorials/how-to-install-ubuntu-on-your-raspberry-pi#4-boot-ubuntu-server

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .