Raspberry Pi 5 NVMe SSD performance

Setting Up an NVMe SSD on the Raspberry Pi 5 – M.2 HAT+ & Benchmarks (2026)

The Raspberry Pi 5 is the first standard-format Raspberry Pi with a PCIe port. Add an NVMe SSD through the M.2 HAT+ and it reads up to ten times faster than a microSD card.

In short

An NVMe SSD on the M.2 HAT+ is the best upgrade for the Raspberry Pi 5, especially for home servers, databases and Docker. If you only use your Pi for simple projects, a good A2 SD card is enough.

  • You need: a Raspberry Pi 5, the official M.2 HAT+ (2230/2242) or a third-party adapter for 2280, and an M.2 NVMe SSD with M-key (not SATA).
  • Steps: assemble the hardware (about ten minutes), update the system and bootloader, enable PCIe if your adapter isn’t a HAT+, then write Raspberry Pi OS to the NVMe.
  • Watch out: connect the ribbon cable to the HAT before you fit the SSD. SSDs with a Phison controller often cause trouble on the Pi 5; with the Maxio MAP1202 it depends on the drive.
  • Pi 4 and older: no PCIe port – an external SSD over USB 3.0 is the best option there.

💡 Running Home Assistant? This guide is part of our smart home series. For hardware, installation and more projects, see Home Assistant: All Our Guides at a Glance.

Top view of the Raspberry Pi 5 with GPIO header, micro HDMI ports, USB ports, Ethernet and the PCIe connector
The Raspberry Pi 5 – the first Pi with a PCIe port for NVMe SSDs

What is NVMe – and why is it so much faster?

NVMe stands for Non-Volatile Memory Express, a standard for accessing storage over the PCIe bus (PCI Express).

The key differences at a glance:

Storage typeInterfaceSeq. read (typ.)Random IOPS
microSD (A2)SD bus~40–90 MB/s~2,000–5,000
USB 3.0 SSDUSB 3.0~300–400 MB/svaries by USB adapter
NVMe (PCIe Gen 2)PCIe 2.0 x1~400–500 MB/svaries by SSD
NVMe (PCIe Gen 3, unofficial)PCIe 3.0 x1up to ~900 MB/s~100,000+

The real advantage isn’t just sequential read speed, it’s random access (IOPS). An operating system constantly reads and writes thousands of small files, and that’s exactly where NVMe beats a microSD card many times over. As a result, the Pi feels noticeably snappier and doesn’t stutter under load.

From our test (fio, 4K random access, queue depth 32, PCIe Gen 3 enabled): a budget Intenso Premium 250 GB reached around 215,000 read IOPS (838 MiB/s) and 133,000 write IOPS (518 MiB/s) on the Pi 5. A good A2 microSD card manages a few thousand IOPS on the Pi 5; Raspberry Pi rates its official card at 5,000 read and 2,000 write. So for small random accesses, the NVMe is roughly 40 to 70 times faster. That’s what you notice most in everyday use: system responsiveness, databases and Docker.

The PCIe port on the Raspberry Pi 5

The Raspberry Pi 5 is the first standard-format Pi board with an exposed PCIe FFC connector (flexible flat cable). It’s a single-lane (x1) port, officially rated for PCIe 2.0 at 5 GT/s (roughly 500 MB/s in practice).

Technical details of the Pi 5’s PCIe interface:

  • Controller: built into the BCM2712 SoC. The RP1 chip for USB, Ethernet and GPIO has its own internal PCIe link to the SoC. It plays no part in the external connector.
  • Official spec: PCIe 2.0 x1 (5 GT/s)
  • Unofficial overclock: PCIe Gen 3 (8 GT/s) can be enabled, but Raspberry Pi doesn’t guarantee it’s stable
  • Connector: FFC cable (16-pin, 0.5 mm pitch – narrower than the Pi 4’s 15-pin camera connector)
  • HAT+ standard: the official M.2 HAT+ enables the PCIe port automatically, no configuration needed

Required hardware

Official Raspberry Pi M.2 HAT+ with an NVMe SSD installed
The official Raspberry Pi M.2 HAT+ – fitted here with a short 2242 NVMe SSD

The official Raspberry Pi M.2 HAT+

The Raspberry Pi M.2 HAT+ (HAT+ is the new standard for Pi 5 add-on boards) is the simplest option and the one I’d recommend. It sits on the GPIO header and connects to the PCIe port with the FFC cable.

