help trying to nand restore - Droid Eris Android Development

i get the error : run'nandroid-mobile.sh restore' via adb i tried putting in commands but i dont know what to do please help asap

Did you rename it?

my dir is C:\android-sdk-windows\tools\adb
what should i type in command prompt

nothing? You're trying to restore a nand so restart in recovery and go to nandroid and restore...
If you've changed the name of your nandroid file make sure it has nothing but numbers and/or letters

Palmbxr said:
my dir is C:\android-sdk-windows\tools\adb
what should i type in command prompt
Click to expand...
Click to collapse
plug in and run adb devices and see what pops up
then try to restore from amon-ra again
in not just use that command in adb

i didnt change anything or rename it its exactly how it came when i did a nand+ext backup, whenever i try to flash it i get that error" run 'nandroid-mobile.sh restore' via adb!"

DS36 said:
plug in and run adb devices and see what pops up
then try to restore from amon-ra again
in not just use that command in adb
Click to expand...
Click to collapse
C:\Users\Kyle>C:\android-sdk-windows\tools\adb devices
List of devices attached
HT9AZHG26799 recovery
C:\Users\Kyle>

any ideas im still stuck here... :\

Is your ext partition still there and the same size as when ya backed up? I had a similar problem flashing a nand + ext after modifying my ext partition.
Sent from my FroyoEris using Tapatalk

adaneshade said:
Is your ext partition still there and the same size as when ya backed up? I had a similar problem flashing a nand + ext after modifying my ext partition.
Sent from my FroyoEris using Tapatalk
Click to expand...
Click to collapse
exactly the problem, good thing i restored it to my pc before thanks

I don't know if you have already resolved this issue or not but the same thing happened to me.
Turn off your phone. Plug it into the computer. Open your command promt. Navigate into your tools directory of the android SDK. Enter either adb "command it tells you to enter," or ./adb "command it tells you to enter." Now boot into the recovery and try your Nand restore again. It should work. That's all I did to fix the problem. Lemme know.

Related

ap2sd - can you restore apps after a wipe and flash?

I am running DC1 and want to goto DC2 and am running sp2sd, is there a way to restore my apps.? Thanks in advance!
videohammer said:
I am running DC1 and want to goto DC2 and am running sp2sd, is there a way to restore my apps.? Thanks in advance!
Click to expand...
Click to collapse
Boot into recovery on your phone, plug your phone into the computer.
Locate your c:/android/tools (or the directory you have it in) folder using command prompt (type cmd into run), assuming you have one from rooting your phone.
Type this:
adb shell
u
It should bring up your costum rom menu on your phone, one of the options is backing up your ext partion to your fat32(what you actually see on your memory card).. You can then reverse the procedure to get them back.
When whiching to a new rom you might have to do the uid fix for apps, its in the recovery boot screen under other.. But i didnt have to
Jus10o said:
Boot into recovery on your phone, plug your phone into the computer.
Locate your c:/android/tools (or the directory you have it in) folder using command prompt (type cmd into run), assuming you have one from rooting your phone.
Type this:
adb shell
u
It should bring up your costum rom menu on your phone, one of the options is backing up your ext partion to your fat32(what you actually see on your memory card).. You can then reverse the procedure to get them back.
When whiching to a new rom you might have to do the uid fix for apps, its in the recovery boot screen under other.. But i didnt have to
Click to expand...
Click to collapse
Sweet thanks!

help - Overclock Patch and update.zip

