Problem Loading ROM - Samsung Galaxy Nexus

I've load many ROMS before without issues until today. I forgot to copy the ROM to the phone before flashing. So, while in recovery mode, I used "adb push <ROM.zip.." to the sdcard. This says it pushed ok. But, when I go to "choose zip from sdcard", it's no where to be found. Any ideas?

Reboot the damn thing back into the existing rom and copy it over.
Hopefully they get the "mount SD Card" working. It was nice to copy files over to the phone while in CWM.

I think you could probably copy it to where the sdcard is actually mounted at, which is /data/media/ or something like that.

player911 said:
Reboot the damn thing back into the existing rom and copy it over.
Hopefully they get the "mount SD Card" working. It was nice to copy files over to the phone while in CWM.
Click to expand...
Click to collapse
I tried and it hangs on a screen with the word "Google" and an unlocked lock at the bottom.

Mills00013 said:
I think you could probably copy it to where the sdcard is actually mounted at, which is /data/media/ or something like that.
Click to expand...
Click to collapse
Thank you. Thank you. This worked. adb push <rom name> /data/media
This placed the file at the "root" of the virtual sdcard seen by clockworkmod.

Thats great!
I'm sure it will only be a matter of time before CWR mounts that directory as default when you select to do the mount USB storage option. Alternatively (and a little more complexly), they could create a symlink at /storage to point there, temporarily while you are in CWR.

Related

Help, was in recovery then I pushed a file to /sdcard, what happens!?!?

So I rebooted to recovery and I push a file into /sdcard
after I shell, I check it's only file in there!! So then I reboot and then adb shell again when phone is regular mode and I don't see that file
Where did I push the file when in recovery? I can't find it next time I reboot to recovery then did LS, the file is gone! Can I delete that file or its lost/hidden or what's going on?
Im not even going to read the whole thing. If u pushed the file and u can't figure out how to reboot from recover just pull battery and restart
Sent from my SCH-I500 using XDA App
You need to mount your sd card to /sdcard.
The file was stored to / on the temporary ramdisk. Do "mount -a" in shell first.
pulser_g2 said:
You need to mount your sd card to /sdcard.
The file was stored to / on the temporary ramdisk. Do "mount -a" in shell first.
Click to expand...
Click to collapse
Thanks for the good info! SO basically the file I pushed over was removed upon rebooting correct? I just don't want that file to be on the ramdisk or sdcard anywhere since the /sdcard was not mounted.

How to Format the SD card storage Partition

