Open main menu

Changes

NVMe SSD boot with the Raspberry Pi 5

854 bytes removed, 10:44, 24 December 2023
# Click write (and set any options you'd like)
Once flashing is complete, pull the NVMe drive, attach it to your Pi 5, and it should boot off it (with or without a microSD card inserted)—assuming you have the bootloader up to date and set the '''BOOT_ORDER''' appropriately!
 
 
'''3. Clone your microSD boot volume to an NVMe SSD'''
 
Assuming you already have Raspberry Pi OS on a microSD card that is booting your Raspberry Pi 5 internally, and the NVMe SSD is connected and visible (check if you see a device /dev/nvme0n1 after running lsblk), you can use rpi-clone to clone the internal microSD boot volumes to your NVMe SSD:
<pre>
# Install rpi-clone.
git clone -b 123-nvme https://github.com/geerlingguy/rpi-clone.git
cd rpi-clone
sudo cp rpi-clone rpi-clone-setup /usr/local/sbin
 
# Clone to the NVMe drive (usually nvme0n1, but check with `lsblk`).
sudo rpi-clone nvme0n1
</pre>
 
'''Note''': You may want to wipe all disk partitions before cloning:
<pre>
sudo umount /dev/nvme0n1p?
sudo wipefs --all --force /dev/nvme0n1p?
sudo wipefs --all --force /dev/nvme0n1
sudo dd if=/dev/zero of=/dev/nvme0n1 bs=1024 count=1
</pre>
If you are flashing a fresh Pi OS to NVME ssd, you have to [[#Enable PCIe]] after booting the device; if you are COPY or CLONE an old system from SD card to NVME ssd, and you have already enabled pcie in the old OS in advance, then you don't need to do enable pcie operation again!
 
==Set NVMe early in the boot order==