gzip -dc ~/backup.img.gz | sudo dd of=/dev/sda bs=4M status=progress
This unzips it and pipes that into dd before copying. dd handles raw data otherwise it won't boot. I thought it was because I didn't do these other 2 steps
sudo sync
sudo umount /dev/sda
ugh I ended up just booting into mint to use raspberry pi imager, I was still struggling. Turns out I needed to open it sudo
No comments:
Post a Comment