How can I put a zip in internal memory through fastboot? - Samsung Galaxy Nexus

I recently had to revert back to stock so my internal memory was wiped. I wiped everything in CWR in preparation for a ROM, but I forgot to add that ROM back to the memory. How do I place a zip through fastboot to the internal memory?
Thank you!

brkshr said:
I recently had to revert back to stock so my internal memory was wiped. I wiped everything in CWR in preparation for a ROM, but I forgot to add that ROM back to the memory. How do I place a zip through fastboot to the internal memory?
Thank you!
Click to expand...
Click to collapse
Go to recovery, mounts and storage, mount USB storage and it will show in your computer.
Drag and drop.

nodstuff said:
Go to recovery, mounts and storage, mount USB storage and it will show in your computer.
Drag and drop.
Click to expand...
Click to collapse
I don't have that option in CWR. I'm using the touch version.

brkshr said:
I don't have that option in CWR. Should I use stock recovery?
Click to expand...
Click to collapse
You don't have mounts and storage option in cwm?
Or you don't have mount USB storage?
I just checked and I have it.
If you can't mount the storage then chances are you will have to flash stock images via fastboot.

Do you have the Android SDK package? If so you can adb push it to your sdcard.
Could also try Droid Explorer, QTadb, et al, although I've never used those particular programs.

nodstuff said:
You don't have mounts and storage option in cwm?
Or you don't have mount USB storage?
I just checked and I have it.
If you can't mount the storage then chances are you will have to flash stock images via fastboot.
Click to expand...
Click to collapse
I don't have mount usb storage... I'll just go back to stock. Thank you!

mudferret said:
Do you have the Android SDK package? If so you can adb push it to your sdcard.
Could also try Droid Explorer, QTadb, et al, although I've never used those particular programs.
Click to expand...
Click to collapse
Will adb work in bootloader??

mudferret said:
Do you have the Android SDK package? If so you can adb push it to your sdcard.
Could also try Droid Explorer, QTadb, et al, although I've never used those particular programs.
Click to expand...
Click to collapse
I do have the SDK package installed, but I'm not really familiar with how to use it, other than fastbooting images.

nodstuff said:
Will adb work in bootloader??
Click to expand...
Click to collapse
I've done it with the phone in CWM recovery a few times.

brkshr said:
I don't have mount usb storage... I'll just go back to stock. Thank you!
Click to expand...
Click to collapse
you should have it..try with volume down to see it (even if u are on the touch version)
EDIT: it seems removed since it doesn't work with the GN..the gn only work with the MTP and not with the usb mass storage..the same for the non-touch cwm, even if the option is there, it does not work

mudferret said:
I've done it with the phone in CWM recovery a few times.
Click to expand...
Click to collapse
Damn!! Why the hell didn't I know this!!!!
All you need to do is adb/push/sdcard/
I think that's right anyway

