Recently, I bought a new 2TB SSD for the Umbrel and wanted to clone all the data from the old SSD, mostly to avoid a new sync of the entire Bitcoin blockchain.
I couldn’t find any easy-to-follow tutorials, so this is what I did to migrate all the data to the new SSD using the macOS operating system for this task.
- Made sure I have backups for all wallets
ssh umbrel@umbrel.local
sudo shutdown -h now
- Turned off Raspberry Pi
- Connected both the old and new SSD disks to my macOS machine.
- Found names of both disks with the
diskutil list
command (example:/dev/disk4
) - Ran the disk duplication command:
sudo dd if=source of=destination bs=64k
- In another terminal window, ran
caffeinate -im
to prevent the machine from going into sleep mode - After ~12 hours, cloning was completed.
- Attached new SSD to the Raspberry Pi
- Done!
Note: Replace source
and destination
in the dd
command with the actual device paths of your old and new SSDs, respectively.
If your new SSD is larger in size, also do this:
ssh umbrel@umbrel.local
sudo apt install cloud-init -y
to get the growpart moduledf -h
to find your drive (mine was/dev/sda1
)sudo growpart /dev/sda 1
sudo resize2fs /dev/sda1
sudo reboot