i have my phone updated to 2.1 and rooted. Want to overclock it now but not sure what im supposed to do with the kernel-overclock-update-v3.zip. I have the original PB00IMG.zip i updated and rooted my phone with, am i supposed to use it somehow?? New to this would appreciate any help.
Just use this, Flash it and it will make ur life easyier.
http://forum.xda-developers.com/showthread.php?t=685581
so phone will be stock again right? have to re dload apps and sync contacts and **** again right?
hmm... or u can try to flash the kernel-overclock-update-v3.zip to the one you have
be sure to nand backup first
when i put the kernel-overclock-update-v3.zip on the root of the sd card and power up holding the volume down button it doesn't find the kernel-overclock-update-v3.zip and doesn't install it...? in other word how do i flash it, doesn't seem to be working like when i originally flashed and rooted.
did you flash recovery?
duckingzebra said:
when i put the kernel-overclock-update-v3.zip on the root of the sd card and power up holding the volume down button it doesn't find the kernel-overclock-update-v3.zip and doesn't install it...? in other word how do i flash it, doesn't seem to be working like when i originally flashed and rooted.
Click to expand...
Click to collapse
Hey man,
When you rooted did you flash the Amon-Ra recovery image? If so put the update zip on the root of your sd. Power down your handset. hold the volume UP and the power on will bring you to the recovery menu. Here you have options for back up,flash from zip etc...once there you can select whatever rom/update you want to flash. Remember nandroid is your friend always back up. Also as far as apps etc...check out Titanium back up or one of the other free back up apps in market. I hope this helps you out.
volume up + end button = Recovery
ok, im following the steps to III: Flashing a Custom Recovery. and when i get to the step :adb push recovery.img /sdcard it says :cannot start recovery.img: No such file or directory...is the recovery.img also supposed to gon on the root of my sd card? or just the tools folder, cause its there?
yes its suppose to be on the root of the sdcard too
still says cannot stat 'recovery.img': no such fire or directory
am i supposed to replace /sdcard with /J (which is what my phone comes up as in my computer) -tried that still didn't work...
can u link me to the tut u are using?
http://forum.xda-developers.com/showthread.php?t=647707
QUOTE=TopazAaron]
duckingzebra said:
did you see the tutorial i linked? still cant figure it out.
Click to expand...
Click to collapse
ok
put the Recovery image in the tools/ in the sdk
after that plug ur phone into the comp
now being there in cmd navigate to the /tools/ folder
then type or copy and paste
adb shell mount -o rw,remount /dev/block/mtdblock3 /system
adb push recovery.img /sdcard
adb push flash_image /system/bin
adb shell chmod 755 /system/bin/flash_image
adb shell flash_image recovery /sdcard/recovery.img
---
now if you still have issues, let me know, sorry i didnt reply, i got busy with other things.
thanks for ur pm tho[/QUOTE]
ok now instead of saying :cannot start recovery.img: No such file or directory
it says error: device not found, when i open my computer my sdcard in my phone shows up and i can open it...
That is really wierd, try joining the irc u may get more help there
-------------------------------------
Sent via the XDA Tapatalk App
TopazAaron said:
That is really wierd, try joining the irc u may get more help there
-------------------------------------
Sent via the XDA Tapatalk App
Click to expand...
Click to collapse
Sorry newser here, irc??
Is your phone actually rooted? To check, turn on your phone, then turn on USB debugging through Settings/Applications/Development/USB debugging. Plug your phone into the computer via the USB cable.
In the run box of your computer, type cmd, then enter.
When the command window shows up, changed you your SDK tools directory. On my system it would be:
cd c:\android-sdk-windows\tools
Then run the following command
adb shell
You're rooted if it comes back with
#
If it comes back with
$
try the typing
SU
if it does not change from $ to # then you might want to try rooting again, and be sure to install the Amon_RA recovery
typing exit multiple times will back you out of adb, and the cmd window.
Hope that helps.
Edit: Of course that works for 2.1 leak 3 users as well.
Easier way for you tho, if you boot to hboot with the send and end buttons, you should see hboot with S off if you're rooted. If it's S On you're not.

[How To] Fix md5 mismatch nandroid restore

