Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,786,599 Members 38,364 Now Online
XDA Developers Android and Mobile Development Forum

SOLVED: URGENT HELP How To Make a Nandroid Backup from ADB Shell Command Line

Tip us?
 
danividalg
Old
(Last edited by danividalg; 17th March 2014 at 10:29 AM.) Reason: Problem Solved :)
#1  
Member - OP
Thanks Meter 22
Posts: 69
Join Date: Dec 2010
Prompt SOLVED: URGENT HELP How To Make a Nandroid Backup from ADB Shell Command Line

Hi all,

I have a urgent question.
First of all thanks to everyone who reply to me.

Unfortunately I dropped my S3 to the floor and broke the screen.
Now I can't see anything and do not respond to touch.

I can change it for a new one on repair but I can't loose all my data and configs.

I want to make a nandroid backup but I can't see anything in the screen.

Perhaps someone could tell me how can I lauch the script for a full nandroid backup from the adb shell command line.

Or perhaps someone could guide me using the up/down volume buttons and the home or power buttons, but this is less reliable because options can change in quantity or order. I have a Galaxy S3 with recovery philz_touch_6.15.4-i9300



I have searched about "adb backup" and found about the adb backup command but this can not work for me because when I use the command it is supposed that a confirmation screen is opened and I have to "click" on something like a "permit backup" button, but I have my screen broken so I can not see anything (all is black) and touch do not work either.

Someone told me to enter recovery mode and then use this adb backup command but it only creates a cero bytes backup file and do anything more.


Someone told me to use "adb pull /data/*" but when I enter recovery mode and run adb shell, the /data/ folder is empty, I suppose that it is not mounted by default. Same for /system/ folder
How can I mount it in rw?




Another way: I have an automatic backup with titanium scheduled for next Sunday at 02:00
I have tried from adb shell to change date and time but got an error, gloogled it without solution

Command:
date -s 201403160150
Output:
__bionic_open_tzdata: couldn't find any tzdata when looking for localtime!
__bionic_open_tzdata: couldn't find any tzdata when looking for GMT!
__bionic_open_tzdata: couldn't find any tzdata when looking for posixrules!
date: can't set date: Unknown error -38
Sun Mar 16 01:50:00 GMT 2014

Any idea?



What I only can do is to connect via adb in recovery mode, (normal boot does not work adb, shows the device as offline, probably because need interaction to permit adb or anything else that now I can not do) and reboot in recovery or download mode.

I need to run the backup script to external sd via adb command as if I was in recovery and "click" on the backup to external sd option in recovery.
Or perhaps with a windows utility that can do a nandroid backup...
Is there any utility or something that can do a nandroid backup from adb or from download mode?




I will be very grateful to anyone who can help me.


Thanks in advance and best regards





SOLUTION:
Ok, it's solved

I got OnAndroid from here http://forum.xda-developers.com/show....php?t=1620255
Downloaded too the patch file from here https://github.com/ameer1234567890/O...ported-Devices

- Reboot into recovery
- adb shell
- mount /system
- mount /data
- mkdir /storage/sdcard1
- mount /dev/block/mmcblk1p1 /storage/sdcard1
- exit
- copy onandroid to where adb.exe is (platform-tools folder)
- adb pull onandroid /system/bin
- copy partlayout4nandroid to where adb.exe is (platform-tools folder)
- adb pull partlayout4nandroid /system
- adb shell
- onandroid -c S3Backup1

This will make a complete nandroid backup to /storage/sdcard1/clockworkmod/backup/S3Backup1

Then, when I receibe the new S3 I simply install recovery and restore the backup

Thanks all for your help
 
RK
Old
#2  
RK's Avatar
Senior Member
Thanks Meter 360
Posts: 764
Join Date: Feb 2012
Try this:

https://plus.google.com/103583939320...ts/Dr5urg4XY8Q

Sent from my GT-I9505G using Tapatalk
The Following User Says Thank You to RK For This Useful Post: [ Click to Expand ]
 
danividalg
Old
#3  
Member - OP
Thanks Meter 22
Posts: 69
Join Date: Dec 2010
Quote:
Originally Posted by RK View Post
Try this:

https://plus.google.com/103583939320...ts/Dr5urg4XY8Q

Sent from my GT-I9505G using Tapatalk
dont work
"adb backup" creates cero size backup files, I don't know why

Thanks for your reply
 
danividalg
Old
#4  
Member - OP
Thanks Meter 22
Posts: 69
Join Date: Dec 2010
Ok, I think it's solved

I will confirm it tomorrow, when I receive my new S3

By the way, I got OnAndroid from here http://forum.xda-developers.com/show....php?t=1620255
Downloaded too the patch file from here https://github.com/ameer1234567890/O...ported-Devices

- Reboot into recovery
- adb shell
- mount /system
- mount /data
- mkdir /storage/sdcard1
- mount /dev/block/mmcblk1p1 /storage/sdcard1
- exit
- copy onandroid to where adb.exe is (platform-tools folder)
- adb pull onandroid /system/bin
- copy partlayout4nandroid to where adb.exe is (platform-tools folder)
- adb pull partlayout4nandroid /system
- adb shell
- onandroid -c S3Backup1

This will make a complete nandroid backup to /storage/sdcard1/clockworkmod/backup/S3Backup1

Tomorrow I will try to restore this nandroid backup to my new phone and test if all is ok.

Thanks all for your help
 
danividalg
Old
#5  
Member - OP
Thanks Meter 22
Posts: 69
Join Date: Dec 2010
Ok, confirmed, it works! XD

Edit the first post to give explanations of how to solve it.

Thanks all.
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes