Pi4, booting from a 2TB USB drive attached.
I've finally got the system the way I want it and I'd like to be able to make an SD card image from it so I can quickly recover when I screw it up. Total space used on disk is around 16GB, so it'll fit onto a card easily.
I know I could just buy another drive and clone it, but I've got a drawer full of SD cards I'd like to use.
Just using the SD copier and dd hasn't worked (I suspect it's trying to copy the entire 2TB to the image). I think tar might do it, but I haven't come up with the magic steps to get it back onto the SD.
Any help would be appreciated. Thanks.
dd
with compression? Without it,dd
will try to copy the entire partition to your SD card. You might also give theimage-util
backup a whirl. It's great for creating an image file for backup from an SD card - never tried it on a USB drive. Or, you might find some ideas here – Seamus Jan 07 '21 at 19:18/dev/mmcblk0
to/dev/sda
- it may work – Jaromanda X Jan 07 '21 at 22:02p
added to the raw device name ... so it's a little more complex to change that script, but it is doable – Jaromanda X Jan 07 '21 at 22:25