I figured I would post this fix here in case anyone else ran into this problem. This is assuming you did not change the folder names and let Clockworkmod create them. I haven't had it happen until today, but it's not a nice message to see when you are trying to do a restore.
Code:
Checking MD5 sums...
MD5 mismatch!
To fix this problem use the code below. Substitute the final folder name for the backup you need to fix.
Code:
adb shell
# cd /sdcard/clockworkmod/backup/2010-06-29.20.22.53
# rm nandroid.md5
# md5sum *img > nandroid.md5
When that finishes, re-run the restore and everything should be fine.
NOTE: As rpearl stated, there could be something really wrong with your nandroid, so use this tutorial as a learning experience and not a fix-all. In my case, everything was fine after restoring. However, that may not always be the case. Do this with caution.
I had a md5 mismatch and was freaking out. Turned out that the folder name for my backup couldn't have spaces in it...
This also works for anyone that wants a to make a 100% stock image but keep recovery.
just replace the boot.img and system.img with the ones from the RUU and recalc.
i just got this problem. do i need the "#" for each command?
Any idea what causes this? Is it just the folder name with spaces?
zeke1988 said:
i just got this problem. do i need the "#" for each command?
Click to expand...
Click to collapse
No the # simply means you are logged in as root or Su
If its showing $ then you may need to type /system/bin/Su
I believe or could be /system/lib/su I'm still pretty new to Linux / Android
Sent from my ADR6300 using Tapatalk
s197 said:
Any idea what causes this? Is it just the folder name with spaces?
Click to expand...
Click to collapse
Spaces aren't allowed but it could also be caused by corrupted data or sometimes even simply renaming the folder
Sent from my ADR6300 using Tapatalk
Be warned: If the nandroid was legit broken, then this will restore it *anyways* and your system won't boot / will have weird errors / whatever was wrong with the nandroid will be wrong with your system now.
Obviously you can just restore a previous nandroid if that happens.
i did this and still cant fix the md5. making me to use the older backup
For n00bs could you elaborate on this post, i'm having the same problem.
"To fix this problem use the code below"
I know this is through cmd, but what needs to be where when i'm typing exactly that in (changing the folder name etc) what screen do I need to be on. If it was more detailed, and thank you so far because this is the only post on the net, it could be very useful!
jinkzuk said:
For n00bs could you elaborate on this post, i'm having the same problem.
"To fix this problem use the code below"
I know this is through cmd, but what needs to be where when i'm typing exactly that in (changing the folder name etc) what screen do I need to be on. If it was more detailed, and thank you so far because this is the only post on the net, it could be very useful!
Click to expand...
Click to collapse
If you're messing with nandroid backups by now, we'd hope you would know how to get adb shell started.
So basically you start up adb shell in a command prompt on your computer, this connects to your phone, then you follow those commands following "adb shell"
A brief overview of getting to the adb commands >> http://forum.xda-developers.com/showthread.php?t=709220
permission denied error
I'm using windows 7 CMD to connect to my hero for resolving this md5 mismatch issue.
But when i type in the last command, which is -
md5sum *img > nandroid.md5
it gives me an error -
md5sum: permission denied
I tried running the cmd as administrator also but I dont know in windows how to do a 'SU' like in ubuntu.
can you please give a tip what to do ?
Sean.
Ok wow you guys rock thanks this works great.
THANK YOU!!!!!!!!!!!!!
I had this happen to me today... I woulda had to spend a crapload of time getting things all set up on my phone if I hadn't found this thread. It was my fault, I changed the name of the Nandroid backup folder... I had no idea you couldn't do this.... went to restore and BOOM MD5 mismatch.... noooooooooooo.
Thank you again OP for posting this you really saved my day today.
Jacked up Dell Streak/ US ver. build 6601 MD5 Checksum error
After screwing up my brand new Streak, I turned to XDA and MoDaCo to fix my screw-ups. Read this and did that, and nothing would work. The buttons would flash the Dell logo would come up and freeze. So here is another solution that worked for me Step by step.
Installed the fast boot using Windows 7 64 bit I downloaded Fastboot and followed there instructions. Not sure what it did for me, but I did it.
Now as the phone was, I was unable to do any kind manipulation of the SD card. I tool the micro SD card and put it into an SD adapter and added the files via my lap top. See instructions here
Technically you don't need to worry about flashing cache.img and data.img but i performed this backup after a factory reset so your not taking any of my personal info/data
fasboot didn't work for me for so i restored with nandroid
Nandroid
+Create a folder named "Clockworkmod" on your storage card
+In that folder create a folder named "backup"
+Create a folder in "backup" named whatever you want and place boot.img, system.img, cache.img, data.img, recovery.img and nandroid.md5 in that folder.
+Flash Clockworkmod Recovery
2.5.0.1 didnt work on mine but 1.8.1.7 did :/
+Enter clockworkmod recovery
-Power on device while holding both volume keys, then select "2. Software upgrade via Update.pkd on SD Card"
Now you should be in ClockworkMod Recovery
-Scroll down to nandroid using the volume keys and press the camera button to select it
-Select Restore and choose your folder (the one you placed in the backup folder)
thanks fone_fanatic 28th August 2010, 03:14 AM
DO NOT PUT ANY SPACES IN YOUR FILE STRUCTURE. I did and it gave me an "MD5 Check Sum Error" took the space out and bam it worked.
Rebooted the phone and so far every thing works. GPS, WiFi etc and no dam flashing lights or self reboots or O2 stuff Hope this helps ya....Good luck you will need it.
Ihtfp69 to the rescue again!
Man, I can never repay you for how much you've helped me out and saved my bacon! Other dev's, take note, this is an exemplary developer here and his SkyRaider rom is beyond compare!
seansin said:
I'm using windows 7 CMD to connect to my hero for resolving this md5 mismatch issue.
But when i type in the last command, which is -
md5sum *img > nandroid.md5
it gives me an error -
md5sum: permission denied
I tried running the cmd as administrator also but I dont know in windows how to do a 'SU' like in ubuntu.
can you please give a tip what to do ?
Sean.
Click to expand...
Click to collapse
I do not have ABD on my Win 7 machine so I had to use CMD as well. I too received an error, however mine basically said that md5sum was not a recognized command. Not sure where you got md5sum for your win 7 machine, but I got mine at the following website... (fourmilab.ch/md5/) and this one worked just fine. Unzip and copy md5.exe to the system32 folder.
If you are still working through this... good luck. Hopefully it can be helpful to someone else either way. --Josh
OMG ihtfp69!! You're a life-saver!
cscimmia said:
I do not have ABD on my Win 7 machine so I had to use CMD as well. I too received an error, however mine basically said that md5sum was not a recognized command. Not sure where you got md5sum for your win 7 machine, but I got mine at the following website... (fourmilab.ch/md5/) and this one worked just fine. Unzip and copy md5.exe to the system32 folder.
If you are still working through this... good luck. Hopefully it can be helpful to someone else either way. --Josh
Click to expand...
Click to collapse
Hmmm...I just used md5sum from the phone's shell. No need to get anything for Windows.
hey i tried the steps you guys gave buy i get
# cd /sdcard/clockworkmod/backup/2010-10-30.08.23.53
cd: can't cd to /sdcard/clockworkmod/backup/2010-10-30.08.23.53
this is what i did.
I opened terminal in OSX and typed "adb shell" after that i typed "cd /sdcard/clockworkmod/backup/2010-10-30.08.23.53" but it didnt work.
anyone know what i did wrong??
i also did "adb devices" in terminal and it detects my device. i check the su on my sgs and i see my computer, it sees it as unknown.

