Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3552

Troubleshooting • Re: Forget Username and Password

$
0
0
Yes, I’d like to —— 1) I want to retrieve the username and password that I had been using a long time ago.
(so that I can login and use it like I used to do).

If 1) is impossible, then —— 2) I want to "upgrade" my system to 64 bit - because, well, 64 bit is neato and coolo and is what all the cool people are talking about nowadays.
Option 1 is essentially impossible as the password is not stored, just an encrypted version of the password. What you can do however is to shut down the Pi and move the SD card to another Linux machine and edit the password file to clear the password, then boot it up again and set a new, known, password. Several guides on the web to do this.

Of course, while you have the SD card in the other Linux box you have full access to all the files so you can copy them to a new installation.

Option 2 is more like a new installation rather than an upgrade. It is generally not wise to do significant upgrades in-place. What you probably should do is get a new SD card and install the latest OS image on it. Boot it up on your Pi and get it set up. Then you can put the old SD card into the Pi using a USB SD card reader. Now you can copy the files from the old card to the new card which has the updated OS. The old card can be stored safely as a snapshot backup.
====================================================================================================
Thanks for the information. When I put the new SD card in my RBP 4 will it auto boot so that I can create a username and password? Will I have to assign a new static IP address? I already have a static IP address with my RBP 4.

Statistics: Posted by billzellermd — Sun Sep 08, 2024 3:38 am



Viewing all articles
Browse latest Browse all 3552

Trending Articles