yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Nexus] P4p3r1n0:
Am I the only one who tries to do "mount USB storage" and get this error:

ClockworkMod Recovery v5.5.0.2

E:Unable to open ums lunfile (no such file or directory)
[Samsung Galaxy Nexus] inffy:
yeah not the only one. Although you can't use that on GNexus because it doesn't support usb mass storage.
[Samsung Galaxy Nexus] P4p3r1n0:
cool .. thank u for answering (:
[Samsung Galaxy Nexus] Pondera:
When i boot to recovery everthing is fine. Everything works. But when i enter advanved. To wipe dalvik cache, no menu comes. I press power again and it goes to main menu. But then the other menus don't work either. I have to remove the battery. Any ideas. Should i reinstall or something?

Nevermind i found it. In the settings there is an option to enable advanced. If someone makes the same mistake, read here.. :o
[Samsung Galaxy Nexus] matt2053:
So does this mean there is NO WAY to transfer files to a GNex that won't boot? That's kinda ****ty. Is there any workaround?

For example right now I can't boot, I get bootloops. But it turns out I flashed a bad build of a ROM. A good build is ready now, but I can't get it onto my phone to flash it in recovery....

EDIT: Nevermind, I guess ADB should work while in Recovery.... derp.

EDIT 2: Ooops, I spoke too soon, ADB doesn't work when you're in recovery....
[Samsung Galaxy Nexus] prank1:
I got my galaxy nexus a few hours ago and I couldn't get the USB mass storage to work like you said (since there is no SD card), so what I did was keep the phone in CWM, then hook it up to my pc and use ADB to push the [rom_name].zip to the /data/media folder.

adb push [rom_name].zip /data/media

Then wait a couple of minutes and it should copy just fine. You can then immediatly 'install from zip' and you will see the rom you just copied.
[Samsung Galaxy Nexus] matt2053:
When I am in recovery, ADB fails to find my device.
[Samsung Galaxy Nexus] efrant:
Sounds like a driver issue.
[Samsung Galaxy Nexus] :
I was having a few issues with my phone. Primarily boot loops with AOKP b23 and franco #17.2 kernel. So I went into clockwork recovery as per usual, flashed a backup i had made a few months back.

However when it booted up, it was not the backup I had made, and was in fact a stock version of android. I know this as it even prompted me with the option to upgrade android over the air. Something I believe an unlocked phone will not do.

I went to go back into CWM again to try another backup and CWM had gone. Replaced with stock recovery. Wtf happened?

Apologies if this is an issue which has been discussed in this thread already. Would appreciate a technical opinion of what happened.
[Samsung Galaxy Nexus] :
Also turns out my phone has unrooted itself too... wha-da-hell?
[Samsung Galaxy Nexus] 5noc:
Stock ICS has some way to restore the recovery every time you reboot your phone so if you restored a backup of the original ICS that came with your phone the auto-restore recovery kicked in and overwrote CWM. You can avoid that by changing the name of the auto-restore recovery file, I did that myself with the Galaxy Nexus Toolkit posted here http://xdaforums.com/showthread.php?t=1392310

1 button and it unlocks the bootloader, roots the phone, installs CWM AND changes the name to the auto-restore recovery file :)

Same as before :p
[Samsung Galaxy Nexus] sk3201:
How exactly does stock recovery look like?
[Samsung Galaxy Nexus] 5noc:
It's a little android with the yellow ! symbol, no text, no options. You can do nothing there.
[Samsung Galaxy Nexus] sk3201:
Ohh. Thanks. Asked because I sent my gnexus to samsung. And I wasn't sure about the recovery. Fortunately it was back stock.:D
[Samsung Galaxy Nexus] efrant:
Unlocked or locked has NOTHING to do with being able to receive/install OTA updates.

Every OTA update removes root access and adds two files to your ROM to re-flash the stock recovery on EVERY boot. These two files are not included in the stock ROM, only in OTA updates.

Every OTA update removes root access and adds two files to your ROM to re-flash the stock recovery on EVERY boot.

The two two files are:

/system/recovery-from-boot.p

/system/etc/install-recovery.sh

Again, these files are a result of doing an OTA update. They are not included in a stock ROM image.

You CAN do something from the stock recovery. By pressing the volume up and power buttons, it will take you to the stock recovery menu...
[Samsung Galaxy Nexus] mskip:
Not true at all. From the Stock Recovery screen you need to Hold the power button and then press volume up to display the stock recovery menu. From the stock recovery menu you can perform a factory reset, wipe the cache partition and apply an update from /cache :)

