NVMe for Raspberry Pi (5)
Project Notes
Author: Patrick Wallner
The repository idea is based on giving as much help as possible to have an easy start.
Please see below for instructions on how to install the associated utils.
Table of Contents
Why GPTconverter
Most of the images are preparted with MBR and therefore are limited to 2TB. This simple script converts to GPT and therefore there is no 2TB limit anymore (ok, there is a 18EB limit).
Install
⚠️ Cause of lacking of time, this is only tested on my Rpi5 with latest Bookworm!
One simple step:
1a. Connect to your device via SSH and type the following command to download and execute GPT converter.
sudo -i
bash <(curl -s https://nvme.mcpat.com/gptconverter.sh)
or
1b. Alternative you can download and execute the script
cd
wget https://raw.githubusercontent.com/mcpat-it/NVMe/main/gptconverter.sh
chmod +x gptconverter.sh
sudo ./gptconverter.sh
How to use GPT converter
- Boot your pi with a SD card and already installed NVMe, and install an image with
imager
on the rpi desktop, you can also make the settings (e.g. username, password, wifi, …) - Make sure with
raspi-config
the boot order isB1: SD Card Boot Boot from SD card if available, otherwise boot from NVMe
. - Power off the system and remove SD card and power on again
- After the pi has booted and everything runs well (e.g. wifi connection), power off again and insert SD card again
- Power on and wait system is ready
- Run the command as descripted in section “Install” in the commandline
- Power off the system and remove the SD, reboot to NVMe again and be happy
Support my work
I’m a working single dad and this is only my hobby which I did in my rare free time. So I really appreciate if you make a small donation to let me buy some sweets for my son!
FAQ
NVMe does not exist!
- Ensure your NVMe is correctly installed and can be found at “/dev/nvme0n1”
xxx is mounted!
- Ensure you booted from SD and you didn’t mount any partition manually
System needs firstly a boot from NVMe, remove SD and reboot, then poweroff, insert SD again and run this script again ...
- Ensure you booted from NVMe once after a fresh installation on NVMe, after this, boot from SD again and run the script again
Unsupported partition table type!
- Ensure your NVMe is a valid MBR or GPT drive!
GPTconverter doesn't work
- Open an issue, you know I’m a busy man, but maybe I can help