directman

<<< Back

Создание образа nand памяти orange pi plus2

Как известно, систему с sd карты перенести на встроенную nand память легко с помошью sudo nand-sata-install

Но в сети очень трудно найти информацию, как проделать обратную процедуру?

Нашел вот такой вариант:
Does anyone know how to backup from EMMC to SD-CARD?

Well, there are threads already covering these aspects (what's a backup, what's just a simple clone, what to expect from what -- the usual stuff no one wants to hear). The most simple solution is to grab an SD card of equal size, download a 'server image' of Armbian for the device in question, burn this to SD card, properly shutdown your eMMC installation, then start from SD card and follow the usual procedure (creating a user account and so on).

Then simply do this:

sudo su -
apt-get install p7zip
mkdir /var/images
cat /proc/partitions
df -h /
dd if=/dev/mmcblk1 bs=10M | 7zr a -bd -t7z -m0=lzma -mx=9 -mfb=64 -md=32m -ms=on -si /var/images/emmc.img.7z
(checking /proc/partitions and df output is recommended to verify that mmcblk1 is your eMMC). Now you end up with a compressed device image of your eMMC available as /var/images/emmc.img.7z on the SD card. Shutdown, eject the SD card and reboot from eMMC and repeat the procedure above if you think a new clone would be a good idea (or start to think about backup instead which is something completely different than dumb cloning :) )

Further references (how to do better, eg overwriting unused space with zeros): http://forum.armbian.com/index.php/topic/1331-armbian-sd-card-backup/

Вот еще на эту тему http://4pda.ru/forum/index.php?showtopic=668774&st=1580
dd if=/dev/mmcblk0 of=/media/sd/emmc.img bs=512

Discuss (0) (0)

Екатеринбург, Россия

На форуме: directman66