Mark.

EDIT: oops didnt see someone had already said that lol.
[Samsung Galaxy Nexus] alienmonkey:
Apologies if this has been addressed, however I was unable to find an answer through search. I've tried performing a restore with Clockwork 5.5.02 and will start the restore process fine, however when restoring the Data file, clockwork churns away for a significant amount of time, however it will fail a good way through. I've tried just restoring data only and MD5 check passes, but it always fails. I've attempted this with two seperate backups days apart.

I know previous android phones were limited to a 2GB partition for apps, however it's my understanding with the SGN this is not the case. I raise this question as my compressed data file is 3.4GB, bigger than what the partition size would be for other phones, and I believe it's not restoring because it is simply too large and possibly clockwork fails because it's crossed the 2GB threshold. I've attempted contacting the developer through the RomManager market app, however a couple days have passed without a response.

Anyone know if there is a size limitation with respect to Data restore in Clockwork?
[Samsung Galaxy Nexus] phone_user:
flashable zip in CWM

http://download.clockworkmod.com/recoveries/
[Samsung Galaxy Nexus] SnowmanAndy:
Can someone answer the following for me. I've tried searching and read through hundreds of posts and can't seem to find the answers.

I have used CWM to unlock the boot loader, root and install 4.04 to my GNex.

I would like to flash cwm into my recovery partition to replace standard recovery and start using some custom ROMs.

I have run a backup using cwm whilst rooted, this has produced the following files:

boot.img

cache.ext4.tar

data.ext4.tar

recovery.img

system.ext4.tar

nandroid.md5

Obviously the ultimate aim is to, at any point, be able to go back to my phone the way it is at the moment.

Now, I know that if I want to go back to the standard recovery, I can flash recovery.img over CWM, but what if I wanted to restore my phone to the current ROM I have just backed up.

How would I go about it without using restore option on CWM? I.E. Is there a way of pushing the ROM i just backed up to my phone using fastboot or adb, and what files (from the backup above) would I use, as there is no obvious .zip file.

I know there are apps that you can use etc, like restore on CWM, but I like to know how to do everything at the core level. Sorry. :)

Maybe I just need to understand what all the files\folders above that the backup created actually are.
[Samsung Galaxy Nexus] josteink:
It sounds like you want the ability to restore to whatever you are running now without having to run "custom" or with a "custom" recovery.

Good for you that you run a Nexus. You can do that. Your phone can boot anything you want, on demand, without the need for flashing it.

"It" in this context can be a hello kittty bootloader playing the theme song from Dragon ball Z. Or it can be CWM.

Basically the Galaxy Nexus can be 100% fully stock, but as long as you have unlocked the bootloader, you can at any time boot CWM when you need to, without altering anything else on your phone.

You do that by entering the following in a command window

fastboot boot recovery.img

Susbstitute recovery.img with the name of your fastboot CWM image. Voila.
[Samsung Galaxy Nexus] beekay201:
rooting with method described in OP, with current su/Superuser.apk is not working with 4.0.4.

Edit: i should have stated that jsut Superuser.apk is not working. su through adb shell works fine. I'll checkout those tomorrow.
[Samsung Galaxy Nexus] efrant:
This su package works.
[Samsung Galaxy Nexus] hmanxx:
restore stock recovery

HI,

I have a happy problem..After installing CWM 5.0.0.6 from Google Play store/market. My galaxy Nexus now permanently stayed with CWM Recovery.

I did a check on /system directory..i couldnt find the stock

install-recovery.sh script and the recovery-from-boot.p files.

Is it CWM now auto delete the 2 stock recovery files ?

I am running Android Yakyu,4.0.4 on my phone

How can I recover the stock recovery ?

Can I flash in the recovery.img extracted from 4.0.4 full ROM package and use the following command to recover the stock recovery

[ fastboot flash recovery recovery.img]

After flashing in the stock recovery.img ,the 2 files will be restored ?

Alternatively,

If I manually put the 2 files.recovery-from-boot.p and install-recovery.sh into /system ,will that work ?
[Samsung Galaxy Nexus] scary alien:
I've seen this too. It was usually when I flashed my phone back to stock using the factory images--there are no recovery-from-boot.p files in the factory image--they seem to get installed from OTAs.

I don't know if ROM Manager does this automatically (I'm pretty sure CWM does not)...I'll test this later tonight (I'm planning on flashing back to stock 4.0.1 for some other testing).

edit: just tested this: ROM Manager does not auto-delete /system/recovery-from-boot.p and neither does CWM when flashed from ROM Manager.

