Raspberry Pi 5 M.2 HAT+ (CE09773)

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 more

How do I copy from an sd card to the ssd from raspiberry pi OS lite 64bit headless?

2 Likes

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:

  • Make sure everything has been updated.
  • Go ahead and stop any services that are currently in use on the Pi that could attempt to write to either SD or SSD i.e. any servers.
  • Find the name of the your two drives via lsblk:
  • sudo dd if=/dev/<your SD’s name> of=/dev/<your SSD’s name> bs=4M status=progress**
  • When you’re booting from the SSD, go into Raspi-Config and expand your drive.

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.

2 Likes

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.

2 Likes

This is really promising.
Thanks :slight_smile:

Gotcha thanks. :slight_smile:

1 Like

Damn, gonna have to put that into my toolbox.

Thanks for the tip, @Jaryd.

1 Like