brkshr said:
I do have the SDK package installed, but I'm not really familiar with how to use it, other than fastbooting images.
Click to expand...
Click to collapse
It's fairly straight forward.
Easiest to place the ROM in the platform-tools folder, that way you don't have to type or copy/paste a long convoluted file path.
Open command prompt within platform-tools and type (don't type quotes):
"adb devices" (this will tell you if it's seeing your phone, not a necessary step)
"adb push ROMFileName.zip /sdcard/" (don't forget the file extension .zip)
It won't work if there happen to be spaces in the file name, so edit the name before hand if necessary.
Useful link: http://forum.xda-developers.com/showthread.php?t=1058431

andQlimax said:
you should have it..try with volume down to see it (even if u are on the touch version)
Click to expand...
Click to collapse
IDK, I'm on touch 5.8.0.2. I could try the non touch version. I've looked everywhere for mount usb

^^^^ what he said!

nodstuff said:
Damn!! Why the hell didn't I know this!!!!
All you need to do is adb/push/sdcard/
I think that's right anyway
Click to expand...
Click to collapse
I had to become familiar with adb when running the SGS2 on CM9, kernel sources weren't out so MTP was broken, and adb was the easiest option for me.

mudferret said:
It's fairly straight forward.
Easiest to place the ROM in the platform-tools folder, that way you don't have to type or copy/paste a long convoluted file path.
Open command prompt within platform-tools and type (don't type quotes):
"adb devices" (this will tell you if it's seeing your phone, not a necessary step)
"adb push ROMFileName.zip /sdcard/" (don't forget the file extension .zip)
It won't work if there happen to be spaces in the file name, so edit the name before hand if necessary.
Useful link: http://forum.xda-developers.com/showthread.php?t=1058431
Click to expand...
Click to collapse
Somehow my drivers must have messed up in the last hour. I'm not showing any devices

mudferret said:
I had to become familiar with adb when running the SGS2 on CM9, kernel sources weren't out so MTP was broken, and adb was the easiest option for me.
Click to expand...
Click to collapse
I haven't used it since I had my Sony Ericsson x8, got the nexus S after that and just used fastboot after that to flash cwm and that to flash a rooted rom so I never really needed it!
Time to brush up on my adb skills I think!

updating adb drivers now

Ugh, disregard, perhaps I was smoking crack, or I have different drivers on my home PC. No luck from my work PC at the moment.
Edit: you have to mount /data, but if you're not seeing mounts and storage that's an issue. I'm confused as to why they're not there.

Not having mounts and storage in cwm is quite strange.
If adb won't recognise the device then maybe try fastboot flash another recovery and see if it has mounts and storage.

Related

[Q] Cannot format virtual SD card

I am trying to wipe my virtual SD card on my LTE Galaxy Nexus and it is acting weird.
If I do a factory reset via the settings on the phone, it says it erases all of the files on the SD card. When I hook the phone up to my computer and view the files in explorer, it shows a stock directory structure and root. However, if I try and copy over a file that existed on the SD card before formatting, it says the file is already there and asks me if I want to replace it. If I view the SD card in root explorer, it shows all of the old folders and files, even though they dont show up in windows explorer. Also, if I boot into Clockwork and choose a .zip to flash, it shows all of the old folders and files as well.
I have tried using the super wipe lite script that comes with Android revolution. I have also factory reset the phone a few times via the settings. I previously had Android Revolution installed and I am currently running GummyNex 0.4.2.
No matter what I do, I cannot for the life of me get the SD card to truly reformat.
Am I doing something wrong? Is there an ADB command I can do to reformat it?
oRAirwolf said:
I am trying to wipe my virtual SD card on my LTE Galaxy Nexus and it is acting weird.
If I do a factory reset via the settings on the phone, it says it erases all of the files on the SD card. When I hook the phone up to my computer and view the files in explorer, it shows a stock directory structure and root. However, if I try and copy over a file that existed on the SD card before formatting, it says the file is already there and asks me if I want to replace it. If I view the SD card in root explorer, it shows all of the old folders and files, even though they dont show up in windows explorer. Also, if I boot into Clockwork and choose a .zip to flash, it shows all of the old folders and files as well.
I have tried using the super wipe lite script that comes with Android revolution. I have also factory reset the phone a few times via the settings. I previously had Android Revolution installed and I am currently running GummyNex 0.4.2.
No matter what I do, I cannot for the life of me get the SD card to truly reformat.
Am I doing something wrong? Is there an ADB command I can do to reformat it?
Click to expand...
Click to collapse
Try formatting with cwm recovery. Reboot into recovery, go to mounts and storage, and select format sdcard
Sent from my Galaxy Nexus using xda premium
There is not an option in CWM to format the SD card
oRAirwolf said:
There is not an option in CWM to format the SD card
Click to expand...
Click to collapse
Sorry, I meant format system
Sent from my Galaxy Nexus using xda premium
http://forum.xda-developers.com/showthread.php?p=20999408#post20999408
There isn't any "SD Card" partition.
EDIT: Format /data cannot be done in adb, if you really want to do so just make a CWMR flashable zip with
Code:
format("ext4", "EMMC", "/dev/block/platform/omap/omap_hsmmc.0/by-name/userdata", "0");
in the updater-script.
I'm sorry man, I really appreciate the help but my Google-fu has failed me. Is there a template or something I can create the script from?
bumping this... same issue and its driving me crazy. i can't see any of my files unless i use a file explorer (or if i'm in recovery)
mendy817 said:
bumping this... same issue and its driving me crazy. i can't see any of my files unless i use a file explorer (or if i'm in recovery)
Click to expand...
Click to collapse
If you are having an issue finding your files from your PC it's due to the way Android exposes your "internal sdcard" via MTP. Download an app from the Market called SDrescan which will force the media services on your phone to re-index your files on the phone. Then they will show up on your PC.
thanks, but i've already tried that. it just sits on "scanning" for literally hours (i left it up overnight once just to make sure). any other advice?
oRAirwolf said:
I'm sorry man, I really appreciate the help but my Google-fu has failed me. Is there a template or something I can create the script from?
Click to expand...
Click to collapse
I do not recommend doing this indeed. To be failsafe just delete everything in the /sdcard folder with an explorer app.
I use
fastboot /w
To do a full wipe. This will wipe /sdcard.
Sent from my Galaxy Nexus using XDA App
mendy817 said:
thanks, but i've already tried that. it just sits on "scanning" for literally hours (i left it up overnight once just to make sure). any other advice?
Click to expand...
Click to collapse
Are you on a ROM and/or modified kernel? If you are using Franco's kernel he has made modifications to how the "sdcard" works.
silow said:
Are you on a ROM and/or modified kernel? If you are using Franco's kernel he has made modifications to how the "sdcard" works.
Click to expand...
Click to collapse
yeah, i'm on the latest CND and using franco's latest too... but i've flashed other kernals and had the same problem (but are you saying this might have started the first time i flashed a franco kernal?)
anyway to fix it that you know of?

[Q] usb sorage dosen't work in CWM? Can i push files to sd cards?

Hi!
My problem is that i flashed a mod and my phone went crazy, so i booted back to cwm.
But i can't use "mount USB storage". Is says "unable to open ums lunfile ( no such file or directory). Got cwm 5.5.0.2, So how can i send files to my phone?
P.S I forgot to make a backup so i can't restore :/ and i can't boot into cwm from the phone. I must connect it to my pc and open Galaxy Nexus ToolKit and launch it from there?
You can't mount USB storage in cwm because the phone does not support USB mass storage. You can push files in cwm using ADB.
Sent from my Galaxy Nexus using xda premium
joshnichols189 said:
You can't mount USB storage in cwm because the phone does not support USB mass storage. You can push files in cwm using ADB.
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Okay but how do i push files from adb?
tried this but dosen't work?
C:\Program Files (x86)\Android\android-sdk\platform-tools>adb push C:\Galaxy Nex
us ToolKit\put_files_to_push_here/build21.zip /mnt/sdcard/Roms/
Just give me a list of commands
And if i try adb device, then i can see that my device is connected
jullejul said:
Okay but how do i push files from adb?
tried this but dosen't work?
C:\Program Files (x86)\Android\android-sdk\platform-tools>adb push C:\Galaxy Nex
us ToolKit\put_files_to_push_here/build21.zip /mnt/sdcard/Roms/
Just give me a list of commands
And if i try adb device, then i can see that my device is connected
Click to expand...
Click to collapse
Got it to work Thanks!
Sorry had baseball practice but glad you got it working
Sent from my Galaxy Nexus using xda premium
I need of serious help
Okay so i have CWM and i had backups or so i thought i did. I was using cyanogenmod 9 then tried out AOKP well didnt care for it so i was going to access my last backup and after wiping everything on my Galaxy Nexus i went into recovery mode and tried to install my back up. When i did that it said nothing was found SOOOOO now i have nothing and im stuck in recovery mode. I tried to "mount USB storage" so i can put a ZIP on there but i get the well know message of "Unable to open ums lunfile (no such file or directory)" Does anyone know of how i can get into my phones SDcard on my mac so i can put a ROM on there to flash. Yes i knew so if you start saying MTP and ADP i do not know what that means im sorry. PLEASE HELP!
Do you have ADB set up?
If so you can ADB push a rom.zip to your SD card and flash it.
Edit:
Actually...just flash any available ROM.
Even one you didn't like.
At least then you can boot up and access your SD card.
See thats the thing i thought i could do from my back ups so i didnt put any new ROM on there. And adb i do not know how to do that at all so im assuming no i dont

Help i need to push a Rom under TWRP

Hi guys,
i made quiet a mistake, i cancelled all contents of my SD card under TWRP, wiped system and i'm now left with no rom on the phone nor on the SD card.How can i make my laptop see my sd card under TWRP in order to tranfer a rom and install it ?
seems when i press on Mount sd card nothing happens..
thanks
biggg troubles
you need to use adb.
mounting the sdcard does nothing on the nexus as there is no mass storage
Zepius said:
you need to use adb.
mounting the sdcard does nothing on the nexus as there is no mass storage
Click to expand...
Click to collapse
mate how do you actually do this ? i've never tried it
i'm doing some search on the forums but seems confusing for me
http://forum.xda-developers.com/showthread.php?t=1812959
Zepius said:
http://forum.xda-developers.com/showthread.php?t=1812959
Click to expand...
Click to collapse
i have to install SDK in order to do this ? cause it's 400mb pack and my internet connection is soooo slow
wwwpuntoit said:
i have to install SDK in order to do this ? cause it's 400mb pack and my internet connection is soooo slow
Click to expand...
Click to collapse
ok people.
i solved this way
put every file i needed in usb stick, used usb on go cable and installed rom from usb stick
thanks for helping anyway
cheeers
wwwpuntoit said:
i have to install SDK in order to do this ? cause it's 400mb pack and my internet connection is soooo slow
Click to expand...
Click to collapse
wwwpuntoit said:
ok people.
i solved this way
put every file i needed in usb stick, used usb on go cable and installed rom from usb stick
thanks for helping anyway
cheeers
Click to expand...
Click to collapse
You really need to READ. Use a translator if you can't.
from the thread Zepius linked you:
What is the Android SDK and do I need it?
SDK stands for "software development kit. Do you need it? If you are developing, then yes (but then you probably would be reading this thread now would you... ). If you are not developing, then no, you do NOT need to install it. It is just a waste of space. The only files you need (to interface with your PC) that comes from the SDK are the fastboot and adb files, and they can be found here for Windows, Linux, and MacOS.
Click to expand...
Click to collapse

why doesn't my kindle 10.x.x show up as as drive when I plug it into ubuntu 12.04

The older kindle 6.x.x shows up as a drive and it is easy for me to move files graphically/via the GUI. I'm having trouble doing it with this version. I just rooted it if it matters. Is there a solution?
hortstu said:
The older kindle 6.x.x shows up as a drive and it is easy for me to move files graphically/via the GUI. I'm having trouble doing it with this version. I just rooted it if it matters. Is there a solution?
Click to expand...
Click to collapse
I assume the old kindle mounts as usb mass storage. The new kindles mount as mtp. You must manually mount the mtp drive in ubuntu. Windows should automatically mount mtp.
fmkilo said:
I assume the old kindle mounts as usb mass storage. The new kindles mount as mtp. You must manually mount the mtp drive in ubuntu. Windows should automatically mount mtp.
Click to expand...
Click to collapse
Thanks, please excuse my ignorance but how do I do that? I'll try searching for an answer in the meantime and see who gets back here first.
I think I figured it out. Here's what I did.
sudo apt-get install mtp-tools mtpfs
Click to expand...
Click to collapse
sudo apt-get install mtpfs
sudo mkdir /media/kindle
sudo chmod 775 /media/kindle
Click to expand...
Click to collapse
Maybe not. Nothing I move via the GUI is showing up on the kindle. Incredibly frustrated that I can't move files to my kindle.
I use a program called gMTP. Works perfectly.
FroyoShark said:
I use a program called gMTP. Works perfectly.
Click to expand...
Click to collapse
Awesome. Exactly what I was looking for. Thanks a lot.
I tried it before...
FroyoShark said:
I use a program called gMTP. Works perfectly.
Click to expand...
Click to collapse
I tried gMTP before, when I could only boot into TWRP (I needed to copy a rom to flash!)
But gMTP works a lot better when you have a working rom :laugh:

Recovery mode and file transfering

Hello.. I accidentally erased all data in both internal and external card. I can boot recovery mode. Is there a way to trasfer files from pc to the phone on recovery mode in order to trasnfer a rom to flash? When o connect it apperas adb interface, something like that but i cannot see the phone.
Wouldn't it be easier to just take memory card out and use a card reader to put a rom straight onto the memory card. Think that should work
Sent from my GT-N7105 using xda premium
ADB in recovery mode works fine for me.
SenK9 said:
ADB in recovery mode works fine for me.
Click to expand...
Click to collapse
How do you use that?
c1oud said:
How do you use that?
Click to expand...
Click to collapse
If your using cwm. Make a folder on your sd card like this
Clockworkmod/backup/ then copy and paste your file in there.. reboot to recovery and choose restore from external. You may need to do a full wipe if its an older backup.
GT N7105 with XDA Premium......that is all......
c1oud said:
How do you use that?
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=2303834
Read through that. It's basically an interface for you to plug your phone via USB to your computer and pass commands to it (and read info). By running ADB logcat, you can then see what's going on in your phone, in real time.
Doing so, you should be able to find out (or at least paste here) what errors are occurring.
It's a sensible first step, before resorting to wiping or imaging.
SenK9 said:
http://forum.xda-developers.com/showthread.php?t=2303834
Read through that. It's basically an interface for you to plug your phone via USB to your computer and pass commands to it (and read info). By running ADB logcat, you can then see what's going on in your phone, in real time.
Doing so, you should be able to find out (or at least paste here) what errors are occurring.
It's a sensible first step, before resorting to wiping or imaging.
Click to expand...
Click to collapse
I installed a rom by using odin and everything works ok. I will read about adb, it might come in useful sometime.. Thank you.

Categories

Resources