Related
how can you run a restore from the console? each time I try to restore using cyan recovery it tells me I need to restore from console using nadroid.sh how does that work? and when I tried to do a backup from recovery it runs and runs and runs never ending any thoughts
I am on cyan 3.6.8.1 with the new recovery 1.4
should be nandroid-mobile.sh /path to nandroid backup
What would you type in the console to make that happen If I should need it?
I'm not sure I understand you..Make what happen?
Is it showing you like an error when its doin it also...
Try freeing up some space on your sd if there's no room it won't work
If I needed to restore a ROM my recovery says I need to drop to the console and use nandroid.sh
step 1: locate the recovery folder on your SD card. make note of it.
step 2: boot into recovery mode and hit alt+x to bring up the console
step 3: when the console comes up, press enter like it tells you to. then type the following:
Code:
nandroid.sh /sdcard/folder
replace the word folder with the exact folder name of your nandroid backup.
let it run and you should be ok.
the alternate method is to use fastboot.
step 1: open your sdk folder on your computer, then open the tools folder.
step 2: copy the nandroid boot.img, system.img and data.img to from your sd card to your tools folder on your computer.
step 3: open a command prompt and navigate to your tools folder.
step 4: boot your phone into bootloader mode and switch into fastboot (back arrow)
step 5: type the following commands, waiting for each one to finish before doing the next:
Code:
fastboot flash boot boot.img
fastboot flash system system.img
fastboot flash userdata data.img
fastboot reboot
after that, your phone will be restored to the backed up version.
thank you very much
How would I do this so that I can "backup" my apps data? I want to do a wipe, but hate having to log into everything and all that shenanigans. Can't seem to find the threads for Data2SD anywhere so if someone can pull that up for me, that'd be great
It's been recommended NOT to do Data2SD because it's caused tons of problems.
Have you tried adb pull /data/data \ to back everything up to your pc and then just push it back afterwards?
Or you can just use the fastboot flash commands with the data.img file.
If I'm not mistaken the /data folder IS nandroid backup data.img file.
You can try that.
Binary100100 said:
It's been recommended NOT to do Data2SD because it's caused tons of problems.
Have you tried adb pull /data/data \ to back everything up to your pc and then just push it back afterwards?
Or you can just use the fastboot flash commands with the data.img file.
If I'm not mistaken the /data folder IS nandroid backup data.img file.
You can try that.
Click to expand...
Click to collapse
Hmm, didn't think about fastboot. So the fastboot command would be to just pull the data.img file, and only that? If so, what would that look like? I'm Flashboot/ADB retarded
lukekirstein said:
Hmm, didn't think about fastboot. So the fastboot command would be to just pull the data.img file, and only that? If so, what would that look like? I'm Flashboot/ADB retarded
Click to expand...
Click to collapse
No problem. Say you save your data.img file to the root of your C drive. (c:\data.img)
Open cmd
cd c:\
C:\>fastboot flash userdata data.img <enter>
then it will say sending and then writing.
It should only take a few seconds.
then
C:\>fastboot reboot <enter>
and you should be set.
When i type the dd if=/data/recovery.img of=/block/mmcblk0p6 bs=4096 to flash over the clockworkmod, into my command promt it says 'cannot open for read: No such file or directory' and i dont know what im doing wrong.
I mean everything else seemed to workout fine. i downloaded the recovery image it said to save it but it was already saved to my computer after i downloaded it so i dont know if this could be the problem.
Then i used the adb push recovery.img/data command to push the recovery image to my phone, i think this might be where i messed up. After i put in the command a long list of text pops up on the command prompt. It starts out showing 'Android Debug Bridge version 1.0.26' then is followed by a long list of adb commands. Idk know if this is what its supposed to show.
Next i did the adb shell, su, dd if=/dev/block/mmcblk0p6 of=/sdcard/mmcblk0p6.backup bs=4096 command and that worked fine it said 2560+0 records out, 2560+0 records in 10485760 bites transfered in 0.413 secs and i actually found that file on my sdcard. So i think i did that right.
Next i tried to use the command 'dd if=/data/recovery.img of=/block/mmcblk0p6 bs=4096' and like i said earlier it just says 'cannot open for read: No such file or directory'
Lastly i tried the rm /data/recovery.img command and it said rm failed for /data/recovery.img, No such file or directory in the command prompt.
Im sorry i am new at this but i thought i followed the directions perfectly and any help anyone could give me would be greatly appreciated.
First off, before someone else says it, you shouldn't start a new thread for something we already have a topic for. But anyways,
Sounds to me like recovery.img never got pushed to /data. Not sure if its a typo in your post but 'adb push recover.img/data' should be 'adb push recovery.img /data'. The space is important. On your phone use a root file explorer and go to your /data partition and see if recovery.img is there. You may need to either change permissions for /data or just put recovery.img on your sdcard and move it to /data with a root explorer.
Sent from my LG-P925 using Tapatalk
Well im sorry im new to this kind of thing, i didnt want to make anyone mad i just wanted some help and i apologize if ive ticked somone off. How would i change the permissions for the data? And could you tell me how to use the root explorer to put the recovery image in the right place? Again i appreciate any help you can offer.
Is recover.img in the same folder as adb? Because the instructions assume your recovery.img is in the same folder you are working from. So if you have to cd to your adb folder to use adb then recovery.img should be in that folder as well. Look at your cmd window, whatever directory/ folder it says you are in that is where you should put recovery.img.
If you saw a bunch of commands it means the .img did not go through your command did not work. You dont have the recovery.img in /data either put the file on your sdcard and use a root explorer to move it to /data or try the adb push again, you most likely made a typo or something.
You would put recovery.img on your sdcard through your computer. Open root explorer and navigate to your sdcard, long press on the recovery.img select move, go to/ data on the root of the phone, not the one on either sdcard it MUST be /data not /mnt/sdcard/data or anything like that once there paste file to /data and finish up in adb shell.
Alright i copied the recovery image to the /data folder and finished up in command prompt and everything worked out like it was supposed to. what was i supposed to do next to put it into cwm recovery mode? I held power, volume down, 3d button but i just went into normal recovery mode. then i went to rom manager to try and put it into cwm recovery that way but it just rebooted my phone. And when i went back into the /data folder i couldnt find the recovery image there anymore and i did a search on my root explorer and couldnt find it anywhere.
Hold vol down + 3D + power when lg logo appears release power but keep vol down +3D held down until recovery pops up. If you still don't boot into cwm try flashing recovery.img again. Do NOT use rom manager at all to install cwm on this phone.
Well ive tried to take the recovery image from the sd card to the /data folder but when i run 'rm /data/recovery.img' on the command prompt then reboot my phone, i turn it off then try and put it in recovery mode but its just regular recovery mode not cwm recovery mode. And everytime i run the 'rm /data/recovery.img' when my phone boots back up the recovery image is no longer in the /data folder or anywhere. But if i dont run the 'rm /data/recovery.img' after moving the recovery image to the /data folder it stays in the folder. Is it supposed to dissapear from the /data folder?
And i tried putting the recovery image in the same folder as abd which is the platform tools folder then flash it over and i got the same message. (cannot open for read: No such file or directory.)
Im sorry for all the questions and I am thankful for your help. I feel like i cant be the only person having this problem, well i hope im not that would make me feel really stupid. Thanks.
powers.jereme said:
Well ive tried to take the recovery image from the sd card to the /data folder but when i run 'rm /data/recovery.img' on the command prompt then reboot my phone, i turn it off then try and put it in recovery mode but its just regular recovery mode not cwm recovery mode. And everytime i run the 'rm /data/recovery.img' when my phone boots back up the recovery image is no longer in the /data folder or anywhere. But if i dont run the 'rm /data/recovery.img' after moving the recovery image to the /data folder it stays in the folder. Is it supposed to dissapear from the /data folder?
And i tried putting the recovery image in the same folder as abd which is the platform tools folder then flash it over and i got the same message. (cannot open for read: No such file or directory.)
Im sorry for all the questions and I am thankful for your help. I feel like i cant be the only person having this problem, well i hope im not that would make me feel really stupid. Thanks.
Click to expand...
Click to collapse
rm is the command to remove. So yes, recovery.img is supposed to disappear after that command. Put it back on /data and run the whole process from the CWM thread again making sure you do every step. Sounds like you may have accidentally skipped a step.
Sent from my LG-P925 using Tapatalk
Double post.
Ugh...keep selecting quote instead of edit on Tapatalk...Triple post...
Alright ill try that again, so i should put the file back on the /data folder and then still do the step where you try to flash over cwm from the cwm thread, even though its already there? Thanks
powers.jereme said:
Alright ill try that again, so i should put the file back on the /data folder and then still do the step where you try to flash over cwm from the cwm thread, even though its already there? Thanks
Click to expand...
Click to collapse
Yea just do it all again. Worst case is you flash cwm back over cwm
Sent from my LG-P925 using Tapatalk
I got it to work Urabewe was right i just needed to put the recovery image in the correct folder and everything worked perfect. Thanks guys.
Figured out what i was doing wrong please close.
i was trying to flash the radio for the droid 3 to use US AT&T and T-mobile and i always get stuck at this step i need some help i have the device already in AP Fastboot mode and ive tried various combination of the command moto-fastboot flash radio radio.img and nothing seems to work
heres what ive done on cmd
C:\Users\User>cd desktop
C:\Users\User\Desktop>cd fastboot
C:\Users\User\Desktop\fastboot>moto-fastboot flash radio radio.img
'moto-fastboot' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\User\Desktop\fastboot>moto-fastboot.exe
'moto-fastboot.exe' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\User\Desktop\fastboot>moto-fastboot.exe flash radio
'moto-fastboot.exe' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\User\Desktop\fastboot>moto-fastboot.exe flash radio radio.img
'moto-fastboot.exe' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\User\Desktop\fastboot>
You need to have the cmd in the folder where the files are allocated. You can't just enter a command from any folder.
Example: if your files are in c:/fastboot, these are the commands you need to run before using the program commands :
CD.. (repeat this until you are in c
CD fastboot
CD moto-fastboot.exe yadda yadda yadda you get it
Rocking with my M3 and XDA app
There is not such folder that has this command on the file, I need to do this, PLEASE SOMEONE HELP....
where are you files?
for example
2) boot device to fastboot mode.(make sure to have all motorola drivers installed on your PC)
3) move the radio img and the MOTO-FASTBOOT to a folder (ex. c:/Root)
4. unzip files if zipped
5) Open the CMD, and enter the these commands.
cd/
cd c:root
moto-fastboot.exe flash radio radio.img
Been getting this error after trying to flash to my k20 pro, removing the checkpoint just makes it instantly flash and nothing changes. Any help?
WaiAi said:
Been getting this error after trying to flash to my k20 pro, removing the checkpoint just makes it instantly flash and nothing changes. Any help?
Click to expand...
Click to collapse
I am facing same problem, but no problem there, phone boot up after flash.
Ignore it. To get it done without this error you have to lock your bootloader...
thiagodark said:
Ignore it. To get it done without this error you have to lock your bootloader...
Click to expand...
Click to collapse
Nothing happens still, just says flash done and phone stays in fastboot loop
I had the same problem. Forget the Mi Flash Tool. Just run the script "flash_all.bat" in the folder of the unzipped rom and wait until it finished.
If you haven't installed fastboot, do the following:
1. Go to the folder where you unzipped the Mi flash tool and navigate to the subfolder "Source/Third Party/Google/Android".
2. Copy the entire content (including fastboot.exe) and paste it into the folder where you unzipped the rom (and where the script is located).
3. Open a terminal window in the folder and execute the script "flash_all.bat".
4. Wait until the script has run.
SageDroid said:
I had the same problem. Forget the Mi Flash Tool. Just run the script "flash_all.bat" in the folder of the unzipped rom and wait until it finished.
If you haven't installed fastboot, do the following:
1. Go to the folder where you unzipped the Mi flash tool and navigate to the subfolder "Source/Third Party/Google/Android".
2. Copy the entire content (including fastboot.exe) and paste it into the folder where you unzipped the rom (and where the script is located).
3. Open a terminal window in the folder and execute the script "flash_all.bat".
4. Wait until the script has run.
Click to expand...
Click to collapse
You have saved my life sir, days of surfing the internet with no solution, you have saved me a new phone.
SageDroid said:
I had the same problem. Forget the Mi Flash Tool. Just run the script "flash_all.bat" in the folder of the unzipped rom and wait until it finished.
If you haven't installed fastboot, do the following:
1. Go to the folder where you unzipped the Mi flash tool and navigate to the subfolder "Source/Third Party/Google/Android".
2. Copy the entire content (including fastboot.exe) and paste it into the folder where you unzipped the rom (and where the script is located).
3. Open a terminal window in the folder and execute the script "flash_all.bat".
4. Wait until the script has run.
Click to expand...
Click to collapse
Thank you very very very much. ( I should stop messing with this stuff )
I also had to fiddle around until I figured it out. I don't understand why all instructions are based on the Mi Flash tool. It seems to be just a GUI for fastboot, optimized for Xiaomi devices.
If you download fastboot and set it as a PATH system variable, you can run the scripts from the rom folder with one click. Super easy and you never have to deal with the "Mi Flash tool" again.
SageDroid said:
I also had to fiddle around until I figured it out. I don't understand why all instructions are based on the Mi Flash tool. It seems to be just a GUI for fastboot, optimized for Xiaomi devices.
If you download fastboot and set it as a PATH system variable, you can run the scripts from the rom folder with one click. Super easy and you never have to deal with the "Mi Flash tool" again.
Click to expand...
Click to collapse
I got stuck in a fastboot loop again have ran into a few different issues, first of which, is that I have a mismatching image or device, this doesn't always show at the start, sometimes it stops half way through and when I start it back up again I'm met with that. Other times it starts with that and once I remove that part of the script it does some stuff and stops on deleting boot. I'm pretty sure I've been using the right roms, or I should have at least once by now. Before it got into a fastboot loop I had the xiaomi eu rom and I flashed the vendor that I was told to flash with the rom, does either of those have anything to do with it?
Call the script from the terminal and post what the output is.
You can only execute the script directly if you have defined "fastboot" as a global PATH variable. You can verify this by checking that you can call "fastboot devices" from anywhere without getting an error message.
Niaz
SageDroid said:
I had the same problem. Forget the Mi Flash Tool. Just run the script "flash_all.bat" in the folder of the unzipped rom and wait until it finished.
If you haven't installed fastboot, do the following:
1. Go to the folder where you unzipped the Mi flash tool and navigate to the subfolder "Source/Third Party/Google/Android".
2. Copy the entire content (including fastboot.exe) and paste it into the folder where you unzipped the rom (and where the script is located).
3. Open a terminal window in the folder and execute the script "flash_all.bat".
4. Wait until the script has run.
Click to expand...
Click to collapse
thanks a lot brother
SageDroid said:
I had the same problem. Forget the Mi Flash Tool. Just run the script "flash_all.bat" in the folder of the unzipped rom and wait until it finished.
If you haven't installed fastboot, do the following:
1. Go to the folder where you unzipped the Mi flash tool and navigate to the subfolder "Source/Third Party/Google/Android".
2. Copy the entire content (including fastboot.exe) and paste it into the folder where you unzipped the rom (and where the script is located).
3. Open a terminal window in the folder and execute the script "flash_all.bat".
4. Wait until the script has run.
Click to expand...
Click to collapse
It works thank you!!! :victory::victory:
Genius thanks!
SageDroid said:
I had the same problem. Forget the Mi Flash Tool. Just run the script "flash_all.bat" in the folder of the unzipped rom and wait until it finished.
If you haven't installed fastboot, do the following:
1. Go to the folder where you unzipped the Mi flash tool and navigate to the subfolder "Source/Third Party/Google/Android".
2. Copy the entire content (including fastboot.exe) and paste it into the folder where you unzipped the rom (and where the script is located).
3. Open a terminal window in the folder and execute the script "flash_all.bat".
4. Wait until the script has run.
Click to expand...
Click to collapse
Thank yoou!!!!
SageDroid said:
I had the same problem. Forget the Mi Flash Tool. Just run the script "flash_all.bat" in the folder of the unzipped rom and wait until it finished.
If you haven't installed fastboot, do the following:
1. Go to the folder where you unzipped the Mi flash tool and navigate to the subfolder "Source/Third Party/Google/Android".
2. Copy the entire content (including fastboot.exe) and paste it into the folder where you unzipped the rom (and where the script is located).
3. Open a terminal window in the folder and execute the script "flash_all.bat".
4. Wait until the script has run.
Click to expand...
Click to collapse
Thank you so much, you saved me of a lot of stress. It was literally the only thing that worked after searching all over the internet. You literally saved me of hundreds of dollars, money that in this current pandemic situation, I do not have.
Thank you very. very much.
Thank's
Thank you! Very much! After long hours of searching you're solution is the only one that worked.
SageDroid said:
I had the same problem. Forget the Mi Flash Tool. Just run the script "flash_all.bat" in the folder of the unzipped rom and wait until it finished.
If you haven't installed fastboot, do the following:
1. Go to the folder where you unzipped the Mi flash tool and navigate to the subfolder "Source/Third Party/Google/Android".
2. Copy the entire content (including fastboot.exe) and paste it into the folder where you unzipped the rom (and where the script is located).
3. Open a terminal window in the folder and execute the script "flash_all.bat".
4. Wait until the script has run.
Click to expand...
Click to collapse
Thanks a lot for this method!!! You saved me from losing all my data by flashing all except storage.
Thank you really
sagedroid said:
i had the same problem. Forget the mi flash tool. Just run the script "flash_all.bat" in the folder of the unzipped rom and wait until it finished.
If you haven't installed fastboot, do the following:
1. Go to the folder where you unzipped the mi flash tool and navigate to the subfolder "source/third party/google/android".
2. Copy the entire content (including fastboot.exe) and paste it into the folder where you unzipped the rom (and where the script is located).
3. Open a terminal window in the folder and execute the script "flash_all.bat".
4. Wait until the script has run.
Click to expand...
Click to collapse
you are god, i was really nervius!
This is bound to the latest MiFlash tool. You can skip it by getting into "Configuration" and then erasing that line at "Checkpoint". Hit "OK" and you're good to go.
Try copiying the rom zip (just folder that is 1 level back to images folder) to root of C drive and try installing the rom. It worked for me.. Flashtool doesnt like subfolders..
Sent from my Redmi K20 Pro using Tapatalk
abees said:
Try copiying the rom zip (just folder that is 1 level back to images folder) to root of C drive and try installing the rom. It worked for me.. Flashtool doesnt like subfolders..
Sent from my Redmi K20 Pro using Tapatalk
Click to expand...
Click to collapse
I am having a hard time using the cmd method with the error "flash_all.bat not recognized"
But i tried your method and it works . Thank you so much