Key features:

  • Form factors: M.2 2230 and 2242 (the short sizes)
  • Key: M-key (NVMe) – M.2 SATA SSDs don’t work on the Pi 5’s PCIe port
  • HAT+ compliant: PCIe is enabled automatically, no changes to config.txt
  • Power: up to 3 A for the SSD – plenty for all common NVMe drives

A note on size: the official HAT+ only takes the short 2230 and 2242 sizes. Common desktop NVMe SSDs in the 2280 format (80 mm long) won’t fit. You’ll need a short M.2 SSD or a third-party HAT that supports 2280. There’s also the M.2 HAT+ Compact (2230 only). It fits around the fan of the official Raspberry Pi 5 case, but you can’t mount an Active Cooler underneath it.

Links marked with * are affiliate links, which makes them advertising. If you buy through one, I earn a commission at no extra cost to you. As an Amazon Associate I earn from qualifying purchases. Learn more

Third-party M.2 adapters

If you want to use a full-size 2280 SSD, you need an unofficial adapter. Popular choices include the Pimoroni NVMe Base and the Geekworm X1001, both of which take 2280 SSDs. If the Pi doesn’t detect an adapter as a HAT+, you enable PCIe yourself in config.txt (step 3 of the setup).

Beyond these two there are dozens of other adapters – mounted on top or underneath, with PoE or for two SSDs. Our overview Raspberry Pi 5 NVMe HAT: Every Board Compared lists every board currently available, sorted by form factor.

Which NVMe SSDs work with the Pi 5?

Not every NVMe SSD works with the Pi 5. Whether a drive is detected and boots depends mainly on its controller chip. These models have a track record:

ModelForm factorFitsEvidence
Raspberry Pi SSD (official)2230M.2 HAT+, HAT+ Compact, third-party adaptersofficial Raspberry Pi accessory
Intenso Premium 250 GB2280third-party adapters for 2280our own test in this article (Maxio MAP1202 controller)
⚠️ SSDs that cause trouble

SSDs with a Phison controller often aren’t detected by the Pi 5 or won’t boot. Geekworm’s compatibility list names, among others, the Kingston NV3, the WD Blue SN580 and SN5000, and the Patriot P300. The P300 ships with different controllers depending on region and batch. Geekworm also advises against the Maxio MAP1202 controller, saying it doesn’t cope with PCIe Gen 2. That isn’t true across the board: our Intenso Premium from the test uses exactly this controller, runs on the Pi 5 at Gen 2 and, in a short test, at Gen 3 too, and one of our Pi 5s runs from it around the clock.

You can see which controller your SSD uses with lspci once the Pi detects it (see “Step 3: Enable PCIe and find the SSD”).

For the HAT and SSD combinations worth buying right now, see our buying guide: NVMe SSDs and M.2 HATs for the Raspberry Pi 5.

Setup: NVMe as the boot drive on the Raspberry Pi 5

Raspberry Pi M.2 HAT+ mounted on a Raspberry Pi 5
The M.2 HAT+ mounted on the Raspberry Pi 5 – connected with the supplied FFC cable

Step 1: Assemble the hardware

Assembly takes about ten minutes. I’m using a typical all-in-one kit with a 2280 adapter sold as “RPI5 PCIe M.2 HAT (A)” (identical to the Geekworm X1001), an Active Cooler and a metal case. The principle is the same with other HATs.

Raspberry Pi 5 with M.2 NVMe SSD, PCIe adapter board, ribbon cable and screws on a table
Everything in the kit: the Raspberry Pi 5, the 2280 M.2 adapter, the NVMe SSD (an Intenso Premium 250 GB here), Active Cooler and metal case – plus ribbon cable, standoffs and screws.

1. Fit the standoffs. Screw the supplied brass standoffs into the Pi’s four mounting holes. The M.2 adapter will sit on top of them later, with enough clearance above the board.

Raspberry Pi 5 board with brass standoffs in the mounting holes
The brass standoffs go into the mounting holes first – the M.2 adapter sits on top of them later.

2. Fit the Active Cooler. Peel the film off the thermal pads and place the Active Cooler in the middle. The spring-loaded pins click into the holes next to the processor. The fan cable goes into the small four-pin FAN connector – don’t forget it, or the fan won’t spin.

Raspberry Pi 5 with blue thermal pads next to an Active Cooler with fan
Peel the film off the thermal pads – they make the contact between the chips and the Active Cooler.
Raspberry Pi 5 with the Active Cooler fitted and the PCIe ribbon cable plugged in
The Active Cooler is held in place by its spring-loaded pins; the fan cable goes into the four-pin FAN connector.

