How-to · Intermediate · 3 min read
Raspberry Pi 5 NVMe and PCIe
M.2 HATs, SSD Boot and Expansion Boards
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
Raspberry Pi 5 has a single PCIe lane that you can use for an NVMe SSD through an M.2 HAT. Pick a HAT that fits your case, a small 2230 or 2242 drive, install the cable, set boot order to NVMe and use a 5 V 5 A supply. Boards that add several drives or network ports share the same single lane.
Key specs at a glance
- PCIe
- One lane, Gen 2 officially, Gen 3 speeds can be enabled but are not certified
- Drive size
- 2230, 2242 or 2280 depending on the HAT
- Power
- 5 V 5 A supply recommended with an SSD
- Boot
- Set boot order to NVMe in raspi-config
- Connection
- FFC ribbon cable to the PCIe port, plus HAT mounting
- Pi 4
- Does not expose PCIe; use a USB 3 SSD instead
Types of PCIe boards
Boards vary in the number of drives and features.
| Board type | Features | Notes |
|---|---|---|
| Single M.2 NVMe HAT | One SSD, sits on top or below the Pi | Match the case; check the drive length |
| NVMe plus PoE+ HAT | SSD and Power over Ethernet | Good for compact installations |
| Quad NVMe board | Several SSDs through a PCIe switch | All drives share one lane |
| PCIe to Ethernet or SATA board | 2.5 GbE or SATA bays | Also limited by one lane |
| Official M.2 HAT+ | Standard board and bracket | See the Raspberry Pi accessory range |
- Single M.2 NVMe HAT
- Features:
- One SSD, sits on top or below the Pi
- Notes:
- Match the case; check the drive length
- NVMe plus PoE+ HAT
- Features:
- SSD and Power over Ethernet
- Notes:
- Good for compact installations
- Quad NVMe board
- Features:
- Several SSDs through a PCIe switch
- Notes:
- All drives share one lane
- PCIe to Ethernet or SATA board
- Features:
- 2.5 GbE or SATA bays
- Notes:
- Also limited by one lane
- Official M.2 HAT+
- Features:
- Standard board and bracket
- Notes:
- See the Raspberry Pi accessory range
Installing the HAT and drive
- 1Power off and unplug the Pi.
- 2Fit the spacers and install the SSD in the M.2 slot.
- 3Open the Pi's PCIe connector latch, insert the ribbon cable (blue side oriented as shown in the instructions), and close the latch.
- 4Mount the HAT, using the GPIO standoffs if needed.
- 5Boot from an SD card first and update the firmware.
- 6Copy the OS to the NVMe with Raspberry Pi Imager or rpi-clone, then set boot order to NVMe in raspi-config.
Speed and power
The PCIe link runs at Gen 2 speed by default, which is already much faster than an SD card. You can enable Gen 3 in the configuration file for higher speed, but the interface is not officially certified, so test stability with your drive. SSDs add heat and power draw, so use a quality 5 V 5 A supply and add cooling. See cases and cooling.
Troubleshooting
reseat the ribbon cable and check the drive is NVMe (not SATA M.2).
update the bootloader and set the boot order.
weak power supply; use the 27 W official type.
check the case for HAT clearance.
all drives share a single lane.
Try it: Power supply sizing calculator
Change the values and the diagram and results update as you type.
Common mistakes to avoid
- Buying a SATA M.2 drive.
- Using an old 3 A power supply.
- Forgetting to set the boot order.
- Choosing a HAT that does not fit the case.
- Expecting full speed from four drives on one lane.
Frequently asked questions
Can a Pi 4 use NVMe?
Not directly. Use a USB 3 to NVMe adapter.
Which NVMe size fits?
2230 and 2242 fit most HATs; 2280 needs a longer board.
Is Gen 3 safe?
Often works, but it is not certified. Test for stability.
Do I need a heatsink on the SSD?
For heavy use, yes; many HATs include one.
Is it worth it?
Yes, boot times and file access are much faster than SD cards.
Parts for this guide
Calculators
Terms in this guide
Projects that use it
Put this into practice: 1 step-by-step build in our project library uses parts from this guide.
Keep learning
Sources
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.