Please help a beginner understand ADB

I am quite proud to have got as far as I have (please see screenshot).
However, I am trying to adb pull my nandroid backup from TWRP onto my PC. I've searched all over the place for the right commands but whatever I type, I get a "could not find" message.
Could someone please let me know what to type to adb pull the nandroid backup onto my PC please?
Also, when I have reformatted my Nexus 7, what do I need to do to adb push the nandroid backup back onto my sdcard?
Many thanks in advance!
It should be in your /data/media/0/TWRP/BACKUPS/015d4172c98600219/ directory to c:/users/a/desktop.
Username invalid said:
It should be in your /data/media/0/TWRP/BACKUPS/015d4172c98600219/ directory to c:/users/a/desktop.
Click to expand...
Click to collapse
Thanks! I have been at it all day! I've finally managed to adb pull my nandroid backup and my TBU. I now want to sideload them to make sure I can do everything before I reformat my N7. When I enter: adb sideload 015d172c98600219, I get a "cannot read message". What is it that I should be entering?
You can not sideload a nandroid backup. You need to push it to your TWRP directory.
Username invalid said:
You can not sideload a nandroid backup. You need to push it to your TWRP directory.
Click to expand...
Click to collapse
Ah ok, good to know! So it's "adb push /015d4172c98600219/data/media/0/TWRP/BACKUPS/"?
Example
Code:
adb push c:/users/a/desktop/2013-07-29--11-07-31 /sdcard/TWRP/BACKUPS/015d4172c98600219/2013-07-29--11-07-31
Username invalid said:
Example
Code:
adb push c:/users/a/desktop/2013-07-29--11-07-31 /sdcard/TWRP/BACKUPS/015d4172c98600219/2013-07-29--11-07-31
Click to expand...
Click to collapse
Thanks very much for this. I guess adb is not for me.
This is where I am (screenshots). No matter what code I try nothing happens. I just see a set of instruction run quickly on the screen and then I'm back to square one.
Do I need to do something about the device itself, in "mount" perhaps?
Sorry to be a pain! Don't worry if you don't have the time!
StrangerWeather said:
Thanks very much for this. I guess adb is not for me.
This is where I am (screenshots). No matter what code I try nothing happens. I just see a set of instruction run quickly on the screen and then I'm back to square one.
Do I need to do something about the device itself, in "mount" perhaps?
Sorry to be a pain! Don't worry if you don't have the time!
Click to expand...
Click to collapse
Make a temporary backup so it will create the directory. You should still have your system image after the format so have you tried booting up then copying through My Computer?
Well I haven't reformatted yet because I wanted to make sure I mastered the adb method before I wiped everything. But now I don't know whether I should format at all. Sounds a bit risky if I don't have a rom to go back to!
Sent from my Nexus 7 using xda premium
It's strange, though, that I can successfully adb pull files but not adb push them back. Does anybody have a clue?
Your ROM will still be there after formatting. If is not, just reflash it with fastboot or sideload.
Also, you can't have spaces in the command.