3. Connect the PCIe ribbon cable to the Pi. Gently lift the latch of the PCIe connector (labelled “PCIe”, on the short edge of the board opposite the USB ports) and slide the ribbon cable in straight, all the way. The metal contacts of the cable face the USB ports. Then press the latch back down. If the cable goes in the wrong way round, the Pi won’t find the SSD later.

Ribbon cable plugged into the PCIe connector of a Raspberry Pi 5
Lift the latch of the PCIe connector, slide in the ribbon cable and close the latch again.
⚠️ Mind the order: cable to the HAT first, then the SSD!

Connect the ribbon cable to the adapter first and only then fit the SSD. If the SSD goes in first, it covers the flat FPC connector on the adapter – you can’t reach the latch any more and have to take the SSD out again. I fell into exactly this trap on my first attempt.

M.2 NVMe adapter on a Raspberry Pi 5 with the fan and ribbon cable visible
Ribbon cable into the adapter’s FPC connector first – otherwise the SSD would cover this connector.

4. Connect the cable to the adapter, then fit the SSD. Plug the other end of the ribbon cable into the adapter’s FPC connector and close the latch. Now slide the M.2 SSD into the M-key slot at a slight angle, press it down flat and secure it with the small screw at the 2280 mark. Shorter SSDs (2230, 2242, 2260) fit too, but the X1001 has no threaded post at those positions. Geekworm now includes a copper standoff with the X1001 for this; an M2 screw with two nuts also does the job.

Raspberry Pi 5 with Active Cooler and a third-party PCIe M.2 adapter holding an Intenso SSD
Insert the 2280 SSD into the M-key slot at an angle, press it flat and screw it down at the 2280 hole – here the adapter already sits above the Active Cooler.

5. Screw down the adapter and close the case. Place the adapter on the standoffs and screw it down. Finally, everything goes into the metal case – base, the cover with the honeycomb vents and the side panels. All ports stay accessible.

Black metal Raspberry Pi 5 case with openings for USB-C and two micro HDMI ports
Done: the complete build in the metal case. All ports stay accessible.

Step 2: Update the system and bootloader

For the setup, boot the Pi one more time from an SD card with Raspberry Pi OS. First, bring the system up to date:

sudo apt update && sudo apt full-upgrade

Then check which bootloader version you’re running:

sudo rpi-eeprom-update

If it shows December 6, 2023 or later, carry on with step 3. If the date is older, open sudo raspi-config and pick Latest under Advanced Options → Bootloader Version. Then install the new bootloader and reboot:

sudo rpi-eeprom-update -a
sudo reboot

Step 3: Enable PCIe and find the SSD

With the official M.2 HAT+ you can skip this part: the Pi detects the HAT and enables PCIe by itself. With any other adapter, the PCIe port is off by default. As long as it’s off, the Pi can’t see the SSD. So open the config file:

sudo nano /boot/firmware/config.txt

Add these lines at the very end of the file:

# Enable PCIe
dtparam=pciex1

# Optional: PCIe Gen 3 (unofficial, see Gen 2 vs. Gen 3 below)
# dtparam=pciex1_gen=3

Press Ctrl+O and Enter to save, then Ctrl+X to exit nano. Then reboot:

sudo reboot

Now check whether the Pi can see the SSD. Do this with every adapter, including the HAT+:

lsblk

A device called nvme0n1 has to show up in the list. If it’s missing, check that the ribbon cable sits the right way round at both ends and that the SSD is firmly in its slot. lspci shows you which controller the SSD uses. If it says Phison, your drive is probably one of the problem cases above. With Maxio, it depends on the drive.

Step 4: Write Raspberry Pi OS to the NVMe

Raspberry Pi OS with desktop comes with Raspberry Pi Imager pre-installed. You can use it to write the SSD right on the Pi:

  1. Start Raspberry Pi Imager.
  2. Choose Raspberry Pi 5 as the device and Raspberry Pi OS (64-bit) as the operating system.
  3. Pick the NVMe SSD as the storage and start writing.

Raspberry Pi OS Lite doesn’t include Imager. You then have two options: write the SSD on your PC using an M.2-to-USB enclosure, or move your running system over with our guide to cloning your SD card to NVMe.

Non-HAT+ adapters: you don’t need to add dtparam=pciex1 to the config.txt on the SSD. When the Pi boots from the NVMe, the bootloader switches PCIe on by itself.