That way will indeed work just fine :).

You can also flash your stock recovery via a new app I've created. Check the last entry in my signature for this. I released v1.1 with the stock 4.0.4 GSM/HSPA+ recovery supported this morning.

No.

I would imagine so--but you'd have to make sure the install-recovery.sh and recovery-from-boot.p file match the version of Android that you are running. I believe the recovery-from-boot.p file is a patch file and would need to match the recovery.img that's compiled into Android.
[Samsung Galaxy Nexus] hmanxx:
Thanks for the prompt reply, yes I was running 4.0.4 from flashing official full rom into my phone.

What I want is to have stock recovery so that if there was OTA coming, I can use stock recovery without error due to non stock recovery.

Yesterday I flash back stock recovery, phone can boot into stock recovery but I still couldn't find the 2 files that I mentioned hopefully the next ota or manual flashing of official update with not give me problem.

Phone is working fine, just trying to find escape path that doesn't need full wipe
[Samsung Galaxy Nexus] scary alien:
I don't think the absence of the install-recovery.sh and the recovery-from-boot.p files would keep a future OTA from installing. In fact, they are not present in the stock 4.0.1 files and the 4.0.2 OTA comes in and applies just fine.

So, I wouldn't worry too much about their absence ;) :).

Cheers!
[Samsung Galaxy Nexus] efrant:
Exactly. Those files make no difference. You will still be able to install the OTA when you get it.
[Samsung Galaxy Nexus] riggnix:
Thanks for the guide!

one thing though, please write a note for step 4: unlocking the bootloader will wipe your phone. just wiped my phone ;)
[Samsung Galaxy Nexus] tishfire:
Something is really wrong here or am I missing something.

5502 and 5802 both can do a backup and the backup is save in "sdcard" But in CWR you cannot mount sdcard to pc?! Then how does fastboot even get pass?
[Samsung Galaxy Nexus] efrant:
You are missing something.

The onboard memory of a Galaxy Nexus (which includes the /sdcard folder) CANNOT be mounted, as the GN does not support USB mass storage mode. You can use the adb pull command to get files off your device, or do it wirelessly with dropbox or something similar.

I don't understand what you are trying to say.
[Samsung Galaxy Nexus] tishfire:
Nmind, I'm using adb as you have suggested. thanks
[Samsung Galaxy Nexus] s0larus:
How would you use adb pull if the device is in recovery mode? I hate how the GN can't do mass storage mode :C

After stupidly getting stuck in a boot animation loop, I couldn't flash the "undo.zip" so I had to restore from an older version just to get the zip onto the phone (which ultimately didn't work because they were incompatible mods).

I wish there was an easy way to access the storage while in recovery or put it as mass storage
[Samsung Galaxy Nexus] efrant:
Just boot into recovery. You can access the sdcard by using adb push or adb pull. For example, to get a file called booger.jpg of your device, it would be: adb pull /sdcard/booger.jpg. Obviously this assumes that you have the drivers for your GN set up properly on your computer.
[Samsung Galaxy Nexus] SnowmanAndy:
Sorry, I don't think my post was very clear, let me try again.

FYI. I'm now running CWM as my recovery, which is what I want, and I know that I can get standard recovery back etc by using something like

(where recovery.img is the img for the standard recovery, or indeed, any recovery I would like to flash to the phone.)

My question was actually more in relation to the nandroid backups that I have taken.

So, I have a nandroid backup of my phone, just after rooting and unlocking and before any tweaks - call it "backup1".

I now go and put another ROM on the phone and tweak away to my hearts content, making backups every now and again.

If I then want to go back to "backup1", I could go into CWM and do a restore from the options on there and restore to "backup1".

1) At this stage I assume CWM will restore everything, so the phone is the same as it was when I took "backup1" including back to the stock recovery, stock ROM, stock radio etc - Is this correct?

As I said above, I do realise I can restore stock recovery etc in other ways, this is just a curiosity.

2) This is my main question - Is there a way to restore to a nandriod backup WITHOUT using CWM, ie, is there a fastboot command, or number of, that I could use, to restore to my "backup1" state from the files generated by the nandriod backup without using CWM?

Does that make sense?
[Samsung Galaxy Nexus] efrant:
No. CWM will restore the boot image (kernel & ramdisk) and the system and data partitions. It will also restore the recovery image that you had flashed at the time -- so if you had CWM flashed, it will restore that. If you just booted CWM, with the stock recovery flashed, it will restore the stock recovery. CWM does NOT backup/restore anything else, including radios, bootloader, etc.

