Run nandroid-mobile.sh via adb. - Nexus One General

Hi
I have problem when i does nandroid i get the massege
Run nandroid-mobile.sh via adb.
And i try to do it wheb i connect to the pc and when i'm not
I have nexus one cm6
Thenks

Unmount your sdcard.
from recovery mount then unmount

How i'm doing mount from recovery?and unmount???

The option mount sdcard from recovery.

yet didn't find it

Its very easy to solve this. Just charge your phone for an hour or so. Then boot to recovery, run nandroid . Everything will be fine.
This prob arises cos ur low on battery.
gud luk
Sent from my Nexus One using XDA App

Yeah. You're battery is too low. It won't let you run for safety reasons.

I've had this error (or a similar one) when I didn't have enough space on the SD card...

i have enough place and enogh battery but still it didn't do it

This fixed this problem for me:
- Enter Recovery
- Mount USB
- Open up a cmd window in your tools/adb folder
- Type: adb remount
- Then: adb shell mkdir /system/sd
It supposedly occurs because there is a missing SD folder in the System folder.

how to do mount usb at the recovery?
i connected my nexus and do the cmd and type the commend and it give me these
remount failed:invalid argyment

ok here is the thing that i did..and yet you can see the "not fouand "at the end..
also i tried after these to do regular from the phone and yet i get the same massege at the start
http://yfrog.com/1g42509115j
you can look here

if you're using amon-RA recovery press USB MS toggle to mount your sd card while it's connected to your computer.

and what after?i did ot and than tried to do again nandroid and it the same

did you rename the nandroid file/folder? make sure there are no spaces.

I7210I said:
Hi
I have problem when i does nandroid i get the massege
Run nandroid-mobile.sh via adb.
And i try to do it wheb i connect to the pc and when i'm not
I have nexus one cm6
Thenks
Click to expand...
Click to collapse
britoso said:
did you rename the nandroid file/folder? make sure there are no spaces.
Click to expand...
Click to collapse
Britoso got the answer
I had this problem for the first time EVER a few days ago.
I thought it was because I upgraded from amon_ra 1.7, to 1.8.
THE PROBLEM IS DUE TO THE FILENAME, make sure to remove spaces, or replace them with dashes or underscores.
Access the nandroid folder on your sdcard in any way possible: via usb cable, or stick it in a card reader and do it that way. there are many ways to rename the nandroid folder.

ok i removed the folder NANDROID from my sdcard and yet it doesn't help it's create a new folder but the massege s come back and the folder is full so what is going on there?

The suggestion was to RENAME not REMOVE - though I don't really think it was the right suggestion anyway (your file naming convention looks good, from the image you posted).
I recommend you pay close attention to your typing though, because there are a lot of input errors in the image you posted, and that's a sure way to screw things up...
Adb is telling you that you don't have an md5 file for that nandroid, so I'd try listing the folder contents to confirm (you may have deleted it). I would also try the other backups, and hope one works...
Which recovery do you have? I think Amon Ra's will let you run nandroid from the phone, which might be a better/safer option?
Sent from my Nexus One using XDA App

first of all i have recovery-RA-nexus-v1.7.0.1 (amon)
and i tried to do the nandroid from the recovery...and at the start i get the message Run nandroid-mobile.sh via adb.
the funny is that i did upgrade to my frend phone and i get the same message to (from 5.0.7 to cm6)

ok ...good news..
i changed the recovery to clockware and now i did backup..
so the setioation is that i have a file called NANDROID and one more fie called clockware backup so i can be sure that the backup s good now?and i can erase the file nandroid?

Related

extract nandroid backups?