Using the latest Axiom ROM I ran into a problem where I can't download into the 'Download' folder of the SD card. It's the default location for the stock browser to download into.
I can pick the save location easily with the opera browser, but don't know how with the stock browser.
Anyway it seems that somehow with the last Axiom flash a new folder also named "download" was created on my SD card.
One is spelled 'download' and one is spelled 'Download'. One is empty and one has weird contents that isn't readable by most file file managers. That one is actually my original one.
I can't delete either one, and I can't download programs into 'download' from the stock Browser. (did manage to delete both with Root Explorer, the original remerged, contacts intact, upon a reboot)
So I want to format my SD card partition.
I tried Clockwork partition SD card. and it didn't work.
I tried resetting all user data from within the Android OS and it didn't do anything to the SD card partition either.
I'm looking for the ADB command to do it.
I found a command to do it on the Hero, G2 touch. It's :
First, on your phone, go into Home -> Settings -> SD card & phone storage, then click on "Unmount SD card"
Then, in your shell, do the following.
Code:
adb shell
mkfs.vfat /dev/block//vold/179:1
Looking for a similar command for the Galaxy Nexus. Thanks.
so you cant use root explorer to rename the one folder to match...or delete one?
droidstyle said:
so you cant use root explorer to rename the one folder to match...or delete one?
Click to expand...
Click to collapse
Nope, root explorer shows one empty file, and the original 'download' is shown as a systems file or whatever is designated by a piece of paper with a yellow shield with a star in the lower left corner. But root explorer can't open any of the contents using any of the options from 'Text Viewer' through 'Rar Viewer'.
I just deleted both of those folders using Root Explorer.
But then I still couldn't save from the stock browser. 'Download failed'.
Then I rebooted and the original 'Download' folder was present with all previous contents intact. I was able to successfully download to it.
Which leaves the original question.
How do you format the SD card partition?
If you don't care about your user data you could lock the bootloader and then unlock it again.
go to the android revolution hd thread and look up the "super wipe" scripts. There is a full and lite version. Although it appears the full version is not yet released. The difference is the full version wipes data/media folder(Virtual sd card).
Izord said:
Thanks maybe answer it and move it out of here.
Or just move it out of here so it will be ignored and never answered.
Click to expand...
Click to collapse
Not sure why you are so negative about the Q/A section.. I personally go through it multiple times a day and try to answer everything I can.. if you want to delete it then relock and unlock your boot loader. That would be the easiest.
Sent from my Galaxy Nexus using xda premium
droidstyle said:
go to the android revolution hd thread and look up the "super wipe" scripts. There is a full and lite version. Although it appears the full version is not yet released. The difference is the full version wipes data/media folder(Virtual sd card).
Click to expand...
Click to collapse
Yes as droidstyle said there isn't any SD "partition" in our GN. The /sdcard/ is actually a link to /data/media, means that they are in the same partition and the storage are being shared. So it is not possible to "format" the SD "partition".
Do not try the old methods, it is not a 179:1 device.
sorry to bring up a dead thread, but if i do the lock/unlock trick while running a custom rom, am i going to be able to boot the phone back up? Will i need to have Android SDK ready to go so i can flash CWM and flash a rom?
thanks
the browser is your download problem
YEAH YEAH i know....... not for questions and answers but what can i say im a postaholic (sorry bout that)
This kid cant download because he is using the stock browser.
If he were to use dolphin or maybe even firefox he would be able to download .
Okay im done posting in the wrong place now
sorry just wanted to help:highfive:
XDA RULEZ
I think there is one option in CWM. Format Storage
joshnichols189 said:
Not sure why you are so negative about the Q/A section.. I personally go through it multiple times a day and try to answer everything I can.. if you want to delete it then relock and unlock your boot loader. That would be the easiest.
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Easiest procedure, no need to relock/unlock bootloader:
- 'fastboot erase userdata'
the_kwa said:
sorry to bring up a dead thread, but if i do the lock/unlock trick while running a custom rom, am i going to be able to boot the phone back up?
thanks
Click to expand...
Click to collapse
That's kinda obvious, since all you're doing is relocking the bootloader. Even when unlocking, only thing fastboot does is erase userdata and unlocking the bootloader itself. It doesn't touch /system, boot.img (the rom itself).
Izord said:
Using the latest Axiom ROM I ran into a problem where I can't download into the 'Download' folder of the SD card. It's the default location for the stock browser to download into.
I can pick the save location easily with the opera browser, but don't know how with the stock browser.
Anyway it seems that somehow with the last Axiom flash a new folder also named "download" was created on my SD card.
One is spelled 'download' and one is spelled 'Download'. One is empty and one has weird contents that isn't readable by most file file managers. That one is actually my original one.
I can't delete either one, and I can't download programs into 'download' from the stock Browser. (did manage to delete both with Root Explorer, the original remerged, contacts intact, upon a reboot)
So I want to format my SD card partition.
I tried Clockwork partition SD card. and it didn't work.
I tried resetting all user data from within the Android OS and it didn't do anything to the SD card partition either.
I'm looking for the ADB command to do it.
I found a command to do it on the Hero, G2 touch. It's :
First, on your phone, go into Home -> Settings -> SD card & phone storage, then click on "Unmount SD card"
Then, in your shell, do the following.
Code:
adb shell
mkfs.vfat /dev/block//vold/179:1
Looking for a similar command for the Galaxy Nexus. Thanks.
Click to expand...
Click to collapse
sdcard is a virtual card and is located in the data/media folder. You can use something like root explorer and make any necessary changes there and they will be in sdcard.

