How to copy Raspberry Pi OS Lite from Micro SD to SSD？¶
Updating the Bootloader
sudo apt update sudo apt full-upgrade sudo rpi-update sudo rpi-eeprom-update -d -a
After setting, reboot to take effect.
Use the following command to view the name of the storage device.
sudo fdisk -l
You will see a list of all the drives connected to your Raspberry Pi. In most cases,
/dev/mmcxxxrefers to your Micro SD card, and
/dev/sda/refers to your SSD.
Now, use the following command to clone the system from the Micro SD card to the SATA M.2 SSD.
/dev/mmcblk0with the name of your Micro SD card, and also modify
/dev/sdato match the name of your SSD if it has a different name.
sudo dd if=/dev/mmcblk0 of=/dev/sda bs=4M
Pull out the Micro SD card, connect the M.2 SATA SSD and then power on the Pironman.