VN-HCM_dung Posted December 29, 2022 Posted December 29, 2022 I am using armbian on TV box S905W. with 32gb EMMC memory. actually the free memory in my EMMC is about 24gb i.e. only 8gb. used Currently, I have an additional box of s905w with the same version but with EMMC with 16gb memory. I used emmc 32gb partition backup using dd command and extract to usb, I use gparted to reduce the partition size ( ROOT_EMMC and BOOT_EMMC) to 12gb. I copied 2 downgraded partitions to 1 16gb usb, repackaged it as an img file. Proceed to use dd method to restore img file to emmc of 16gb device. The recovery did not give an error, but after rebooting using the EMMC internal memory, the device failed to boot. I want to know can we backup a device with 32gb EMMC to use on a 16gb device?
SteeMan Posted December 29, 2022 Posted December 29, 2022 @VN-HCM_dung Here is what you would need to do. 1) perform a new clean install on the new tv box on the emmc. This will create the partitions in the correct location, preserving the android uboot environment. 2) Assuming that you have the same linux kernel installed on the old and new boxes, you can simply replace the contents of the root partition (you don't need to touch the boot partition /boot) with those from your original box. You can use /root/install-aml.sh as a guide on what needs to be copied over. (If you have a different kernel version then you also need to preserve /lib/modules/(your kernel version) on the root partition.
Recommended Posts