Set up NVMe SSD on Edge AI Expansion Board

Partition, format, and mount the NVMe SSD on the Edge AI Expansion Board, or boot from it. The SSD sits behind a USB-to-NVMe bridge and appears as a USB storage device.

How the slot is wired

The M.2-SSD slot takes a standard NVMe SSD, but the SSD does not use the Raspberry Pi 5 PCIe link: that link is reserved for the DX-M1. The SSD sits behind a Realtek RTL9210B-CG USB-to-NVMe bridge on the board’s USB 3.0 (5 Gbps) hub, which reaches the Raspberry Pi 5 through the USB Bridge in one of its blue USB 3.0 ports:

  1. M.2 slot: NVMe SSD · M-Key · 2230 to 2280
  2. Bridge IC: RTL9210B-CG · USB ↔ NVMe · UASP
  3. On-board: USB 3.0 hub · 5 Gbps · shared with cellular
  4. Carrier: USB Bridge PCBA · Pi 5 USB 3.0 port
  5. Host: Raspberry Pi 5 · /dev/sda

Raspberry Pi OS sees a USB mass storage device: lsblk shows /dev/sda, lsusb lists 0bda:9210 Realtek Semiconductor Corp. RTL9210 NVMe Bridge, and nvme list does not see it. Use the USB storage tools (lsblk, fdisk, mount, fstab). The bridge supports UASP, so the SSD runs at the full USB 3.0 rate.

Throughput envelope

The 5 Gbps USB bus (with 8b/10b encoding) sets the ceiling, not the SSD: a PCIe Gen 4 SSD is no faster here than a Gen 3 one. Measured by Sixfab:

Sequential read 380 to 440MB/s Set by the 5 Gbps USB bus and 8b/10b overhead, not the SSD.
Sequential write 350 to 410MB/s Sustained; bursts may run higher into the SSD’s cache.
Bridge mode UASP USB Attached SCSI on the RTL9210B-CG, full-speed not BOT.
Validated capacity Up to 2 TB No hard software limit; tested headroom is 2 TB.

Compatible SSDs

The slot takes M.2 M-Key NVMe SSDs in 2230, 2242, 2260, and 2280 lengths. M.2 SATA SSDs do not enumerate; B+M-keyed NVMe SSDs work; B-keyed drives are not NVMe and do not work.

SSD classCompatibilityNotes
M.2 M-Key NVMe (PCIe)SupportedStandard configuration. 2230, 2242, 2260, and 2280 lengths all fit; up to 2 TB validated.
M.2 B+M-Key NVMeSupportedMechanically and electrically equivalent to M-Key NVMe in this slot.
M.2 SATA SSDNot supportedSATA-only M.2 drives will not enumerate. The slot is NVMe-only via the USB-to-NVMe bridge.
Older / high-end power-hungry SSDsUse with careSome firmware or power profiles can trigger instability under burst loads. Pair with a USB-C PD supply that meets the 27 W minimum (45 W recommended).

Validated SSDs

Sixfab validated the Raspberry Pi 256 GB and 512 GB NVMe SSDs; they are the recommended drives. Other current NVMe SSDs should work: the list is what was tested, not what is excluded.

Under-voltage warnings point at supply

Some high-end or older SSDs draw current bursts that a weak supply cannot deliver: under-voltage warnings and disconnects that look like SSD failures. Use a 27 W USB-C PD supply or more (45 W with the NPU and modem fitted), and replace the supply before the SSD.

Partition, format, and mount

To prepare a new SSD as a data drive (not the boot drive): find it with lsblk, write a GPT partition table with fdisk, format it with mkfs.ext4, mount it under /mnt, and add it to /etc/fstab by UUID.

This procedure erases everything on SSD