I flashed my phone to JF 1.5 and in the process some how managed to screw up my sd card and lost all my apps. i did do a nandroid backup of jf 1.41 so i ahve those img files. I tried to restore to that to recover everything but it wont boot past the g1 logo. I tried downgrading firmware to 1.43 (couldnt find 1.41) and using the same restore for nandroid and still wouldnt boot. I also tried jsut applying the user data img to see if i could jsut grab that and it fialed on both firmware revisions 1.5 , 1.43.
In the end im stuck with a backup i cant use, the only thing i need off of it is the apps. I read that you can use the emulator to mount it but i couldnt figure that out. I also looked at yaffs extractor from the google code site but i wasnt quite sure how to compile/run it.
Anyone have a simple solution or a complex one i can follow to getting my apps out?
did you follow this?
http://forum.xda-developers.com/showpost.php?p=3311708&postcount=2
darkrangr said:
I also looked at yaffs extractor from the google code site but i wasnt quite sure how to compile/run it.
Click to expand...
Click to collapse
You go into the source directory, type "gcc -o unyaffs unyaffs.c", then you (create and) go to some directory where you want to extract the contents ("mkdir ~/extract") "cd ~/extract", and finally you extract the image "/path/to/unyaffs /path/to/data.img".
I tried the standard nandroid restore and it failed.
Trying the yaffs thing now and i got an error.
I placed the yaffs files all in a folder on the sdcard and put the img in that folder as well.
I open the terminal on the phone and did cd /sdcard/nan nan being the directory i made
I then tried to run that command "gcc -o unyaffs unyaffs.c" and i get gcc not found. what did i do wrong?
Unless your backup was corrupted, flashing the backup should have been fine.
Code:
fastboot flash boot boot.img
fastboot flash system system.img
fastboot flash userdata data.img
You said it failed - what error did it give? Did it say it couldn't find the command? Be sure you're running these commands on your PC with your G1 connected via USB, the correct drivers are loaded, and you have the fastboot program.
As for using unyaffs - I don't think you understand what you have to do to use it. You have to compile it on your PC...all you get is the source code. I haven't looked on the google code site, but I would imagine there isn't a version for windows.
EDIT: After reading your original post for a second time, I have to ask: if you screwed up your SD card and lost all of your apps, does that mean you were using Apps2SD? That's a bit of an important detail to leave out, if so. Unless I'm mistaken (and someone correct me if I'm wrong), your apps wouldn't be in the backup anyway, you're wasting your time. If your backup is just restoring the symlinks to the SD card and the SD card is screwed up, then no wonder it's hanging at boot. You'd need to wipe your SD card and start from scratch. I'd recommend doing that either way - would you rather have to redownload a few apps or continue having a bricked phone for days?
it didnt fail on the restore with fastboot, it loaded up everything fine and then when i rebooted it just sat on the boot screens forever and never loaded.
I am feeling nice so darkrangr if you want to PM your image files I will unyaffs it on my ubuntu box for you.
TemporalShadows said:
EDIT: After reading your original post for a second time, I have to ask: if you screwed up your SD card and lost all of your apps, does that mean you were using Apps2SD? That's a bit of an important detail to leave out, if so. Unless I'm mistaken (and someone correct me if I'm wrong), your apps wouldn't be in the backup anyway, you're wasting your time. If your backup is just restoring the symlinks to the SD card and the SD card is screwed up, then no wonder it's hanging at boot. You'd need to wipe your SD card and start from scratch. I'd recommend doing that either way - would you rather have to redownload a few apps or continue having a bricked phone for days?
Click to expand...
Click to collapse
no, my apps were installed normally. I am running curent jf firmwar enow while i try to get my stuff back, but some of the apps i had are no longer available or have converted to pay apps, plus i forgot a lot of apps i had.
http://forum.xda-developers.com/showthread.php?t=497034
In the other tools archive on this post you can find the unyaffs tool fully compiled. Just move your image to the same folder, drag and drop it on the unyaffs.exe and watch the files appear.
How about YOU DIDN'T INSTALL GCC!!!
darkrangr said:
I tried the standard nandroid restore and it failed.
Trying the yaffs thing now and i got an error.
I placed the yaffs files all in a folder on the sdcard and put the img in that folder as well.
I open the terminal on the phone and did cd /sdcard/nan nan being the directory i made
I then tried to run that command "gcc -o unyaffs unyaffs.c" and i get gcc not found. what did i do wrong?
Click to expand...
Click to collapse

Cant flash another recovery image!!!

It used to work along time ago, this is my new refurb that i rooted a few days ago, im on the 1.5.2 recovery image and im trying to flash the new 1.6 but i dont what the crap im doing wrong. i keep getting error messages i used to be able to do this in 10 seconds. i already have the image on the root of my card can anyone help.
Plus those bastards sent me a refurb that has dead pixels that are white in the blk screen wtf sprint, thats pure whack customer service.
EDIT: problem solved, i was trying this whole time to flash another recovery inside recovery, i actually left the phone on and pushed the recovery lol no more ghanja.
see the # symbol when you enter teh shell? that means you have root already and su isn't necessary. Also try unplugging then plugging back in, the phone from the usb. The file not found error probably means that the sd card is mounted. do an ls from /sdcard to make sure
Also try "adb mount" over "mount -a".
DISABLE usb debugging.
i know, its the little things we overlook. i just did this last night and forgot to disable it.
i did and its still not working.........i dont understand, let me upload another pic. and i already tried adb mount and fastboot still no luck
i kept getting these errors what i did and found easiest with no errors is save the recovery in the sd card. download terminal emulator then in terminal emulator su then enter
then type flash_image recovery /sdcard/nameofimage.img
someone please make sure my prompts are right as i hadn't done it in awhile.
I am trying to do the exact same thing and getting the exact same errors. The file is definitely on the sd card, I am typing the name correct, and USB debugging is off.
Anyone have any other ideas or ways to update to the newest recovery image?
Maitiu said:
I am trying to do the exact same thing and getting the exact same errors. The file is definitely on the sd card, I am typing the name correct, and USB debugging is off.
Anyone have any other ideas or ways to update to the newest recovery image?
Click to expand...
Click to collapse
hahaha dude it used to work perfectly, i been trying and trying for the past couple of hours. (scratching head)
Demoyo23 said:
hahaha dude it used to work perfectly, i been trying and trying for the past couple of hours. (scratching head)
Click to expand...
Click to collapse
you try using the terminal emulator method directly on the phone? only way i can get to work and works everytime.
I'm working on that now, but I tried that a few days ago and got different errors, I'll post what the specific error was when I get there in a few minutes. For some reason Superuser Permissions is force closing right now.
Yeah even from the terminal emulator, I get a "not found" error.
I just updated today from RA1.5.2 to RA1.6.2. I used the Recovery Flasher to update to the newer version as that is what I had originally used to get 1.5.2 installed.
These were original instructions from theunlockr .com:
7. Save both the Recovery-RA-HEROC-v1.5.2.img and the FlashRec.apk to your computer, then copy them both to your SD card (do NOT put them inside any folders on the SD card, just put them on the SD card itself).
8. Unplug the phone from the computer once they are downloaded to the SD card.
8. Goto the Market and download Linda File Manager or any file manager program if you do not already have one.
9. Open the file manager and goto SDCard and then find the FlashRec apk file and click it. If asked tell it to use Package Installer to open it. It should automatically install the apk.
10. Open the FlashRec program and click on Backup Recovery Image and wait for it to finish.
11. Once done, click on the empty text box in the FlashRec program and type (again remember we have replaced the recovery image from the one in the video so type what is written here, NOT what is written in the video!):
/sdcard/recovery-RA-heroc-v1.5.2.img
Then click on the Flash Custom RecoveryImage button and wait for it to finish.
Just barely.
That's still not working flashrec won't back up it keeps saying failed. And it won't flash a custom img. This refurb is cursed I had no problem doing it all on my original.
-------------------------------------
Sent via the XDA Tapatalk App
Demoyo23 said:
It used to work along time ago, this is my new refurb that i rooted a few days ago, im on the 1.5.2 recovery image and im trying to flash the new 1.6 but i dont what the crap im doing wrong. i keep getting error messages i used to be able to do this in 10 seconds. i already have the image on the root of my card can anyone help.
Plus those bastards sent me a refurb that has dead pixels that are white in the blk screen wtf sprint, thats pure whack customer service..
Click to expand...
Click to collapse
Type 'adb devices' in... Whenever I see the '/' before the '#' it means that it isn't recognizing my phone.
Just do it through adb. I did mine through adb the 1st, 2nd and 3rd time. After looking at the dirwctiona, I think it might be easier and should work.
-------------------------------------
Sent via the XDA Tapatalk App
Make sure the phone is connected as charge only, once it is type
ls /sdcard
AND PASTE THE RESULTS HERE
It sounds like you don't have the sdcard mounted or if you do you may be typing the file wrong compared to what is on the sdcard.
Don't panic, this had nothing to do worth the phone being refurbished, it is only a simple file not found error that once you fun that command can easily be solved.
liquidtenmillion said:
Make sure the phone is connected as charge only, once it is type
ls /sdcard
AND PASTE THE RESULTS HERE
It sounds like you don't have the sdcard mounted or if you do you may be typing the file wrong compared to what is on the sdcard.
Don't panic, this had nothing to do worth the phone being refurbished, it is only a simple file not found error that once you fun that command can easily be solved.
Click to expand...
Click to collapse
it keeps telling me permission denied lol
Type in
"adb shell" then
"ls /sdcard"
Without the quotes exactly as I typed them one at a time and paste the results.
dirkydirk23 said:
i did and its still not working.........i dont understand, let me upload another pic. and i already tried adb mount and fastboot still no luck
Click to expand...
Click to collapse
did you try fastboot boot recovery [dir on your computer]
Do a search for adb shell recovery. It should tell you how to do it. You are going to have to mount the system before doing anything else...and also change the recovery image to something Like recovery.ing as it is easier to type and less likely to be mis-typed
-------------------------------------
Sent via the XDA Tapatalk App

[Q] Why can I not delete my /sdcard/clockworkmod folder?

So I've installed a custom ClockworkMod recovery and ROM on my Nexus 7 tablet. Life was good. Recently, I was running out of space and decided to delete my CWM backup (after saving it to my computer). And then, I realized I couldn't.
I went into ES File Explorer to try. I couldn't do it there.
I went into the ADB shell as root to try to remove it. No luck again, just the message when I finally DID try to remove one file:
Code:
# rm boot.img
rm failed for boot.img, Operation not permitted
What am I doing wrong?
Edit: This looks like it's ClockWorkMod (5.8.??)'s fault, but besides reading that another backup won't make the current one much larger, I don't actually know how to delete the current one.
Try "rm -rf ddd" (where "ddd" is the directory name) on the directory containing the files.
Sent from my Nexus 7
BillGoss said:
Try "rm -rf ddd" (where "ddd" is the directory name) on the directory containing the files.
Sent from my Nexus 7
Click to expand...
Click to collapse
in the development section there is a cwm flashable.zip that will delete them.. Then upgrade to latest cwm or TWRP.. its a bug from older version of cwm.. its talked about in the dev cwm thread..
good luck..
I did this in a way not mentioned here that still deserves mentioning... First I updated to the latest version of CWM available (via the Nexus 7 Toolkit) and then booted into recovery, opened the backup option, deleted the backup that was there, then cleaned the nandroids.
I could not find the aforementioned flashable zip, and because of the new CWM I had, I wanted to attempt a proper method of removal before running another rm command via the terminal. Therefore I could not verify the other methods mentioned here, my apologies.
erica_renee said:
in the development section there is a cwm flashable.zip that will delete them.. Then upgrade to latest cwm or TWRP.. its a bug from older version of cwm.. its talked about in the dev cwm thread..
good luck..
Click to expand...
Click to collapse
primetechv2 said:
I could not find the aforementioned flashable zip, and because of the new CWM I had, I wanted to attempt a proper method of removal before running another rm command via the terminal. Therefore I could not verify the other methods mentioned here, my apologies.
Click to expand...
Click to collapse
Sorry for re-opening an old thread, but I am having a problem where I have files that I cannot delete from the clockworkmods/blobs folder on my external sd card. So far, I have tried deleting them from a file explorer, deleting them as root from a file explorer, root and non-root deletes from terminal emulator, deleting through windows, adb shell deletes (with system booted).
I also wanted to try adb shell while booted into cwm, but I could not get the adb connection to work from recovery.
I also tried to find the zip file in the developer section and that's the real reason why I revived this thread...Does anyone know where the thread is with the zip file to remove these files?
I think the only way to delete them is through cwm.Boot to recovery and use the menu to delete them.
Sent from my SGH-I927 using xda app-developers app
Kodiack99 said:
I think the only way to delete them is through cwm.Boot to recovery and use the menu to delete them.
Sent from my SGH-I927 using xda app-developers app
Click to expand...
Click to collapse
When I booted to recovery, I am able to delete each of the backups that I created. These all deleted correctly. I then went to Free unused backup files (to delete the files/folders in the blobs folder) and ran that and most of the files are gone. When I boot back into the phone, there are still some files/folders there and they seem to be taking up about 4-5 GB on the card. When I try to delete them through the file manager apps (either as root or not) they will not delete and the manager reports an error (before clicking delete, the manager displays a statistics report that says that the size of the files are over 2TB so obviously something is very messed up about them). I have also tried to delete them through the terminal (again as root and regular user) and they will not delete there either and they totally mess up the terminal window with unprintable characters (the only way to recover is to exit out of the current window and start a new one).
I finally fixed this problem last night by backing up all of my stuff (except the clockworkmod folder) to my computer. I then rebooted into recovery (latest version of CWM non-touch) and formatting the ext SD Card. When I rebooted there were still some folders there (including the clockworkmod folder). I did a format from within the OS and that cleared everything out. I copied all of my stuff back from my computer and I'm now good to go. Not sure how it got messed up to begin with, but the problem is fixed now. I think I'm going to stick with TWRP from now on.

[Q] Where are nandroid backups stored on Nexus 4??

I used ROM Manager to 'Backup Current ROM'. It seems like I saved a couple nandroid backups successfully but I can't find where they saved so I can transfer them to my computer. I checked internalstorage/clockworkmod/ but there is no "backup" folder present, only 3 small files called .nomedia, .salted_hash, and .settings.
When I go in ROM Manager and go to "Manager and Restore Backups" I can see three dated backups listed, where are those?
I just want to successfully perform a nandroid backup and move it to my computer. I have tinkered with this device twice and lost data both times because of unsuccessful backups to my computer (totally my fault). Still getting used to Android.
right under the "Backup Current ROM" option in ROM Manager you can see it says mnt/shell/clockwordmod/backup
It's where CWM stores backups, you cannot see the folder from computer. But you can pull it via adb or copy it to sdcard using a root explorer then move to computer
Sent from my Nexus 4 in a Faraday cage
KyraOfFire said:
right under the "Backup Current ROM" option in ROM Manager you can see it says mnt/shell/clockwordmod/backup
It's where CWM stores backups, you cannot see the folder from computer. But you can pull it via adb or copy it to sdcard using a root explorer then move to computer
Sent from my Nexus 4 in a Faraday cage
Click to expand...
Click to collapse
How exactly do I pull via adb?
provided you know how to use adb
adb pull "mnt/shell/emulated/clockwordmod" "C:/CWMbackups"
if you're not familiar with adb, well... go to the general section then read
Sent from my Nexus 4 in a Faraday cage
I'm having the same problem but I'm using TWRP. Is it possible to make TWRP store my backups in /data/media/0/TWRP instead? This is quite a mess to go through just to be able to make a copy of the backup on my PC...
Like the other guy said, just use root Explorer and copy the back ups, then past them in the faux sd card. This is the simplest way to do it. ADB can be challenging for the novice.
[email protected] via Nexus4
Don't know why...but my nandroid backups are in /mnt/shell/emulated/clockworkmod/backup
GretaLewd said:
Don't know why...but my nandroid backups are in /mnt/shell/emulated/clockworkmod/backup
Click to expand...
Click to collapse
Out of interest does anyone know why my backups are put there, I backed up using TWRP and it puts the backups there, but in recovery it looks to the sdcard/twrp folder so doesnt find the backups
same here. i've already browsed everything using file explorer but still cant find my cwm nandroid backup
Hi, i done the adb pull..
Later on if i wish to copy back to phone, do i need
to use adb push ? Thanks.
KyraOfFire said:
right under the "Backup Current ROM" option in ROM Manager you can see it says mnt/shell/clockwordmod/backup
It's where CWM stores backups, you cannot see the folder from computer. But you can pull it via adb or copy it to sdcard using a root explorer then move to computer
Sent from my Nexus 4 in a Faraday cage
Click to expand...
Click to collapse
thanks man
nsg86 said:
Hi, i done the adb pull..
Later on if i wish to copy back to phone, do i need
to use adb push ? Thanks.
Click to expand...
Click to collapse
You should be able to just drag and drop anywhere on the sdcard folder.
On another note why do I have to do an image verification every time I leave a comment?

[Q] Desperate need some help, failure updating 4.4

my nexus 4 was rooted with 4.3 but then i decide to upgrade to 4.4
this is the video i am trying to follow, basically just wipe & install which i did most the time.
youtube title "NEXUS 4: HOW TO MANUALLY UPDATE TO ANDROID 4.4 KITKAT"
it has two files one is mako and one is gapp.
after i did all the wiping in cwm and try to install the mako file, it shows "no file context" or sth similar, and installation is abort (i think there is problem when i transfer the file), but then i continue to install the gapp file (what the hell was i thinking?)
so now i am stuck in the google start up loop, i can only access cwm recovery mode and don't have a valid rom to install in my sdcard.
i tried to adb push another rom to the sdcard with no success (my storage was already very low, any way to remove files in the storage at this point?)
the "mount & storage" also doesn't seem to let me mount the sdcard (but system shows up "unmount").
so now i don't know what to do.
if anything has any idea or suggestion please let us know.
i am quite desperate now with a dead phone and will try anything.
thanks for reading such a long thread.
Dude that vid is old and it installs pa or some other port just flash factory images from google
Sent from my F1 using xda app-developers app
try to sideload a zip with ADB in recovery. no need to copy to your internal storage.
also try to connect with adb shell, then you can delete some files manual with rm.
Frickelpit said:
try to sideload a zip with ADB in recovery. no need to copy to your internal storage.
also try to connect with adb shell, then you can delete some files manual with rm.
Click to expand...
Click to collapse
any step by step guide to do this?
i am still new to this thing even i install a few roms before.
i will google it now, but any additional info is much appreciate.
thanks
Frickelpit said:
try to sideload a zip with ADB in recovery. no need to copy to your internal storage.
also try to connect with adb shell, then you can delete some files manual with rm.
Click to expand...
Click to collapse
frustrated..
i can't seem to get my windows to recogize the device (when i type adb devices, it shows an empty list)
already try trouble shooting this for a long time with no result.
any idea?
telly0050 said:
frustrated..
i can't seem to get my windows to recogize the device (when i type adb devices, it shows an empty list)
already try trouble shooting this for a long time with no result.
any idea?
Click to expand...
Click to collapse
after tons of troubleshooting finally got it back to work.
it ends up the reason is i didn't update to the latest cwm at the very beginning.
and sideloading 4.4 didn't work because of that too, i have to install an old 4.2 to have it working.

Categories

Resources