Nandroid is just a script that performs a series of commands, so you could run it in ADB (not fastboot), but I believe that it relies on some libraries that are found in CWM, so you need to be booted into CWM (although I am not entirely certain -- I've never looked into it).
[Samsung Galaxy Nexus] SnowmanAndy:
Thats pretty much what I thought, when I did my first nandroid backup, I had just booted CWM at that point, so this is my kind of "fall-back" backup.

The important thing is it means I can install AOKP or similar but will always be able to go back to this back up should I decide that I preferred stock! :)

Thanks for the info! Might have a bit more of a look into this, but then it doesn't really matter as I'll always have CWM to hand anyway. Just useful to know.
[Samsung Galaxy Nexus] Wolfglance:
Hello,

a quick question regarding CWM :

Flashing the CWM image using the following command :

fastboot flash recovery recovery-clockwork-5.5.0.2-maguro.img

will install it permanently on the phone even if it is stock and NOT Rooted ?

Thank you in advance,
[Samsung Galaxy Nexus] efrant:
Assuming your bootloader is unlocked, yes.

Keep in mind though: if you've ever updated your stock ROM with an OTA update (either manually or OTA), the update adds two files to your stock ROM that re-flash the stock recovery on every reboot. So in this case, the next time you reboot, CWM will be replaced by the stock recovery. If you do not want this to happen, you must delete these two files:

/system/recovery-from-boot.p

/system/etc/install-recovery.sh
[Samsung Galaxy Nexus] Wolfglance:
Thanks efrant for the quick reply (as always) :)

For me to delete these 2 files mentioned above, should my phone be rooted ?...
[Samsung Galaxy Nexus] efrant:
Either that, or boot into CWM. Keep in mind that you have to mount /system as r/w to do so.
[Samsung Galaxy Nexus] eddie_gordo:
Hi there guys... I've been trying to look for this info everywhere but I can't seem to find the correct answer. What exactly does the "wipe data/factory reset" option do? Does it wipe everything in the phone, including the /sdcard folder? If so, when performing a nandroid backup, I have to pull it from the device to my PC to back it up? As well as all my photos, music, etc?

My last device was an HTC Desire, I was pretty comfortable with the wiping, restoring, backing up, flashing, etc.... But the Galaxy Nexus doesn't have a physical SD Card so I get a little confused on what's the behaviour with the wiping process.

I would really like some clarification here.. :)

Thanks in advance and sorry if this is a dumb question. :P
[Samsung Galaxy Nexus] zipredictive:
It doesnt delete the content of the" sd"

It works the same way as other phones. but I suggest you to copy paste what u ha ve on it Pictures files etc on ur PC. Titanium backup is a must have to save apps and data too.

This is what I usually do:

backup with cwm

backup app and data with titanium

Copy the content of sd on my PC

Wipe with cwm

Flash the rom

Restore apps

Inviato dal mio Galaxy Nexus usando Tapatalk
[Samsung Galaxy Nexus] eddie_gordo:
Thanks a lot for the prompt answer! :) I use MyBackup Pro instead of Titanium Backup since the old days with the Desire, but I get the picture. :D

Best regards.
[Samsung Galaxy Nexus] Wolfglance:
Hello efrant,

can you direct me to a step by step on how to delete / rename files once I am booted into CWM - and how to mount / system as r/w from within CWM.

Thank you in advance,

p.s - the phone is not rooted
[Samsung Galaxy Nexus] jackpham:
I flashed the recovery with rom manager and I can't find the file in /system folder is it normal, what did I miss?
[Samsung Galaxy Nexus] efrant:
Mounting /system as r/w on a GN: mount -o remount,rw -t ext4 /dev/block/mmcblk0p1 /system

Mounting /system as r/o on a GN: mount -o remount,ro -t ext4 /dev/block/mmcblk0p1 /system

Deleting a file: rm /path-to-file

Copying/renaming a file: cat /path-to-original-file > /path-to-copy-file

---------- Post added at 09:19 PM ---------- Previous post was at 09:16 PM ----------

What file can't you find??
[Samsung Galaxy Nexus] vil-2:
I installed this CWM but it doesn't work. When I push Power button to boot into CWM, all I have is a bugdroid with a red "!". Any idea?
[Samsung Galaxy Nexus] efrant:
The Android with the red "!" is the stock recovery.

If you have ever applied an update, or received one OTA, there is something else you have to do BEFORE you flash CWM.

