Base contents of the image:
/etc/ssh/ssh_host_*
. They will be regenerated by a service on next boot. (You should capture the image, before the next startup.)tar -zcf <image_save.tar.gz> -C <path to mounted sd card> . –sparsed
tar -zcf image3192016.tar.gz -C /run/media/acmguest/6b454c87-8b79-40b4-9361-e63ce0264ef2/ . –sparse
)fdisk /dev/sdX
mkfs.vfat /dev/sdX1 mkdir boot mount /dev/sdX1 boot
mkfs.ext4 /dev/sdX2 mkdir root mount /dev/sdX2 root
bsdtar -xpf image3192016.tar.gz -C root
sync
mv root/boot/* boot
umount boot root