Skip to main content
Share Your Experience: Take the 2024 Developer Survey
15 votes

Forgot password for username pi

The hashed password is stored in /etc/shadow. There is no efficient way to find out what the password is, by design. However, it is easy to reset as long as you have physical access. Start a Linux on ...
RalfFriedl's user avatar
  • 2,188
9 votes
Accepted

Forgot password for username pi

to reset your password: Power down and pull the SD card out from your Pi and put it into your computer. Open the file 'cmdline.txt' and add 'init=/bin/sh' to the end. This will cause the machine to ...
Xilef's user avatar
  • 106
7 votes

How do I make the OS reset itself every time it boots up?

The idea is to use a read only file system as you have it on a LiveCD together with a union filesystem. (quote [1]) Generally speaking, a union filesystem combines multiple filesystems into a ...
Ingo's user avatar
  • 42.2k
7 votes

How do I hard reset a Raspberry Pi?

It is very easy to wire a hardware reset to the Rpi3. Here is where you will find holes already open and waiting: (Shown here with header pins soldered in place directly above the screw hole) Don't ...
SDsolar's user avatar
  • 2,348
6 votes

Change/reset password WITHOUT monitor/keyboard

You don't have to create a temporary user on a different system to generate a password hash. You can do it without root access by running: openssl passwd -salt "salt" "password" ...
Dmitry Grigoryev's user avatar
5 votes
Accepted

Remote full reset (re-install) of a Raspberry

Firstly: doing this by remote is inadvisable especially if, like me, you happen to be 70+ miles from your remote pi. It's a very long drive if you screw it up. When you do this fir the first time, ...
Philip Couling's user avatar
3 votes
Accepted

How to reset raspberry pi on laptop?

Because you have already flashed the SD Card with Raspbian Stretch all the installation of your friends friend is lost. So you have to start again from scratch. Just download Raspbian Buster and ...
Ingo's user avatar
  • 42.2k
3 votes
Accepted

Restore Pi to factory settings without flashing SD

The Pi does not have factory settings in that sense. Everything is held on the SD card. You will have to burn a new image to a SD card.
joan's user avatar
  • 71.1k
2 votes

Is halted a viable state for a battery powered pi zero long-term?

As goldilocks has noted "halted" and "powered off" are actually the same thing. (Although different things happen on the way through. I use sudo poweroff which causes the LED to flash 10 times before ...
Milliways's user avatar
  • 60.3k
2 votes
Accepted

How to prevent Raspberry pi 3 from auto starting in an operating system after reboot?

You can change the bootmenutimeout= to a higher value. This setting is found in the /boot/config.txt file.
88weighed's user avatar
  • 905
2 votes

Using two Pi's to reset each other on failure

I might be off here but seriously speaking you are not looking for solution why Pi Zero stops working but rather how to detect it. That is not really where I would go in the first place. I have few ...
Zygfryd Homonto's user avatar
2 votes

Using two Pi's to reset each other on failure

The Pi SOC has an inbuilt watchdog timer which can be used to manage failures. Any other system just adds (needless) complexity and testing is a challenge. Having said this I have never had an ...
Milliways's user avatar
  • 60.3k
1 vote

Raspberry Pi400

I am not trying to push a particular brand or product, but the answer to your question is that you need some hardware to read your Pi's SD card. You can do that with a very cheap SD to USB converter, ...
utdream's user avatar
  • 113
1 vote
Accepted

forgot raspberry pi username -> extract from raspberry pi imager

You can fix your Rpi without console. You need to put Rpi's sd card into your PC. First add to cmdline.txt: systemd.run=/boot/runonce.sh systemd.unit=kernel-command-line.target Then create runonce.sh ...
Mariusz Zieliński's user avatar
1 vote

how do i reset my raspberry pi using the terminal

Installing software does not affect the state of the Pi. All the state is held on the SD card. To re-install Debian you need to write a fresh image to the SD card (or just insert an SD card with a ...
joan's user avatar
  • 71.1k
1 vote

Pi 4 change Bluetooth MAC adress

I figured it out. TLDR: (run everyhting as root, you won't get permission errors if you don't but it won't work) After every reboot (yes the bytes in reverse) hcitool cmd 0x3f 0x001 0xab 0x89 0x67 ...
Poohl's user avatar
  • 121
1 vote

How do i factory reset my raspberry pi 4

take a look at how to install the operating system: basically you download the latest version of the operating system, unpack it so you have a "xxxxxx.img" file,and then remove the sd card from the ...
petr2's user avatar
  • 11
1 vote

Password resets on shutdown

There's a few possibilities here: Is your SD card write protected? This would prevent your changes from taking effect, and the passwd command would not necessarily give you an error message. Are you ...
tlhIngan's user avatar
  • 3,372
1 vote

Restore Pi to factory settings without flashing SD

You might be able to boot to a USB device, and from there format the SD card. https://www.raspberrypi.org/documentation/hardware/raspberrypi/bootmodes/msd.md I'll advice you to find another option ...
Jervelund's user avatar
  • 476
1 vote

How do I make the OS reset itself every time it boots up?

Start by separating changeable parts of the system, to different partitions. User changeable parts are in /home, but the OS also changes stuff in /var. Then mount the root partition as read-only. And ...
ctrl-alt-delor's user avatar
1 vote

Pi resets state after every reboot

Given the lack of answers at this stage, my hypothesis is that your MicroSD card has shot itself in the head and is now a zombie. Think WestWorld and try again with a new MicroSD, perhaps not 149 ...
OyaMist's user avatar
  • 1,119
1 vote

Remote reset to Rasberry Pi without remote desktop

You could use SSH with password less login. This is a link to how to create password less login: https://www.tecmint.com/ssh-passwordless-login-with-putty/ And from windows you could use putty and ...
MatsK's user avatar
  • 2,811
1 vote
Accepted

On a raspberry pi, is safer to restart it by unplugging it or shorting the "run" pad to ground?

The danger of any method of shutdown is that the system might be writing, or reading from memory, or disk, and not complete, making partial changes to the system that corrupt the disk, or system ...
j0h's user avatar
  • 2,473
1 vote
Accepted

Is halted a viable state for a battery powered pi zero long-term?

Why does holding the reset descrease the power usage more than halting This is an educated guess, and not based on any analysis of schematics, but: A hardware reset is equivalent to flipping the ...
goldilocks's user avatar
  • 59.1k
1 vote

Raspberry Pi resetting across reboots

Some SD cards have a read-only failsafe mode. Backup your SD card with Win32DiskImager. (In case i am in the wrong !) Format it. Eject and re-insert. The data should "magically" re-appear. Throw ...
flakeshake's user avatar
  • 6,213

Only top scored, non community-wiki answers of a minimum length are eligible