Cannot copy files in recovery mode which made Google nexus S unusable I have a Google Nexus S, bought last year and it was working fine till last week. It came with Android Ginger Bread, and I rooted the phone and installed several custom ROMs including Cyanogenmod. Recently I installed Android Jelly bean ROM, and it was working fine.

Last week, I wanted to try the Cyanogedmod 10 (on Jelly bean). I went to recovery mode for taking a backup. But I saw a recent backup which was taken before 2 months. I thought that should be fine. I cleared all cache and did a factory reset for getting ready for the new ROM.

Now something went wrong!

I tried to reboot the device, but I could only see the usual animated CROSS logo( with four colours) for ever. I even left the phone for more than a hour. But it is not rebooting. //SO CAN'T RELOAD THE PREVIOUSLY WORKING OS

I tried restoring from the previous backup.. It shows that "installation complete".
After that while rebooting the device just hangs in the same place. //SO CAN'T RESTORE FROM MY PREVIOUS BACKUP

I thought of copying the new rom in the device. I could not succeed. I tried adb command through my SDK.
ADB is not listing my device. In all the forums it is mentioned that to enable the USB debugging from the phone.
I cannot do this, because I cannot go into the device OS other than recovery mode.

I even tried some GUI stuff like Android commander / QtADB but every thing needs USB Enable from the OS Menu.

Finally I tried mounting disk from recovery mode.
Whenever I mount the disk, Windows 7 is fixing the file system errors and bad sectors for a while and shows "no problems were found" and it is ready to use. Here something weird happens. I can copy the files in windows explorer and can see the files in the device thru explorer,

BUT when I unmount and browse from the recovery mode the files are not there. (may be the files are copied in cache) //SO I CAN'T COPY ANY FILE TO THE DEVICE.. ( May be here I am doing something silly. )

My phone is now unusable!

Any advice/tips is highly appreciated!

Cheers Kum
Prerequesites:


unlocked phone ('fastboot oem unlock' command)
installed Android SDK with accessible adb and fastboot executables (both are part of the SDK)
Cyanogenmod 7/9 or 10 image from get.cm (or whatever ROM you want)
Nexus S CWM recovery image from clockworkmod.com


Steps:


Flash the CWM recovery image:
Switch off your Nexus S, press volume up &amp; power to enter fastboot mode
Command to flash: fastboot flash recovery recovery-clockwork-6.0.1.0-crespo.img
Boot to recovery (e.g. via fastboot boot recovery-clockwork-6.0.1.0-crespo.img)
Enter a shell into the running CWM: adb shell, from there mount a tmpfs file system (used just for the update): mount -t tmpfs none /sdcard (This circumvents the sdcard completely, you don't need to format anything)
Push the ROM image to the tmpfs (adb push cm-10-20120827-NIGHTLY-crespo.zip /sdcard/)
Install this via CWM (the regular way)
Follow the remaining usual steps (GApps, wipe, etc.)