Step 5: Boot from the NVMe

M.2 HAT+, SD card coming out: shut the Pi down with sudo poweroff and remove the SD card. Without an SD card, the Pi 5 boots from the NVMe automatically, and you don’t need to touch the bootloader configuration.

In two cases, change the bootloader configuration first, while the Pi is still running from the SD card:

  • Non-HAT+ adapter: the bootloader only looks for an NVMe drive if PCIE_PROBE=1 is set.
  • You want to keep the SD card in: the Pi 5 default 0xf461 tries the SD card first. With BOOT_ORDER=0xf416 the NVMe comes first.

Open the bootloader configuration:

sudo rpi-eeprom-config --edit

Change the existing BOOT_ORDER line (only if the SD card stays in) and add PCIE_PROBE=1 (only for non-HAT+ adapters):

BOOT_ORDER=0xf416
PCIE_PROBE=1

0xf416 is read from right to left: NVMe first (6), then the SD card (1), then USB (4), then start over (f). The SD card stays in the boot path as a fallback. For any other order, use our BOOT_ORDER generator.

Save as before with Ctrl+O, Enter and Ctrl+X. Then reboot with the SD card still in – the Pi only writes the new configuration to the bootloader during that reboot:

sudo reboot

With 0xf416, the Pi now boots from the NVMe. If you no longer need the SD card, shut the Pi down afterwards and take it out.

Step 6: Check that it worked

This command shows which drive the system is running from:

findmnt /

If the SOURCE column says /dev/nvme0n1p2, the Pi is running from the NVMe. For a quick read test, install hdparm, which doesn’t come with Raspberry Pi OS:

sudo apt install hdparm
sudo hdparm -Tt /dev/nvme0n1

PCIe Gen 2 vs. Gen 3 – is the overclock worth it?

The Pi 5 is officially specified for PCIe Gen 2 (5 GT/s, a maximum of ~500 MB/s in practice). PCIe Gen 3 (8 GT/s, up to ~900 MB/s) is an unofficial overclock of the bus.

Many SSDs run stably with dtparam=pciex1_gen=3, and Jeff Geerling and other testers report read speeds of up to 900 MB/s. Raspberry Pi warns, though, that Gen 3 connections may be unstable. How well it works depends on the FFC cable and the SSD.

From our test: a budget Intenso Premium 250 GB (2280) reached about 439 MB/s read and 429 MB/s write on the Pi 5 in the default mode (PCIe Gen 2) – pretty much the maximum the Gen 2 lane allows. So the port was holding the SSD back, not the drive itself. With PCIe Gen 3 enabled (dtparam=pciex1_gen=3), the same Intenso jumped to 843 MB/s read, nearly double. It ran error-free in our short test, with no PCIe errors in dmesg. Since Raspberry Pi hasn’t certified Gen 3, run a longer stress test before relying on it around the clock.

My recommendation: start with Gen 2 (the default). If you want more performance, enable Gen 3 and check stability with a longer benchmark (e.g. fio). For production systems, Gen 2 remains the safer choice.

Use cases: which projects benefit from an NVMe SSD?

1. Home server and NAS

If you run Nextcloud, a Samba file server or a small NAS, fast storage makes a big difference:

  • File transfers over Gigabit Ethernet are no longer held back by the storage
  • Several people accessing files at once no longer causes bottlenecks
  • The NVMe copes with round-the-clock use and lots of writes better than an SD card (see point 6)

2. Databases (MariaDB, PostgreSQL, SQLite)

Databases are extremely IOPS-sensitive – they constantly perform small, random reads and writes. On a microSD card that means noticeable delays. With PCIe Gen 3, the NVMe from our test managed well over 100,000 IOPS on this kind of access – a microSD card only manages a few thousand.

Good projects for this: Home Assistant (SQLite/MariaDB), a Nextcloud database, self-hosted web apps, InfluxDB for sensor logging.

3. Docker and container workloads

Docker reads and writes lots of small files when it starts containers and pulls images (layers, overlay filesystem). Those small random accesses are exactly what slows an SD card down, while the NVMe barely notices them. With many containers, you’ll feel the difference at startup and with every update.

4. Media servers (Plex, Jellyfin, Emby)

Media servers read lots of small files when they scan the library and generate thumbnails. The NVMe handles that faster than an SD card, especially with a large library.

5. Development and compiling