Partitioning and formatting destroys any existing data on the SSD. Before running fdisk or mkfs, confirm that /dev/sda is the Edge AI Expansion Board’s NVMe SSD and not a different USB drive you have plugged into the Raspberry Pi 5. lsblk and lsusb together confirm which device is which: the NVMe bridge always shows up as 0bda:9210 Realtek Semiconductor Corp. RTL9210 NVMe Bridge in lsusb.

  1. Identify device

    Confirm that the SSD is enumerated as /dev/sda and check that the RTL9210 bridge is visible in lsusb. If the SSD does not appear, stop here: re-seat the M.2 module (30° insertion, M2 flat-head screw, finger-tight) and the USB Bridge PCBA before running anything else.

    # 1. Block-device tree: the SSD should show as /dev/sda
    lsblk
    
    # 2. USB-side view: the RTL9210 NVMe Bridge should be listed
    lsusb
    # lsblk (example with a 256 GB SSD, no partitions yet)
    NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
    sda           8:0    0 238.5G  0 disk
    mmcblk0     179:0    0  29.7G  0 disk
    ├─mmcblk0p1 179:1    0   512M  0 part /boot/firmware
    └─mmcblk0p2 179:2    0  29.2G  0 part /
    
    # lsusb
    Bus 002 Device 002: ID 0bda:9210 Realtek Semiconductor Corp. RTL9210 NVMe Bridge
    Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

    If other USB storage is connected, the device name may shift (/dev/sdb, /dev/sdc, …). Match the size and the RTL9210 entry from lsusb to identify the correct disk before partitioning. The UUID-based fstab entry in step 5 immunises the mount against device-name reshuffling.

  2. Write GPT partition table

    A new SSD has no usable partition layout. Use fdisk to write a fresh GPT table and create a single primary partition that spans the entire disk. GPT is the recommended layout for any drive larger than 2 TB and is the default Sixfab documents for the Edge AI Expansion Board.

    # Open fdisk on the NVMe SSD
    sudo fdisk /dev/sda
    
    # Inside the fdisk prompt, type each letter then press Enter:
    #   g   create a new empty GPT partition table
    #   n   add a new partition
    #       press Enter to accept defaults (partition 1, full disk)
    #   w   write the table to disk and exit

    After fdisk exits, run lsblk again. The SSD should now have a child partition sda1 taking up the full disk:

    # lsblk after fdisk
    NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
    sda           8:0    0 238.5G  0 disk
    └─sda1        8:1    0 238.5G  0 part
  3. Format partition as ext4

    ext4 is the recommended filesystem for a secondary data drive on Raspberry Pi OS: stable, journaled, well-supported, and matches the rest of the system’s tooling. The format runs on the partition (sda1), not the whole disk (sda).

    # Format the new partition with ext4
    sudo mkfs.ext4 /dev/sda1

    For a brand-new SSD this completes in seconds. For a previously-used SSD mkfs.ext4 may ask to overwrite an existing filesystem; type y to confirm only after you have re-verified that /dev/sda1 is the correct device.

  4. Create mount point and mount

    Mount the freshly formatted partition under a stable directory below /mnt. /mnt/nvme is the convention used elsewhere in Sixfab’s documentation; the path is not magical, anything you pick can be used consistently afterwards.

    # 1. Make the mount point
    sudo mkdir -p /mnt/nvme
    
    # 2. Mount the partition there for the current boot
    sudo mount /dev/sda1 /mnt/nvme
    
    # 3. Give your user ownership so applications can write without sudo
    sudo chown -R "$USER": /mnt/nvme
    
    # 4. Confirm it's mounted and writable
    df -hT /mnt/nvme
  5. Mount automatically at boot via /etc/fstab

    The manual mount above survives until the next reboot. To bring the SSD up automatically every boot, add it to /etc/fstab. Reference the partition by its UUID, not by /dev/sda1: the device name can shift if other USB drives are connected and the boot will fail when it does.

    # 1. Read the UUID of the partition
    sudo blkid /dev/sda1
    /dev/sda1: UUID="a1b2c3d4-e5f6-7890-1234-567890abcdef" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="..."

    Then edit /etc/fstab with sudo nano /etc/fstab and add a single line, substituting the UUID printed by blkid:

    # NVMe SSD on Edge AI Expansion Board (USB-attached via RTL9210B-CG)
    UUID=<your-uuid-here>  /mnt/nvme  ext4  defaults,nofail,x-systemd.device-timeout=10  0  2

    Test the entry without rebooting:

    # 1. Unmount the partition (if currently mounted from step 4)
    sudo umount /mnt/nvme
    
    # 2. Mount everything in fstab: should remount /mnt/nvme cleanly
    sudo mount -a
    
    # 3. Verify
    df -hT /mnt/nvme

    The nofail option means Raspberry Pi OS will continue to boot even if the SSD is temporarily missing, which is important in field deployments where you do not want a single hardware issue to leave the unit stuck at the boot prompt. x-systemd.device-timeout=10 caps the wait at 10 seconds on each boot.

Boot Raspberry Pi OS from NVMe

Booting Raspberry Pi OS from the SSD works. The SSD is behind the USB bridge, so this is a USB boot, not a native NVMe boot, and the bootloader’s USB entry in BOOT_ORDER controls it:

  1. Update the bootloader: sudo rpi-eeprom-update.
  2. Set BOOT_ORDER to try USB first: sudo raspi-config → Advanced Options → Boot Order, or sudo rpi-eeprom-config --edit.
  3. Write Raspberry Pi OS to the SSD with Raspberry Pi Imager, as for any USB SSD.
  4. Add usb_max_current_enable=1 to /boot/firmware/config.txt on the SSD (see Enable PCIe Gen 3). Without it, the Raspberry Pi 5 stops at boot and asks you to press its button to allow more than 1.6 A of USB current.
  5. Power off, fit the SSD in the M.2-SSD slot, and power on.

Power-loss during writes can corrupt the filesystem

Pulling the USB-C PD cable while the SSD is writing does not cause physical damage to the SSD, but unsaved data is lost and the ext4 journal may report inconsistencies on the next boot. There is no power button on the Expansion Board: use a clean shutdown (sudo shutdown -h now) before disconnecting power, especially when the SSD is the boot device.

Concurrent operation

The SSD and the LTE/5G modem are independent devices on the same USB hub and can be used at the same time. The DX-M1 has its own PCIe link and never shares bandwidth with them: Sixfab measured no notable drop in AI throughput with inference, logging to the SSD, and an LTE uplink running together.

The dxrt-runtime does not write to disk by itself; your inference application owns the storage policy. Point your inference code’s log path, captured-frame folder, or detection-output sink at the mount location, for example /mnt/nvme/inference-logs/, and the SSD will absorb the write pressure without slowing down the NPU pipeline. For monitoring tools and the documented healthy dxrt-cli -s output, see System Monitoring.

Extra USB drives share 5 Gbps ceiling

The USB Bridge PCBA occupies one of Raspberry Pi 5’s two blue USB 3.0 ports. Plugging another high-speed USB drive into the remaining USB 3.0 port forces all USB devices to share the Raspberry Pi 5’s 5 Gbps USB bandwidth, and the total current budget across all USB ports is capped at 1.6 A: adding a second power-hungry drive alongside an NVMe SSD and an LTE/5G modem may cause instability. Low-power peripherals (keyboard, mouse, UVC camera) are not a concern.