Raspberry Pi Won’t Boot: Read the LED and Fix the Cause
Raspberry Pi not booting? Maybe the LED is solid red or blinking, or the screen stays black or shows nothing but a rainbow. This guide shows you how to read what your Pi is telling you and which fix to try on your model, from the Pi Zero to the Pi 5, without losing your data along the way.
In short
Start with what your Pi is showing you: the LED colour and blink pattern, plus the diagnostics screen on a Pi 4 or Pi 5. That tells you whether the problem is power, the SD card, the bootloader or the display.
- Pi 5 with a solid red LED: it may just be in standby, so press the power button once. If the LED doesn’t turn green, check the power supply and the bootloader. On a Pi 1 to 4, a red LED with no green flicker means it has power but can’t find anything to boot from.
- Start with fixes that don’t erase anything: check the power supply, cable and monitor, and undo your own changes to
config.txt. If that doesn’t help, back up your data first, because Raspberry Pi Imager wipes the whole card. Then write a fresh system and, on a Pi 4 or Pi 5, reset the bootloader if needed. - File system errors: if the Pi reports file system errors, stop booting from the card and rescue your data on a second computer instead.
First: is it running after all?
Without a monitor, a Pi that’s running looks exactly like one that isn’t. If the LED shows card activity at startup (Pi 1 to 4: green flickers; Pi 5 and Zero: green with brief flashes off), it’s reading the card. Check your router to see whether the Pi has shown up on your network under the hostname you set in the Imager. The Pi 400’s LED doesn’t show card activity, so the router is your only clue there. If it’s there, it’s running and you can connect over SSH, as long as SSH is enabled; our guide on how to enable SSH on the Raspberry Pi walks you through it. If it isn’t, carry on with the symptom tables below.
What is your Pi showing you? Match the symptom to the fix
Which LEDs you have depends on your model. Find yours below and the tables will point you straight to the right step. What the LEDs and blink codes mean comes from the official Raspberry Pi documentation. Steps 1 to 9 go from harmless to drastic: nothing gets erased up to and including step 4, and only from step 5 on is a card overwritten.
Raspberry Pi 5, 500 and 500+: one LED, red or green
The Pi 5 has a single LED that lights up red or green. You’ll find it next to the power button; on the Pi 500 and 500+ it sits by the power key on the keyboard.
| If the LED … | It means | Go to |
|---|---|---|
| lights up red when you plug in the power, then turns green | a normal start: the Pi has power and the firmware is starting | still nothing? The screen and Is it running after all? |
| is green and keeps flashing off briefly | the Pi is reading the SD card, so it’s working (it doesn’t flash when booting from an SSD) | Is it running after all? |
| stays solid green without flashing off | The system is running. It doesn’t flash when booting from an SSD. | The screen and Is it running after all? |
| stays red after you’ve shut the Pi down | standby | press the power button once |
| stays red after you plug in the power and never turns green | the Pi has power, but the firmware isn’t getting any further | Step 1 (power), then step 8 (bootloader) |
| stays off | no power | Step 1 |
| blinks in a fixed pattern with a pause | an error code | Blink codes |
Raspberry Pi 1 to 4: red and green LEDs
The Pi 1 to 4 have two LEDs: the red one (PWR) shows power, the green one (ACT) shows SD card activity.
| If the LEDs show … | It means | Go to |
|---|---|---|
| red off or flickering | no power, or the voltage is too low (undervoltage) | Step 1 |
| red on, green does nothing | the Pi has power but can’t find anything to boot from | Step 4 (back up), then step 5; for USB or SSD boot, step 7; on a Pi 4, also step 8 |
| green flickering irregularly | the Pi is reading the card, so it’s working | The screen and Is it running after all? |
| green blinking in a fixed pattern with a pause | an error code | Blink codes |
Pi 400 and Zero: just one green LED
The Pi 400 and the Zero models have no red LED, only a green one. On a Zero it flashes off briefly whenever the card is being read. The Pi 400 doesn’t show card activity at all. Its LED stays on while it’s running and goes off once you shut it down, even with the power supply still plugged in.
| If the green LED … | It means | Go to |
|---|---|---|
| stays off | no power, or on a Pi 400: it has been shut down | Pi 400: press Fn + F10; if it stays off: Step 1 |
| is on (Pi 400) or flashes off briefly (Zero), but nothing happens on screen | the Pi has power; the screen tells you whether it’s starting | The screen and Is it running after all? |
| blinks in a fixed pattern with a pause | an error code | Blink codes |
Blink codes: what the flashing pattern means
If the LED blinks in a fixed pattern, it’s giving you an error code. Here’s how to count it: long flashes come first, then short ones. After a pause of about two seconds, the pattern starts over. Some codes have no long flashes at all, so four short flashes on their own are code 0/4. These are the codes you’re most likely to run into:
| Long / short | Meaning | Go to |
|---|---|---|
| 0 / 3 | generic failure to boot | Step 1, then steps 4 and 5 |
| 0 / 4 | boot file start*.elf not found (Pi 1 to 4) | Step 4, then step 5 |
| 0 / 7 | kernel image not found | Step 4, then step 5 |
| 0 / 8 and 0 / 9 | memory (SDRAM) failure or not enough memory | Step 9 |
| 1 / 2 | overcurrent on the SD card | Step 6 |
| 2 / 1 and 2 / 2 | boot partition isn’t FAT or can’t be read | Step 4, then step 5, otherwise step 6 |
| 3 / 1 | error in the bootloader chip (EEPROM, Pi 4 and Pi 5) | Step 8 |
| 4 / 3 | RP1 I/O chip not found (Pi 5, 500 and 500+) | Step 9 |
| 4 / 6 and 4 / 7 | power failure | Step 1 |
You’ll find the full list in the Raspberry Pi documentation on LED warning flash codes.
Rainbow screen, diagnostics screen, error messages or nothing at all
| If the screen … | It means | Go to |
|---|---|---|
| stays on a colourful rainbow | The firmware has loaded, but Linux isn’t taking over. The rainbow flashes up briefly on every start; it just shouldn’t stay there. | Step 1 (power), then step 4 (back up) and step 5 |
| shows a QR code and lines of text (Pi 4 and Pi 5) | the bootloader’s diagnostics screen: it couldn’t find anything bootable | read the lines, see below |
shows text messages and gets stuck, for example in emergency mode or with EXT4-fs error | the file system on the card is damaged | Step 4: don’t keep rebooting, back up your data first |
| stays black | no picture, or the Pi isn’t starting | Step 2 |
On a Pi 4 or Pi 5, the bootloader shows the diagnostics screen when it can’t boot from any drive, for example because there’s no card in the slot, no system on it, or the card is faulty. You can also bring it up on purpose: switch the Pi off, remove the SD card or SSD and switch it back on. The QR code just links to the Raspberry Pi downloads page. Three lines are worth reading:
boot: afterorderyou’ll see the boot order, i.e. the order in which the Pi tries the SD card, USB and NVMe (step 7).SDtells you whether an SD card was detected. If a card is in the slot and isn’t detected, it isn’t seated properly or it’s faulty (step 6).displayshows for each HDMI port whether a monitor was found:HPD=1andEDID=okmean the cable and monitor are working.
The other lines are explained in the Raspberry Pi documentation on boot diagnostics.
Won’t boot after an update or a change
If your Pi was working fine and won’t boot after an update, a power cut or a change you made, work through the steps in order as well: check the power supply (step 1), undo any recent changes to config.txt (step 3) and, if you see file system messages, back up your data first (step 4). If a bootloader update went wrong on a Pi 4 or Pi 5, the reset in step 8 will help.
Step 1: Check the power supply
If your Raspberry Pi won’t turn on at all, the red LED flickers or you see blink code 4/6 or 4/7, it isn’t getting enough power. A weak power supply doesn’t always make itself that obvious, though: the Pi may crash under load or damage the SD card while writing to it. Raspberry Pi says every model needs a 5.1 V supply and recommends these currents:
| Model | Recommended power supply | Connector |
|---|---|---|
| Raspberry Pi 5, 500 and 500+ | 5 A (27 W); a Pi 5 or 500 also runs on 3 A, but then all USB devices together only get 600 mA | USB-C |
| Raspberry Pi 4 and 400 | 3 A | USB-C |
| Raspberry Pi 1 to 3 | 2.5 A | Micro USB |
| Raspberry Pi Zero 2 W | 2 A | Micro USB |
| Raspberry Pi Zero and Zero W | 1.2 A | Micro USB |
- A phone charger rated at 1 or 2 A isn’t enough for a Pi 4 or Pi 5.
- Use a short cable with thick enough wires. Long, thin cables lose voltage along the way.
- Unplug any USB devices that draw power from the Pi while you test, such as hard drives without their own power supply.
The safest choice is the official power supply: the official 27 W power supply for the Raspberry Pi 5* or the official 15 W power supply for the Raspberry Pi 4*. For alternatives that work, see our guide to the best Raspberry Pi power supply. A Pi 5 on a 3 A supply also won’t boot from USB, see step 7.
Check for undervoltage
If the Pi only boots now and then or keeps crashing, this command in the terminal tells you whether there’s been undervoltage since it started:
vcgencmd get_throttled
If you get throttled=0x0, everything has been fine since boot. Any other value means undervoltage or throttling. An odd last digit means the voltage is too low right now. An odd fifth digit from the right, like the 5 in 0x50000, means there’s been undervoltage since boot. Either way, your power supply or cable isn’t up to the job.
Step 2: No picture on the monitor
Screen stays black? Check the connection first:
- On a Pi 4 or Pi 5, plug your monitor into the micro HDMI port labelled HDMI0 on the board.
- For testing, connect the cable before you switch the Pi on.
- Try a different cable or adapter, such as an Amazon Basics micro HDMI to HDMI cable*.
- Try another monitor or TV, and make sure it’s set to the right input.
On a Pi 4 or Pi 5, the diagnostics screen makes a handy test: if it appears with the card removed, video output works and the problem is the system on the card (steps 3 to 5). If the screen stays black even without a card, it’s usually the cable, the port or the monitor. If those are fine, go to step 8 and reset the bootloader.
The Pi 3, older models and the Zero range don’t have a diagnostics screen. If the LED shows card activity, the Pi is starting, so check whether it’s on your network as described in Is it running after all?. If it doesn’t, move on to step 3.
Step 3: Undo your changes to config.txt
Did you overclock the Pi or set up an add-on board with dtoverlay shortly before it stopped booting? Then a line in config.txt may be the culprit. According to the documentation, most overclocking problems show up right away on the next boot. The file is on the card’s boot partition, which appears as a drive called bootfs when you put the card in a card reader on your computer, Windows included. On a running Pi, it’s /boot/firmware/config.txt.
Comment out the lines you added by putting a # at the start: arm_freq=2000 becomes #arm_freq=2000. That way you can switch them back on later. Work through them in this order and reboot after each change:
- Overclocking:
arm_freq,over_voltage,gpu_freq,core_freqandforce_turbo. - Any
dtoverlayanddtparamlines you added yourself.
Raspberry Pi OS ships with these lines in the file. Leave them as they are:
dtparam=audio=on
camera_auto_detect=1
display_auto_detect=1
auto_initramfs=1
dtoverlay=vc4-kms-v3d
max_framebuffers=2
disable_fw_kms_setup=1
arm_64bit=1
disable_overscan=1
arm_boost=1
Below them come the [cm4], [cm5], [pi5] (with dtoverlay=nospi10) and [all] sections. Leave those alone too. You’ll only find arm_64bit=1 in the 64-bit image. arm_boost=1 sounds like overclocking, but it’s part of the default setup. A word on force_turbo=1: according to the documentation, combining it with an over_voltage value above 0 can permanently set the so-called warranty bit in the chip. The one exception is the Pi 4, where it’s never set. The bit shows later that the Pi has been overclocked, and there’s no way to clear it. Our guide to overclocking the Raspberry Pi lists safe settings.
Step 4: Back up your data and deal with file system errors
From step 5 on, a card gets overwritten. If your card holds files or settings you still need, back them up on a second computer now. That works even if the Pi won’t boot at all. Windows only shows the small bootfs boot partition; your files are on the Linux partition next to it. On Windows you can read that with the free DiskInternals Linux Reader, and a second Pi or Linux computer can open it directly. Our guide to recovering data from a corrupted Raspberry Pi SD card walks you through both. If there’s nothing on the card you need, go straight to step 5.
File system errors: Raspberry Pi OS checks the system partition at every boot and fixes minor errors on its own, without asking. That’s what the fsck.repair=yes option in cmdline.txt does, and it’s there by default. If the repair fails, the Pi gets stuck in emergency mode or shows messages like EXT4-fs error. A power cut or a weak power supply is often the trigger. At that point, stop booting from the card, because every attempt can destroy more data, and back up your files as described above. The recovery guide also explains how to get your old system onto a new card. If you’d rather start fresh after file system errors, write the new system straight to a new card (step 6 and step 5), because the old one may fail again.
Step 5: Write a fresh system to the card
A freshly written system replaces missing or damaged boot files, which can be behind blink codes 0/4, 0/7 and 2/x as well as a rainbow screen that won’t go away. You’ll need a computer and a card reader, such as the Acer SD card reader (USB 3.0 and USB-C)*.
- Download Raspberry Pi Imager from raspberrypi.com/software (Windows, macOS and Linux) and open it.
- Under Device, pick your Pi model. The Imager then lists the right system for it at the top.
- Under OS, choose Raspberry Pi OS. Not sure which system suits your project? Our Raspberry Pi OS comparison helps you decide.
- Under Storage, select the SD card. Double-check it’s the card and not another drive.
- Under Customisation, set your hostname, username, password, Wi-Fi and SSH. There’s no default user any more; see Raspberry Pi default passwords and login.
- Click Write and confirm with “I understand, erase and write”. Once it’s done writing, the Imager checks the data on the card.
Then put the card in your Pi and switch it on. If writing fails or the Imager reports “Verifying write failed”, the card itself is faulty, so move on to step 6. If the Pi still won’t boot with the fresh system, try another card (step 6), reset the bootloader on a Pi 4 or Pi 5 (step 8), or go to step 9. Our Raspberry Pi Imager guide walks through all the Imager settings.
Step 6: Replace the SD card
SD cards wear a little with every write, so they wear out sooner in a Pi that runs around the clock. Once a card is faulty, the only fix is a new one. Raspberry Pi recommends at least 32 GB for Raspberry Pi OS with desktop and 8 GB for the Lite version without one. Go for a brand-name card marked A1 or A2, which means it handles lots of small files quickly. Good picks are the SanDisk Extreme PRO 64 GB* for the Pi 5 and the SanDisk Extreme 64 GB* for the Pi 4 and older models. Our guide to the best SD card for the Raspberry Pi goes into more detail.
Write the system to the new card as in step 5. If cards keep failing on a Pi that’s always on, you’re better off booting from an SSD, see step 7.
Step 7: Pi won’t boot from an SSD, USB stick or NVMe drive
The Pi 4 and Pi 5 try their drives in a fixed order, the boot order (BOOT_ORDER). You can see the current setting in the boot line of the diagnostics screen. If there’s still a bootable SD card in the slot and the SD card comes first in the boot order, the Pi boots from the card instead of the SSD. Our BOOT_ORDER generator works out the right value for the order you want.
If the Pi won’t boot at all, you can set up the bootloader for SSD or USB boot without a running system. You’ll need an empty or spare microSD card, which the Imager wipes:
- In Raspberry Pi Imager, pick your model under Device, then scroll all the way down under OS.
Pi 5, 500 and 500+: Misc utility images → Bootloader (Pi 5 family) → NVMe/USB Boot
Pi 4 and 400: Misc utility images → Bootloader (Pi 4 family) → USB Boot - Under Storage, pick the empty card and write it.
- Put the card in the Pi while it’s off and plug in the power. Once the green LED blinks in a steady rhythm, the bootloader has been updated.
- Unplug the power, take the card out, connect the SSD or USB stick with your system on it and switch the Pi back on.
USB boot works differently on a Pi 3; the USB boot guide linked below covers it.
Pi 5 on a 3 A power supply: USB boot is turned off by default. You have two options:
- Add the line
usb_max_current_enable=1to theconfig.txton the USB drive you want to boot from. The file is on the drive’s boot partition, which shows up asbootfson your computer. - Press the power button once after a failed USB boot. The Pi then boots from USB, but only until the next reboot.
For full walkthroughs, see boot your Raspberry Pi from USB, boot your Raspberry Pi from an SSD and set up a Raspberry Pi 5 without an SD card.
Step 8: Reset the bootloader (Pi 4, 400, 5, 500, 500+)
The Pi 4, the Pi 5 and the keyboard models Pi 400, 500 and 500+ keep their bootloader on a separate memory chip (EEPROM) on the board. If it’s damaged or misconfigured, no amount of rewriting the SD card will help. A reset is worth trying if you see a 3/x blink code, after a failed bootloader update, or if not even the diagnostics screen appears without a card although your monitor and cable are fine. It also resets any changes you’ve made to the boot order. You’ll need an empty or spare microSD card, because the Imager wipes it. Your normal card isn’t touched.
- Put the empty card in your computer and open Raspberry Pi Imager.
- Under Device, pick your model.
- Under OS, scroll all the way down and choose:
Pi 5, 500 and 500+: Misc utility images → Bootloader (Pi 5 family) → SD Card Boot
Pi 4 and 400: Misc utility images → Bootloader (Pi 4 family) → SD Card Boot - Under Storage, pick the empty card, click Write and confirm with “I understand, erase and write”.
- Put the card in the Pi while it’s off, then plug in the power.
- Once the green LED blinks in a steady rhythm and your monitor shows a green screen, the bootloader has been rewritten. Unplug the power and take the card out.
Now put your normal card back in. If the LED doesn’t blink steadily and the screen doesn’t turn green, write the image to a different card and try again. If that doesn’t work either, move on to step 9. The Pi 3 and older models don’t have this kind of bootloader: all their boot files live on the card, so step 5 covers them. The Raspberry Pi documentation on reflashing the bootloader describes the same process.
Step 9: Rule out a hardware fault
If none of this has helped, including the bootloader reset from step 8, strip the Pi down to the bare minimum and test again:
- Remove all HATs and add-on boards.
- Unplug all USB devices.
- Take a look at the GPIO pins: is one bent or touching its neighbour?
- Use a different card with a freshly written system.
- Try a different power supply, ideally the official one.
If it still won’t boot, the board is most likely faulty. If it’s still under warranty, contact the shop you bought it from.
Frequently asked questions about a Raspberry Pi that won’t boot
When you shut down a Pi 5, its LED turns red to show it’s in standby. Press the power button once and it boots again. If the LED stays red right after you plug in the power and never turns green, the firmware isn’t getting any further. Check the power supply first, then reset the bootloader with Raspberry Pi Imager.
The firmware shows the colourful rainbow screen briefly every time the Pi starts. If it stays on screen, the firmware has loaded but Linux isn’t taking over. Check your power supply first. If that doesn’t help, back up your data and write a fresh system to the card with Raspberry Pi Imager, because the Imager wipes the card.
Work through it in order: check the power supply first and undo any recent changes to config.txt. Raspberry Pi OS tries to repair file system errors on its own while it boots. If the Pi still shows messages like EXT4-fs error or gets stuck in emergency mode, stop booting from the card and back up your data on a second computer. After that, write a fresh system to a new card. Rewriting a card always erases everything on it, not just the update. If a bootloader update went wrong on a Pi 4 or Pi 5, reset the bootloader with Raspberry Pi Imager.
That’s the bootloader’s diagnostics screen on a Pi 4 or Pi 5. It appears when the Pi can’t boot from any drive. The SD line tells you whether an SD card was detected, and the boot line shows the boot order. The QR code just links to the Raspberry Pi downloads page.
Long flashes come first, then short ones. After a pause of about two seconds, the pattern starts again. Four short flashes with no long one are code 0/4 (start file missing, Pi 1 to 4 only), seven short flashes are code 0/7 (kernel missing). You’ll find the other codes in the blink code table in this guide.
Further reading
- Recover data from a corrupted Raspberry Pi SD card and repair it
- Boot your Raspberry Pi from a USB SSD or flash drive
- Boot your Raspberry Pi from an SSD
- Raspberry Pi BOOT_ORDER generator
- The best Raspberry Pi power supply
- The best SD card for the Raspberry Pi
- Raspberry Pi Imager guide
