Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Easiest Cheapest Way to Add NVMe to Raspberry Pi

· 6 min read · Home Tech

In this article
  1. Why Add NVMe to a Raspberry Pi?
  2. What You Need
  3. How to Set It Up
  4. Performance and Speed
  5. Common Pitfalls and Troubleshooting
  6. Cost Breakdown
  7. Alternatives to NVMe
  8. Frequently Asked Questions

The easiest and cheapest way to add NVMe storage to a Raspberry Pi is to use a USB 3.0 to NVMe adapter (often called an enclosure or a "sled") plugged into the Pi's USB 3.0 port. This requires no soldering, no special hardware, and works with any Raspberry Pi model that has USB 3.0 (Pi 4, Pi 400, and Pi 5), with the adapter costing around $10–$15.

Why Add NVMe to a Raspberry Pi?

The Raspberry Pi's operating system and applications traditionally run from a microSD card. While microSD cards are cheap and convenient, they are also slow and prone to corruption if the Pi loses power during a write. NVMe drives are significantly faster (often 5–10x the read/write speed of a good microSD card) and more reliable for heavy workloads like running a database, hosting a website, or using the Pi as a desktop computer. Adding NVMe storage can transform a Pi from a hobbyist toy into a snappy little server or workstation.

What You Need

  • A Raspberry Pi with USB 3.0 ports: Pi 4, Pi 400, or Pi 5 (the Pi 3 and earlier only have USB 2.0, which would bottleneck an NVMe drive).
  • A USB 3.0 to NVMe adapter or enclosure. These are widely available for $10–$20. Look for one with a chipset like the JMicron JMS583 or Realtek RTL9210B, which are well-supported on Linux.
  • An NVMe M.2 SSD. Any size works, but 256GB or 512GB is a good balance of price and capacity. Make sure it is an M.2 2280 (the most common length) and uses the NVMe protocol, not SATA.
  • A USB-C or Micro-B cable (depending on the adapter) that supports USB 3.0. The cable that comes with the adapter is usually fine.

How to Set It Up

  1. Insert the NVMe SSD into the adapter. Most adapters have a small screw or clip to hold the drive in place.
  2. Connect the adapter to one of the blue USB 3.0 ports on the Pi using the provided cable.
  3. Power on the Pi. If you are using Raspberry Pi OS, the system should automatically detect the drive as an external USB storage device. You can check with lsblk in the terminal to see the device (usually /dev/sda).
  4. To boot from the NVMe drive (instead of just using it as extra storage), you need to copy the operating system to it. Use the Raspberry Pi Imager tool on your computer to write the OS image directly to the NVMe drive, or use dd to clone your existing microSD card to the NVMe drive.
  5. For Raspberry Pi 5, you can also use the dedicated PCIe connector with an M.2 HAT, but that costs more and requires a case modification. The USB route is cheaper and works out of the box.

Performance and Speed

Using a USB 3.0 adapter, you can expect read speeds of around 300–400 MB/s and write speeds of 200–300 MB/s. That is roughly 3–4 times faster than a typical microSD card (which tops out around 90 MB/s read). The USB 3.0 interface has a theoretical maximum of 5 Gbps (about 500 MB/s), so you won't get the full speed of a high-end NVMe drive, but for most Pi uses, the difference is negligible. The bottleneck is the USB bus, not the SSD. If you need faster speeds, the PCIe HAT on the Pi 5 can achieve 1 GB/s or more, but that costs more and is more complex.

Common Pitfalls and Troubleshooting

  • Drive not detected: Make sure the adapter is plugged into a blue USB 3.0 port, not a black USB 2.0 port. Also, some adapters need a powered USB hub if the Pi's power supply is weak (use an official 5V/3A power supply).
  • Boot issues: If the Pi doesn't boot from the NVMe drive, check that the drive is formatted with a compatible partition table (GPT is fine) and that the bootloader is up to date. On Pi 4, run sudo rpi-eeprom-update to update the bootloader to support USB boot. On Pi 5, USB boot is enabled by default.
  • Heat: NVMe drives can get warm. If the adapter has a heatsink, use it. If not, ensure there is airflow in the case. Overheating can cause throttling or data corruption.
  • Power consumption: Some NVMe drives draw more power than the Pi can supply through USB. If you experience random reboots, try a lower-power drive or a powered USB hub.

Cost Breakdown

The cheapest way to add NVMe to a Pi is the USB adapter route. Here's a rough estimate:

  • USB 3.0 to NVMe adapter: $10–$15
  • NVMe SSD (256GB): $20–$30
  • Total: $30–$45

Compared to a PCIe HAT (which costs $20–$30 plus a ribbon cable and case modification), the USB adapter is simpler and often cheaper. The PCIe route offers higher speeds, but for most users, the USB adapter is the best value.

Alternatives to NVMe

If you don't want to spend even $30, you could stick with a high-quality microSD card (like a SanDisk Extreme) which costs about $15 for 128GB and offers decent performance. Or you could use a USB 3.0 SATA SSD (2.5-inch) with a cheap SATA-to-USB adapter, which is also around $15 for the adapter and $25 for a 256GB drive, but SATA SSDs are slower than NVMe and not much cheaper. The NVMe USB adapter is the sweet spot for price and performance.

Frequently Asked Questions

Can I use any NVMe drive with a Raspberry Pi?

Most NVMe drives work fine, but some high-end drives with high power consumption may cause instability. Stick to mainstream brands like Samsung, Western Digital, or Crucial. Avoid drives that require more than 5V/1A, as the Pi's USB port may not supply enough.

Will this void my Pi's warranty?

No. Using a USB adapter is completely non-invasive. You are just plugging a USB device into the Pi, which is a normal operation. It does not modify the Pi hardware.

Can I boot from the NVMe drive?

Yes, on Raspberry Pi 4, 400, and 5, you can boot directly from a USB NVMe drive. You need to write the OS to the drive and ensure the bootloader is set to USB boot. On Pi 4, you may need to update the bootloader using sudo rpi-eeprom-update.

Is it worth upgrading from a microSD card?

If you are using your Pi for anything more than light web browsing or simple projects, yes. The speed increase is noticeable, and the reliability is much better. NVMe drives are less likely to corrupt than microSD cards, especially if you frequently write data.

What is the fastest way to add NVMe to a Pi 5?

The fastest is using the PCIe connector with an M.2 HAT (like the official Raspberry Pi M.2 HAT+). This gives you PCIe Gen 3 speeds, up to 1 GB/s. However, it costs more and requires a case with a cutout. The USB adapter is still the easiest and cheapest.