TS-4720 eMMC Backup/restore
From embeddedTS Manuals
Click to download the latest 2GB eMMC image. |
WARNING: | Make sure the SD and eMMC filesystems are mounted read only while writing any images. If dd is used to read or write a disk while a filesystem on it is mounted read/write this can result in a corrupt image. |
First boot to the initramfs. These steps should not be run from the full Debian environment, so to get back to the initramfs, first run:
tshwctl --removejp 1 && reboot
Once you are in the initramfs, mount a network share or usb drive containing the emmc image.
Write an Image to eMMC
# Plug in a thumbdrive formatted with ext2/3/4 or fat32/ntfs
mkdir /mnt/usbdev
mount -o ro /dev/sda1 /mnt/usbdev
dd if=/mnt/usbdev/emmc-image.dd bs=4M of=/dev/nbd1
Save an image from eMMC
# Plug in a thumbdrive formatted with ext2/3/4 or fat32/ntfs
mkdir /mnt/usbdev
mount -o ro /dev/sda1 /mnt/usbdev
# This can take about 15 minutes
dd if=/dev/nbd1 bs=4M of=/mnt/usbdev/emmc-image.dd
umount /mnt/usbdev
sync