If you use the Pi as a development machine (compiling code, Node.js/Python projects, build systems), you’ll benefit too. Compiling creates lots of intermediate files, and reading and writing them is often the bottleneck on an SD card.

6. Running 24/7 and reliability

All flash storage can only handle a limited amount of writing. SSD makers state this endurance as TBW (terabytes written) on the spec sheet and manage wear with their own controller and spare cells. microSD cards usually don’t come with a TBW rating at all. If your Pi runs as a server around the clock and keeps writing logs and databases, the SD card is the part most likely to give up first.

When is NVMe NOT worth it?

In these cases you can save yourself the extra effort:

  • Simple GPIO projects (blinking LEDs, reading sensors) – storage speed doesn’t matter here
  • Retro gaming / RetroPie – ROMs are loaded once, after that the storage is barely used
  • Occasional desktop use – a good SD card is enough for light office work

Alternative for the Pi 4: USB SSD

On a Raspberry Pi 4 you can’t connect an NVMe SSD directly. The best alternative is an external SSD over USB 3.0. The Pi 4 has two USB 3.0 ports with up to 5 Gbit/s – an external SSD reaches 300–400 MB/s there, several times what a microSD card manages.

Without an SD card, a Pi 4 with an up-to-date bootloader boots from USB on its own: the default order tries the SD card first, then USB. You only need to move USB to the front if you want to keep the SD card in:

# Only needed if the SD card stays in: put USB ahead of the SD card
sudo raspi-config
# → Advanced Options → Boot Order → NVMe/USB Boot
* Affiliate links (advertising). Learn more

Conclusion

An NVMe SSD is the best upgrade you can give your Raspberry Pi 5. With the official M.2 HAT+ and a compatible SSD, the Pi 5 becomes a small, low-power server. For home servers, databases and Docker, you’ll clearly notice the difference from a microSD card, both in speed and in durability. When buying, check the controller, and stick to the setup order: update, enable PCIe, write the SSD, switch over.

If you only use your Pi for simple projects, you don’t need NVMe – a good A2 SD card is perfectly fine.

Frequently asked questions about NVMe on the Raspberry Pi 5

Which NVMe SSD is recommended for the Raspberry Pi 5?

The official M.2 HAT+ only takes short SSDs in the 2230 or 2242 format; the safest choice is the official Raspberry Pi SSD (2230). With a third-party adapter for 2280, longer SSDs fit too, such as the Intenso Premium from our test. Avoid SSDs with a Phison controller; with the Maxio MAP1202 it depends on the drive (the Intenso Premium runs fine with it for us). Also make sure the drive is M.2 M-key and NVMe (not SATA).

Do I need an M.2 HAT+ for the Raspberry Pi 5?

You need a board that connects the Pi 5’s PCIe port to an M.2 slot: the official M.2 HAT+ or a third-party adapter. The official HAT+ only takes 2230 and 2242 SSDs; for a 2280 SSD you need a third-party adapter.

How much faster is NVMe compared to an SD card?

An NVMe SSD on the Raspberry Pi 5 typically reaches 400–900 MB/s sequential read speed, while microSD cards usually manage 40–90 MB/s. The gap is even bigger for lots of small random accesses, such as database work.

Can I use an SD card and an NVMe SSD at the same time?

Yes, both can be inserted at the same time. The boot order is set in raspi-config or in the bootloader (EEPROM) configuration. That way you can boot from the NVMe and keep the SD card as a backup.

Does every NVMe SSD work with the Raspberry Pi 5?

No. SSDs with a Phison controller in particular often aren’t detected or won’t boot. With the Maxio MAP1202 controller, it depends on the drive. The Pi 5 uses PCIe 2.0, so faster PCIe 4.0 SSDs run at reduced speed. The official Raspberry Pi SSDs are the safe choice. Jeff Geerling maintains a database of tested drives and adapters at pipci.jeffgeerling.com.

Can the Raspberry Pi 5 boot directly from the NVMe SSD?

Yes. With the official M.2 HAT+, the Pi 5 boots from the NVMe automatically when no SD card is inserted. With other adapters, the bootloader configuration needs PCIE_PROBE=1. If you want to keep the SD card in, change the boot order to 0xf416 once. You can clone an existing system from the SD card to the SSD or install a fresh one.

Does NVMe also work on the Raspberry Pi 4?

Not over PCIe – the port only exists on the Pi 5. On a Pi 4 you can only connect an NVMe SSD through a USB enclosure. That’s still a clear step up from the SD card, but it stays below what PCIe delivers.

Similar Posts