[Q] how to save all my files without booting android???

Hi !
I have a problem, my phone (nexus with cyanogenmod10.2) switch off when he have finished to boot, as if there was very low power battery.
So i want to reset all but i need a solution to save all my datas, on "sdcard" and in "system" memory
i read that i can using the cmd : adb pull "device files directory" "PC files directory"
but i don't know how to use it... i'm french and its hard to translate all...
so if there is a French who can explain me its perfect !
if the explanations are clear in english its perfect too
To use any of these command you need to install adb on your computer. Here is a guide: http://www.redmondpie.com/how-to-set-up-android-adb-and-fastboot-on-windows-tutorial/
After that you open a command prompt window (windows key + r, type in "cmd", press enter). Then you put the phone into custom recovery and use the command "adb pull /sdcard/".
I've done these steps
But my problem is how to write, i need the "trame"(in french).
to be in recovery mode, i just have to boot in fastboot and select recovery mode and press power and next step is to sent my commands right?
the bg gg said:
I've done these steps
But my problem is how to write, i need the "trame"(in french).
to be in recovery mode, i just have to boot in fastboot and select recovery mode and press power and next step is to sent my commands right?
Click to expand...
Click to collapse
Correct.
Chromium_ said:
Correct.
Click to expand...
Click to collapse
Ok, but, i'm in the correct directory to use adb i write : adb pull /sdcard/ E:\Nexus4SDcard\ and nothing happens, as if i made a mistake... and i need to save all, sd card + system, so how can i do? what is the directory?
Someone can help me? 3 days without phone its hard :/
the bg gg said:
Ok, but, i'm in the correct directory to use adb i write : adb pull /sdcard/ E:\Nexus4SDcard\ and nothing happens, as if i made a mistake... and i need to save all, sd card + system, so how can i do? what is the directory?
Click to expand...
Click to collapse
If you looked at that other guide and have added adb to the environment variables
In your command prompt, do the following
E:
cd Nexus4SDcard
adb pull /sdcard
It should now being transferring
Sent from my Nexus 4 using xda app-developers app
finally i didn't write any directory for destination and it works fine but in this directory : C:\Program Files (x86)\Android\android-sdk\platform-tools, but its not a problem, using command prompt : "adb pull /"
how can i save and restore all my sms messages?
If the database is still intact it is located at /data/data/com.android.providers.telephony/databases/mmssms.db
You grab it the same way you tried to pull.
In recovery
adb shell mount /data
adb pull /data/data/com.android.providers.telephony/databases/mmssms.db
Sent from my Nexus 4 using xda app-developers app
i have an error :/
"C:\Program Files (x86)\Android\android-sdk\platform-tools>adb shell mount /data
mount: mounting /dev/block/platform/msm_sdcc.1/by-name/userdata on /data failed:
Device or resource busy"
and when i'm in the recovery mode i can't unmount /data
Sounds a little extreme... chances are, there's a better method.
If you have CM10.2, then no doubt you have a custom recovery already. I'm going to assume that this is not an actual battery issue. Is it crashing and rebooting or flat out turning off? I can't remember if CWM shows battery percentage, but TWRP does. What does it show?
What are you trying to back up? Just your /sdcard? Or your /data as well?
What happened to make it seemingly turn off once it's booted? Did you flash a new nightly?
You could always backup /data in your custom recovery as well and then do the wipe that doesn't erase the "sdcard" and then pick apart your backup later...

Categories

Resources