[Q] How do I allow apps to write to internal SD? (Jelly Bean JRN84D)

Just put on this jelly bean ROM, and when trying to save files from dropbox onto the internal sd it says "error". Audiogalaxy, another app I use, won't allow me to save copies of my songs to the internal SD either. I feel like there's a setting somewhere that's preventing me from save files onto the internal sd, but can't find it. In ICS I was able to find it, pretty sure in Settings -> Storage, but no dice in Jelly Bean.
Any help?
I have you made sure settings>developer options>protect USB storage is not checked. That's where I'd start.
Just fired up Wugs toolkit 1.4 and set full file read/write/execute permissions to all those directories (or at least tried to). Still nothing.
Wanted to update that I was able to rename the DCIM folder to DCIM1 and now it can save camera pics to the phone. I still can't open up a dropbox file due to "storage full or unavailable".
I think you have an issue. You shouldn't have to grant any extra permissions for the apps to write to the SDcard, as there isn't actually an SDcard or partition for it. It's just a symlink to /data/local, a virtual "SDcard".
All my apps work fine writing/reading the "SDcard".
Have you made sure settings>developer options>protect USB storage is not checked. That's where I'd start.
o_z0ne said:
Have you made sure settings>developer options>protect USB storage is not checked. That's where I'd start.
Click to expand...
Click to collapse
Yessir this is not checked.
EDIT: also noticed that when I take a picture, it doesn't save it to the phone. The pic just disappears after it's taken.
Try fixing permissions and checking the permissions/owner on /sdcard/ and /data/media (where the /sdcard folder is symlinked from). There have been lots of threads about sdcard permissions and Jelly Bean,.
ex:
http://forum.xda-developers.com/showthread.php?t=174832
http://forum.xda-developers.com/showthread.php?p=2696762
Similar:
http://forum.xda-developers.com/showthread.php?p=21746289
Other possible solutions are suggested in links.
Just fired up Wugs toolkit 1.4 and set full file read/write/execute permissions to all those directories (or at least tried to). Still nothing. There's gotta be something I'm doing wrong here, I can't be the only guy who has this jelly bean rom installed and isn't using a microSD card.
papabri said:
There's gotta be something I'm doing wrong here, I can't be the only guy who has this jelly bean rom installed and isn't using a microSD card.
Click to expand...
Click to collapse
That's probably true, considering the GNex doesn't have a MicroSD slot .
haha yes true.
Wanted to update that I was able to rename the DCIM folder to DCIM1 and now it can save camera pics to the phone. I still can't open up a dropbox file due to "storage full or unavailable".
Solved this issue by doing this:
Reflash stock. Hold off on restoring data/media. There seems to be a problem with it in v1.4.
{{ WugFresh }}
I since put back on the JB rom and have full access with no issues. My issue was when I restored my backup to the phone, the permissions were messed up.
What you probably had was an ownership issue, not permissions.
http://forum.xda-developers.com/showpost.php?p=22970837&postcount=14
cmstlist said:
Latest CWM touch as of today, and also tried it with latest CWM non-touch.
Incidentally I just bumped into a caveat of transferring files to the GN in recovery mode. The permissions are set strangely when you push files over ADB in recovery, and as a result when booted into the OS I was unable to rename any of the pushed files/folders or put new files in. Since the DCIM directory was one that I'd pushed over, new photos weren't saving. And I did not have permission to change permissions.
To see the permissions properly when booted into the OS, you have to go into /data/media rather than /sdcard (same directory but permissions appear differently).
When I went in there and typed ls -n, I found that all the files I had pushed in recovery have UID & GID of 0. All files I had created afterwards had UID & GID of 1023. That explains everything. The owner is root for files that came from ADB in recovery, and media_rw for files created in the OS.
I can use chown, but it looks like the version of chown that comes with busybox does not have -R recursion implemented. Hrm. Aha! In CWM, chown does support -R. And we're off to the races. So from recovery I did:
cd /data/media
chown -R media_rw.media_rw *
Click to expand...
Click to collapse
So if you bump into this again, try chown in ClockworkMod in ADB shell over USB.

