This is a placeholder topic for “Raspberry Pi 5 M.2 HAT+” comments.

Connect M.2-format PCIe and NVMe devices to your Raspberry Pi 5 with the M.2 HAT.
Read moreThis is a placeholder topic for “Raspberry Pi 5 M.2 HAT+” comments.

Connect M.2-format PCIe and NVMe devices to your Raspberry Pi 5 with the M.2 HAT.
Read moreHow do I copy from an sd card to the ssd from raspiberry pi OS lite 64bit headless?
Hey @Pixmusix,
You always like to bite off a challenge.
Personally, I think this would be way easier by cloning the SD onto the SSD on another computer while the SSD is housed in an enclosure, that way you don’t have to worry about the OS trying to write to either while the Pi is in operation.
But, if that’s not feasible, the following would work:
Honestly, even if you had a GUI, I’d still think its safer to do this when the OS is not in operation, via a tool like CloneZilla, but the above will work.
Do you sell the part that I need to clone off device the easy way?
Yes we do, Pix.
Technically, it’s just an M.2. enclosure and an SD Card Reader on the same computer. Then you use a Clonezilla Bootable USB, boot from it, and clone the SD Card’s contents to the SSD’s contents.
Alternatively, I just realised that you could use the CloneZilla Bootable USB to boot directly from the Pi 5, though you’d probably want a display for that. There is apparently a way to do so remotely via SSH, but I’ve not used that method myself so I can’t recommend it.
Hey @Pixmusix,
Throwin in another tool to check out, should be able to do it all on a Pi. Boot off the SD card and have the NVME plugged in to the same Pi.
This is a super easy task in a full installation, but the Lite makes it a bit trickier.
This is really promising.
Thanks ![]()
Gotcha thanks. ![]()
Damn, gonna have to put that into my toolbox.
Thanks for the tip, @Jaryd.
Hi Everyone.
Update time.
This lib is not maintained. It struggles with the modern version of bookworm which does that fancy thing where it partitions the sd card into the file system and the bootloader.
The sd card was kinda always partitioned, but the way the C linkers are set up does make the bash script a bit woozy bloozy.
Consider using this maintained fork (good ol’ Jeff. He really really likes raspberry pis).
Make sure you run rpi-clone in bash or a posix compliant shell. Don’t ask me how I know that.
Before you change the boot order make absolutely sure you have enabled the pciex1 slot on the pis firmware.
In the file
/boot/firmware/config.txtuncomment or add the following line
# dtparam stands for "device tree parameter".
# We are essentially adding the pcie card to the Pi's equivalent of a BIOS.
dtparam=pciex1
Anyway, its a good tool, if you know your way around linux its a great option.
Thanks @Jaryd
Thanks for the update, Pix.
I was just having trouble with rpi-clone last night, so I might switch over to that fork.
And that picture is so true. Whenever I have to use Powershell, I definitely feel like I’m riding on triangular wheels.