[Q] CWM backup over adb - Android Q&A, Help & Troubleshooting

Hallo,
i want to backup my NAND (and sd-ext partition) directly to my windows hdd (not to /sdcard/backup). I can do it with 'adb shell dd if=/dev/mtd/mtd0 > boot.img' already but that includes unallocated space as well. Not sure if this is even compatible to CWM.
How is CWM doing it? Going over loop device or something? How can i create compatible CWM img files via adb that only hold allocated data?

Related

[Q] Can't ADB while in CWM, needed for resizing the partition

FYI:
I have 2 CWMs for my NT,
1. app to flash CWM internally.
2. in the case where above is broken, 50mb SDCARD CWM method to boot up from SDCARD
I also have galaxy s i9000 and htc sensation.
the reason why I need ADB in CWM is because I want to resize the partition of my NT to increase the sdcard area from 1GB to 11GB.
but none of my 4 computers can detect NT in ADB shell.
Win7, Win764, WinXP system.
tried with uninstalling adb driver anddifferent port restart cable etc.
When I go "ADB SHELL" it returns device not found after starting the daemon.
I am certain that this is not an issue with my PC as I can connect my other phones, galaxy and sensation in ADB very easily while they are in CWM.
just like that connect and driver is detected automatically, and I can connect via ADB shell NP.
I have seen a couple of people on the forum who were successful in resizingg the partion in CWM via ADB shell,
Could anyone please advise on this?
Thanks.
Instead of using CWM, you can use a bootable full nook OS disk with ADB enabled - I know Adam posted one. Copy parted to it and comment out the vold.fstab and vold.conf lines that mount /media and /sdcard so when it boots you don't get told you can't resize mounted devices.
I did it the fugly way, forced a hard reset by 8 failed boots to do the formatting and reinstall, and it worked.
I also had backups off-device of the first 7 partitions to restore from if I needed them, made via
dd if=/dev/block/mmcblkX of=img.X and then copied off-device so if I really hosed something I could roll back.

[Q] How do I manage partitions in TWRP recovery

How are partitions created / managed in TWRP recovery?
The "parted" command does not seen to be available in adb shell when using TWRP on my Samsung p6810.
I think I have a corrupt partition and I want to remove and recreate it (e2fsck fixes errors but hangs instead of finishing at a command prompt), but surely I won't need to reinstall CWM recovery to do this? All partitions appear to format OK in TWRP, but ROM installation subsequently hangs when trying to reformat System partition.
Thanks.

[Q] Dumping entire internal storage?

hi guys,
I've been a fool and balls up a note 10.1 (n8010).
I've got a 2nd device and was wondering if I could simply do a
Code:
dd if=/dev/block/mmcblk0 of=/extSdCard/image.img
to get a complete image of ALL partitions on the device, then on the broken one do the restore
Code:
dd if=/extSdCard of=/dev/block/mmcblk0
?
Would this keep all partition table information?
I'm assuming it'll crate an exact clone of the 2nd device?
I've already done this for the efs partition as I over wrote it by mistake....
any thoughts?
thanks.
for google...
Yes I managed to fix my device.
From the working one, I opened a adb shell from CWM recovery and ran ls -l /dev/block/platform/{name}/by-name
this gave me a list of partitions and their names.
I then then did a dd (disk dump) of the partitions to a external sd card (had to mount the sd in recovery first). This gave me 7 .img files.
I then moved the sd to the broken device, booted to TRWP recovery and used the terminal to dd them the img files back into their respective partitions.
Long story short, she be working fine now

[Q] Help restore Bootloader

Hello dear friends! I installed ubuntu on a memory card, and then accidentally made "Wipe data", and now the tablet will not boot recovery and immediately begins to boot ubuntu is loaded and working properly. Please tell me if I can from under linux on the tablet restore Bootloader .
Found. If you are interested then:
Loaded on the tablet installed ubuntu, created in the root file system of Linux "sdcard" folder and placed in it "twrp-jb.blob".
1. In a terminal as root flashed recovery:
dd if=/sdcard/twrp-jb.blob of=/dev/mmcblk0p4
2. scored zeros mmcblk0p3:
dd if=/dev/zero of=/dev/mmcblk0p3 bs=16 count=1
after rebooting normally booted recovery !

[Q] How to get memory dumps, when internal memory (/data partition) is damaged.

(Sorry for my english)
My phone, S3 16 GB wasn't rooted and installed custom recovery. Someday, it appears on the screen that "internal storage is damaged". So I want to backup internal storage, attempted flashing twrp and rooting the phone through CF-autoroot, but it unable to mount /data in twrp.
To create a internal memory dump, I find this article.
dfir.science/2017/04/Imaging-Android-with-root-netcat-and-dd.html
I tried to this.
adb devices
List of devices attached
4300********061 recovery
/data directory is empty.
adb shell
su
:: permission denied
I think phone isn't properly rooted. Installing a supersu.zip from twrp, it says "install failed".
adb forward tcp:8888 tcp:8888
dd if=/dev/block/mmcblk0 | busybox nc -l -p 8888
nc 127.0.0.1 8888 > android.dd
It created a dump file of 3.5 GB size on windows, although internal memory had 15 GB in use. And mounting the dump file from OSFMount is failed.
In this situation, is it possible to get a full memory dump of internal storage, specially /data partition?
--------------------
Update.
Retry dumping of /data partition, and view this dump file from testdisk in linux. It worked.

Categories

Resources