Sadly my device (sm-g3185) isn't supported by either CWM or NANDbackup, so I am trying to do a backup manually. I found this thread which tells me to open a terminal (I'm on Arch Linux) and run:
adb forward tcp:5555 tcp:5555
adb shell
su
/system/xbin/busybox nc -l -p 5555 -e /system/xbin/busybox dd if=/dev/block/mmcblk0
And then open another terminal and run:
adb forward tcp:5555 tcp:5555
cd /path/to/store/the/backup
nc 127.0.0.1 5555 | pv -i 0.5 > mmcblk0.raw
I did all this and it seems to be working. However, there was a delay of a few seconds between launching the dd
command in terminal1 and the nc
command in terminal2.
Can I trust the backup I created in this way? Doesn't this mean that I've lost some of the output of dd
? Shouldn't these be run concurrently or, at least, shouldn't the nc
command be started before the dd
one?
dd
output was buffered which is why nothing was lost. As for your question, please edit it and explain what you are trying to do. – terdon Nov 20 '15 at 13:39