What happens is that any OTA update file places two files (which are not there on a non-updated stock ROM) that re-flash the stock recovery on EVERY reboot. So if you flash CWM without deleting those two files, the stock recovery will magically over-write CWM the next time you boot. So, in order for CWM to "stick", you need to delete them (using Root Explorer or any file manager with root access). The files are:

/system/recovery-from-boot.p

/system/etc/install-recovery.sh
[Samsung Galaxy Nexus] vil-2:
Great, thank you!
[Samsung Galaxy Nexus] beekay201:
// offtopic

@efrant, you had awnsered that same question like 5 posts behind...

i feel :(

Sent from my TF201
[Samsung Galaxy Nexus] hyperx136:
@efrant I tried to do as you said but because the clockworkmod doesn't stick when i flash it in the first place, therefore i don't know how to root the phone since i can't install superuser through clockworkmod. So without root, root explorer app can't delete those two files for clockworkmod to stick. What can i do?
[Samsung Galaxy Nexus] Mikey:
You can use the awesome all-in-one app that is stickied.

http://xdaforums.com/showthread.php?t=1392310

You do have an option to flash either recovery image
[Samsung Galaxy Nexus] efrant:
Your bootloader is unlocked, right? Just reboot into fastboot mode (vol+ & vol- and power) connect to PC, open a cmd prompt in the same directory as fastboot.exe, download the CWM image into that same directory, rename it to cwm.img and type: fastboot boot cwm.img

This will boot CWM, now flash the su.zip to root your device. Then you can use root explorer to delete those two files if you want, and reflash cwm.img
[Samsung Galaxy Nexus] shibumi:
Totally Lost - trying to fix a boot loop

Just got my NP GSM 16Gb from the Google site. Powered it up, played with it a few minutes, then did the suggested system update. The update downloaded, installed, and then did some optimize apps thing. I was able to use it for about 5 min after a successful boot, but then the device froze up. After pulling the battery, I'm stuck in a boot loop. It's the same problem this guy is having http://youtu.be/OrrGNMtU8Lc

I tried going into the boot loader but the screen still says downloading. I cannot select another mode.

I downloaded this tool here and tried following the instructions, but I cannot enter debugging mode on the phone. I was able to get it to fast boot when the device and selecting recovery mode, but got a red x on the face down android guy.

Can this tool help me out of this jam? What am I doing wrong here? I tried searching for answers, but didn't find any before my 2-year old needed me to drop my search. Any help is really appreciated, and I'll have to just send the phone back in if I can't get this done in less than 20 min. If this tool can get me going again, I'll gladly donate. If this isn't the right place for me to get it working, does anyone know the thread that addresses this issue.
[Samsung Galaxy Nexus] Unlawful:
Well, you could just restore it to stock IMM76I using this image (it's direct from Google and I assume that you have the takju build which has Google Wallet pre-installed), all you'll need to have is fastboot, literally. You don't really need CWM unless you intend to flash another ROM/kernel or install something that requires a custom recovery.

Note that this will only work if you can go into bootloader mode (hold down both volume down & volume up and then turn it on).

EDIT: First thing you'll need to do is 'fastboot oem unlock' before flashing the stock images. If you don't have fastboot, see the attached .zip and if your Galaxy Nexus isn't recognised by fastboot (after 'fastboot devices' whilst your phone is connected and in bootloader mode) install drivers here.

OR if you'd rather not do it manually, you COULD use the tool here. Instructions should already be in that thread (make sure you unlock the bootloader first).
[Samsung Galaxy Nexus] shibumi:
Thanks for your reply. I'm just trying to get this back to stock and working again. Well I downloaded IMM76I and I'm trying to follow the instructions on Nexus Toolkit thread, but that isn't working either. I can't get the phone to be recognized to flash the image. I guess I'll try reading that thread and posting any issues there.
[Samsung Galaxy Nexus] efrant:
http://xdaforums.com/showpost.php?p=21113773&postcount=195
[Samsung Galaxy Nexus] uoY_redruM:
Is there a touch variant to this? I saw the option in the Galaxy Utility but when I flashed it, booting to recovery took me to stock recovery. Flashing the standard CWM worked though...
[Samsung Galaxy Nexus] sean1984:
go here clockworkmod.com/rommanager 5.8.0.2 is touch version :D
[Samsung Galaxy Nexus] white^rabbit:
here where? :-D Thanks

http://download.clockworkmod.com/recoveries/recovery-clockwork-touch-5.8.0.2-maguro.img
[Samsung Galaxy Nexus] white^rabbit:
How to switch off the smartphone from recovery without reboot it? :confused: