Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive

I just got a CM4 donated with 1GB main memory, 32GB eMMC and 128 GB NVMe. Thank you very much to the donator. CM4 was already supported by raspiBackup but only running from a SD card, eMMC or USB boot. It's already possible to use NVMe when it's provided in an USB plug but there is as of now no way to use a NVMe plugged in in the PCI lane. Now I'm fortunately able to add  this support to raspiBackup. This support is planned for next release of raspiBackup.



I created a new branch in github and added NVMe support already. It's not much code I had to add. Just code which allows /dev/nvmexny to have as a boot device in addition to already existing support for /dev/mmcblkx, /dev/loopx and /dev/sdx. Unfortunately I cannot start testing because an appropriate power supply is still missing. As soon as I habe this power supply I'll start testing.

Anybody interested in the native PCIe NVMe support for CM4 is invited to visit github and join the feature request.


How to make the CM4 NVMe device available on Linux to restore a NVMe backup created with raspiBackup


If you want to restore an NVMe backup you have to mount the NVMe device on a Linux system in the following way:


Here are full instructions (Sourced from: combined with the mass-storage-gadget documentation on github):

Disconnect power from the CM4 carrier board, and change the USB boot switch behind the HDMI port to "ON"

Connect a USB cable from your other Pi/Linux computer to the CM4 Carrier's USB-C port

Open terminal on your linux computer and run the following to set up rpiboot/usbboot:

sudo apt install git libusb-1.0-0-dev build-essential
git clone --depth=1
cd usbboot
sudo make install

Then to mount the drives:
cd mass-storage-gadget
sudo ../rpiboot -d .

Once done the boot and rootfs partitions of eMMC and NVMe should mount.


raspiBackup requires the restore device partitions not to be mounted. Now umount the NVMe partitions (e.g. /dev/nvme0n1p1 and /dev/nvme0n1p2) and use the NVMe device (e.g. /dev/nvme0n1) as parameter for restore option -d.

Add comment

*** Note ***

Comments are welcome. But in order to reject spam posts please consider following rules:
  1. Comments with string http are rejected with message You have no rights to use this tag
  2. All comments are reviewed by hand and thus it usually takes one day until a comment will be published.