SOLVED! How to put files on phone while in cwm? mount sdcard not working!

so i "crashed" my nexus because i installed a wrong .zip (or anything). now it stucks on the boot logo. i just want to reflash the firmware using the cwm. unfortunately i dont have it on the phone. is there a way to put it back on??
little update...
i can now access the phone via adb BUT i cannot mount the sdcard. when i click it, it just stays "mount /sdcard".
thebigchair said:
little update...
i can now access the phone via adb BUT i cannot mount the sdcard. when i click it, it just stays "mount /sdcard".
Click to expand...
Click to collapse
sigh... this has been mentioned a lot
you cannot mount /sdcard because there is no sdcard in the phone.
you need to use adb push to get the file you want on your phone.
Zepius said:
sigh... this has been mentioned a lot
you cannot mount /sdcard because there is no sdcard in the phone.
you need to use adb push to get the file you want on your phone.
Click to expand...
Click to collapse
okey sorry...yeah done this already. haven't found the .zip so i thought the mounting was the problem.
So i pushed it again.. still no zip on sdcard?!
adb push locationofzip /data/media/
okay..and after i pushed it in /media/ i will find it on my sdcard?
/EDIT: NOWAY! you saved my day!!! wtf thx!!
thebigchair said:
okay..and after i pushed it in /media/ i will find it on my sdcard?
/EDIT: NOWAY! you saved my day!!! wtf thx!!
Click to expand...
Click to collapse
Nothing to be surprised about, /data/media/ -> /sdcard/ symlink isnt working, but we're glad you got it working.
Sent from my i9250

stuck @ bootloader/cwm

Hi, i flashed a maguro rom and got stuck at bootscreen.
i couldnt mount my sdcard in cwm, because it made a 0/ directory and couldnt find sd_ext
i had no other rom on my sd card, so i started looking for a way out, ended up formatting my sdcard ..
no sweat : -) lmao
next i got the sdk, installed the fastboot driver , ok, i got connection to my device.
but apparently to push a rom i need ADB, and i cant get ADB working, neither when im in cwm or on fastboot mode.
so i need access to the sdcard inside the Phone, i checked youtube , but dissasembling the Phone doesnt reveal the sd card :/
its soldered in there or smthn.
please help me get a rom on my sdcard.
Thanks in advance for any responses.
Grtz
Woah woah woah woah woah. Slow down! How did this escalate to unsoldering the sdcard so quickly? All the files you had WERE still on your sdcard in the /0/ folder. Pretty sure you deleted them all when you formatted your sdcard. I think you can push the files via adb?. Would have been really simple if you would have searched/asked before formatting.
adb working
WiredPirate said:
Woah woah woah woah woah. Slow down! How did this escalate to unsoldering the sdcard so quickly? All the files you had WERE still on your sdcard in the /0/ folder. Pretty sure you deleted them all when you formatted your sdcard. I think you can push the files via adb?. Would have been really simple if you would have searched/asked before formatting.
Click to expand...
Click to collapse
I got adb working in clockwordmod now, i pushed the cwm10 rom, renamed it to update.zip
and used this command : adb push update.zip /sdcard/update.zip
it transfers and gives me the speed message in the cmd prompt.
but when i then reboot and go into fastboot i type fastboot update /sdcard/update.zip , it says cant find file.
also when im in cwm and i try to "install zip from sdcard" -> "choose zip from sdcard" i get message in the advanced-log :
using data/media for /sdcard/ , im looking now for a command to browse the directory structure of my Phone.
is this possible with adb?
any tips are greatly appreciated !
Grtz
flashed , trying to boot now..loading...
in my last post i said it was using /data/media for sdcard/
so i adb pushed the file to /data/media and in clockworkmod , selected choose from sdcard
and it worked ! i saw update.zip , installed it, im now running cyanogmod10.
thanks for the reply's even tought it didnt help.
any effort is appreciated.
Thanks! bye! =)

Categories

Resources