I recovered from a almost-brick but now I am left with an internal sdcard with no data on it.
When I try to push a zip using adb, it appears to be successful from the cmd line dialogue, but when I try to use the "install from sd card" option on CWM v5.8.1.8 it does not show any files.
Am I missing something silly?
I used "adb push rom.zip /sdcard" and got the next bit:
1333 KB/s (367597564 bytes in 269.270s)
Any comments would be appreciated.
You should have another "/" at end? /sdcard/
Sent from my EPAD using Tapatalk 2
And if that doesn't work, choose install zip and it will look like nothing was installed and then re-push the rom. And it should be there. Also did you manually restart recovery after wiping?
There is a helpful thread in the Dev section for Prime_Full_Wipe.
Sent from my EPAD using Tapatalk 2
Well, I didn't need to do any additional wiping or anything, but there was a direction in the PRIME-Full-Wipe post about pushing to /data/media instead of sdcard and it worked. So thanks!
tangiers said:
You should have another "/" at end? /sdcard/
Sent from my EPAD using Tapatalk 2
Click to expand...
Click to collapse
that
when you just type /sdcard
you're moving the file to "/" which is the root of the tablet, and renaming the file to sdcard
if you type /sdcard/
you're moving the file to the sdcard and not renaming the file
=]
It was weird - I had tried pushing to both /sdcard and /sdcard/ and neither way worked. It would show that it worked on the cmd dialogue, but it couldn't find it in CWM.
After pushing it to /data/media, it worked with no problem.
bassmarkie said:
It was weird - I had tried pushing to both /sdcard and /sdcard/ and neither way worked. It would show that it worked on the cmd dialogue, but it couldn't find it in CWM.
After pushing it to /data/media, it worked with no problem.
Click to expand...
Click to collapse
if sdcard doesnt work
you can always try /mnt/sdcard/
Related
When i woke up this morning i had to hold powerbutton for, is it 10 seconds, to restart the phone. When it booted up again i got a message that said somethings wrong with the sdcard, and it asked if i wanted to format. Hell no! I got things there i really want to keep (yea stupid of me not to have it backed up!).
I went in to recovery and if i enter the "install zip from internal sdcard" i can see the card and all it's files.
If this would have happened to my external sdcard i'd just put it in my laptop doing a scandisc and all would be cool.
Now it isn't. So how do i solve this?
Sent with love from my GT-I9100 using Tapatalk
Have you tried to mount the internal SD to the PC over USB from from recovery mode, using the "mounts and storage" menu?
Considering you have CWM recovery running, if not flash a kernel with CWM and try it then.
HellcatDroid said:
Have you tried to mount the internal SD to the PC over USB from from recovery mode, using the "mounts and storage" menu?
Considering you have CWM recovery running, if not flash a kernel with CWM and try it then.
Click to expand...
Click to collapse
Hi and thanks for answer!
Yes i have CWM, just forgot to mention it.
I just tried to mount usb storage from cwm and both cards shows up, but only external can get accessed. Nothing(!) happends when i pick the scandisc option and clicks start. Just doesnt start.
Edit: still can SEE the files in cwm, just need to know how to copy them to a safe place so i can format the sd. :/
Sent from my GT-I9100 using Tapatalk
mrBira said:
Edit: still can SEE the files in cwm, just need to know how to copy them to a safe place so i can format the sd. :/
Click to expand...
Click to collapse
Hm, in that case you could copy them via an adb shell over to the external card.
adb is a command line tool that's part of the Android SDK.
Invoke a shell via
Code:
adb shell
when the phone is in CWM recovery and connected via USB.
Make sure internal and external SD are mounted (mounts and storage menu) and use the "cp" (=copy) command to copy the important files over, like
Code:
cp /sdcard/afile.dat /path/to/external/sd
(sorry don't remember where CWM mounts the external SD at the moment, IIRC it's something like /mnt/emmc, but I'm not sure right now)
The cp command can also use wildcards like "*" for all files in the given directory.
Hope that gets you closer to saving your data.
I know this may sound cliche.. Have you tried turning off your phone ans remove the sd card and re insert it back in... And boot back up?
Sent from my SHW-M250K using XDA App
HellcatDroid said:
Hm, in that case you could copy them via an adb shell over to the external card.
adb is a command line tool that's part of the Android SDK.
Invoke a shell via
Code:
adb shell
when the phone is in CWM recovery and connected via USB.
Make sure internal and external SD are mounted (mounts and storage menu) and use the "cp" (=copy) command to copy the important files over, like
Code:
cp /sdcard/afile.dat /path/to/external/sd
(sorry don't remember where CWM mounts the external SD at the moment, IIRC it's something like /mnt/emmc, but I'm not sure right now)
The cp command can also use wildcards like "*" for all files in the given directory.
Hope that gets you closer to saving your data.
Click to expand...
Click to collapse
Thanks! Will try that in a few hours when i get home. Is there any chance i could do a "cp /mnt/sdcard/" to copy the whole sd at once? But perhaps something could go wrong since the ext sd is mounted in /mnt/sdcard/external_sd
Bah i dont know.... Any command genious here who can help me further?
Sent from my GT-I9100 using Tapatalk
charon420 said:
I know this may sound cliche.. Have you tried turning off your phone ans remove the sd card and re insert it back in... And boot back up?
Sent from my SHW-M250K using XDA App
Click to expand...
Click to collapse
Yes i have tried that also, but thanks anyways!
Sent from my GT-I9100 using Tapatalk
mrBira said:
Is there any chance i could do a "cp /mnt/sdcard/" to copy the whole sd at once? But perhaps something could go wrong since the ext sd is mounted in /mnt/sdcard/external_sd
Click to expand...
Click to collapse
Yeah, with the external mounted in a path inside the internal - that will somehow get you some troubles.
Let's consider for a moment it's at /mnt/emmc, then you could do:
Code:
cp -r /mnt/sdcard/* /mnt/emmc/maybesomesubdirifyouwant/
If the external SD is mounted somewhere you can't use it (like inside the internal - but IIRC CWM doesn't do that) you can just unmount it with something like this:
Code:
umount /mnt/sdcard/external_sd
then mount it somewhere else with
Code:
mount /dev/block/mmcblk1p1 /mnt/ext_sd
.
If you want/need to create a subfolder in /mnt (or wherever) you have to remount / as read-write first:
Code:
mount -o rw,remount /
mkdir /mnt/ext_sd
HellcatDroid said:
Yeah, with the external mounted in a path inside the internal - that will somehow get you some troubles.
Let's consider for a moment it's at /mnt/emmc, then you could do:
Code:
cp -r /mnt/sdcard/* /mnt/emmc/maybesomesubdirifyouwant/
If the external SD is mounted somewhere you can't use it (like inside the internal - but IIRC CWM doesn't do that) you can just unmount it with something like this:
Code:
umount /mnt/sdcard/external_sd
then mount it somewhere else with
Code:
mount /dev/block/mmcblk1p1 /mnt/ext_sd
.
If you want/need to create a subfolder in /mnt (or wherever) you have to remount / as read-write first:
Code:
mount -o rw,remount /
mkdir /mnt/ext_sd
Click to expand...
Click to collapse
Cool, thanks! 4 hours til i get home cant wait to try this! Seems very logical and actually got some hope :-D
Sent from my GT-I9100 using Tapatalk
Solved it by formating. ;(
Hey all
I'm asking for your help, because i can't boot on my S3 !
I have a reboot loop, and i want to reinstall stock rom throug Clockwork, but i can't mount my internal sdcard... and i have no external sdcard so i can't do anything !
So my problem is i can't move a rom from my PC to my phone because i can't access my internal storage...
Any tip ?
Thanks ! (Sorry i'm not english so... ahah)
Magickalash said:
Hey all
I'm asking for your help, because i can't boot on my S3 !
I have a reboot loop, and i want to reinstall stock rom throug Clockwork, but i can't mount my internal sdcard... and i have no external sdcard so i can't do anything !
So my problem is i can't move a rom from my PC to my phone because i can't access my internal storage...
Any tip ?
Thanks ! (Sorry i'm not english so... ahah)
Click to expand...
Click to collapse
If you want to install a stock ROM, why not just grab a firmware tar and flash with ODIN?
Anyway, assuming that you somehow have a CWM-flashable ZIP of the stock ROM and you're using a custom CWM recovery, you can push files through ADB:
Install Kies so that all the required drivers are installed;
Grab SuperOneClick from http://forum.xda-developers.com/showthread.php?t=803682 and extract the ADB folder;
Attach a USB cable to the phone and to the computer;
Use CWM to mount /sdcard;
Open a Command Prompt in the folder where you extracted ADB;
run "adb shell";
run "ls /sdcard" and verify that your internal SD card is mounted (are the files that are on your internal SD card in that list?);
if it is mounted, run "exit" and then type "adb push", and then a space, and drag the ZIP file to the command prompt, add another space and then add "/sdcard" and press enter so you have something like this:
"adb push AStockROM,zip /sdcard"
qwerty12 said:
If you want to install a stock ROM, why not just grab a firmware tar and flash with ODIN?
Anyway, assuming that you somehow have a CWM-flashable ZIP of the stock ROM and you're using a custom CWM recovery, you can push files through ADB:
Install Kies so that all the required drivers are installed;
Grab SuperOneClick from http://forum.xda-developers.com/showthread.php?t=803682 and extract the ADB folder;
Attach a USB cable to the phone and to the computer;
Use CWM to mount /sdcard;
Open a Command Prompt in the folder where you extracted ADB;
run "adb shell";
run "ls /sdcard" and verify that your internal SD card is mounted (are the files that are on your internal SD card in that list?);
if it is mounted, run "exit" and then type "adb push", and then a space, and drag the ZIP file to the command prompt, add another space and then add "/sdcard" and press enter so you have something like this:
"adb push AStockROM,zip /sdcard"
Click to expand...
Click to collapse
Thanks for your answer, but i already tried with adb shell.
When i go to the "sdcard" folder, it's empty !
Maybe I'll just have to buy a microSD tomorrow and then it'll work... But i don't want to wait until tomorrow :silly:
(On CWN, i have "Error mounting /sdcard" all the time... But it's because i only have my internal storage right ?
Thanks
Magickalash said:
Maybe I'll just have to buy a microSD tomorrow and then it'll work... But i don't want to wait until tomorrow :silly:
Click to expand...
Click to collapse
I know what you mean
(On CWN, i have "Error mounting /sdcard" all the time... But it's because i only have my internal storage right ?
Thanks
Click to expand...
Click to collapse
With CWM Recovery 5.5.0.4 (CF 1.5) I can do this to get to the internal SD card:
install zip from sdcard -> choose zip from internal sdcard
and the card should be mounted on /data/media
qwerty12 said:
I know what you mean
With CWM Recovery 5.5.0.4 (CF 1.5) I can do this to get to the internal SD card:
install zip from sdcard -> choose zip from internal sdcard
and the card should be mounted on /data/media
Click to expand...
Click to collapse
Dude, you just saved my night
Thanks <3
Get an SD card and backup the complete phone memory using CWM
qwerty12 said:
I know what you mean
With CWM Recovery 5.5.0.4 (CF 1.5) I can do this to get to the internal SD card:
install zip from sdcard -> choose zip from internal sdcard
and the card should be mounted on /data/media
Click to expand...
Click to collapse
I have the same problem as op in his first post as well as "Error mounting SD card". I tried the quoted instructions above and then the commands for adb, but on typying run adb shell and run ls /sdcard nothing happens. Could this be because I have jelly bean 4.1.2 and samsung removed the USB-mass torage feature in it for internal SD-cards?
I have the same exact CWM version.
If I type "run adb shell" (with the quotation) marks I get:
Run.exe
---------------------------
Error: Couldn't find adb shell anywhere.
I even looked in the PATH
I also tried appending the following extensions:
[1]: .exe
[2]:
run "ls /sdcard" gives:
Run.exe
---------------------------
Error: Couldn't find ls /sdcard anywhere.
I even looked in the PATH
I also tried appending the following extensions:
[1]: .exe
[2]:
Just to experiment I tried to mount sd card in cwm after choose zip - still get "Error mounting SD Card".
Also if I go into my data folder via CWM I don't have a media folder, but I guess that's because im inside the wrong partition.
And just to be clear about the command part. My ADB folder is located at C:\ADB
I opened elevated command prompt, typed "cd C:\ADB" (without quotation marks), then enter. Then i ran the adb shell and ls /sdcard commands.
I also restarted computer after installing KIES.
edit: my goal was to transfer nandroid backup to phone and do a restore, guess I'll have to go the odin route -> flash stock rom, then connect phone to windows and transfer the nandroid.
evilperro said:
I have the same problem as op in his first post as well as "Error mounting SD card". I tried the quoted instructions above and then the commands for adb, but on typying run adb shell and run ls /sdcard nothing happens. Could this be because I have jelly bean 4.1.2 and samsung removed the USB-mass torage feature in it for internal SD-cards?
I have the same exact CWM version.
If I type "run adb shell" (with the quotation) marks I get:
Run.exe
---------------------------
Error: Couldn't find adb shell anywhere.
I even looked in the PATH
I also tried appending the following extensions:
[1]: .exe
[2]:
run "ls /sdcard" gives:
Run.exe
---------------------------
Error: Couldn't find ls /sdcard anywhere.
I even looked in the PATH
I also tried appending the following extensions:
[1]: .exe
[2]:
Just to experiment I tried to mount sd card in cwm after choose zip - still get "Error mounting SD Card".
Also if I go into my data folder via CWM I don't have a media folder, but I guess that's because im inside the wrong partition.
And just to be clear about the command part. My ADB folder is located at C:\ADB
I opened elevated command prompt, typed "cd C:\ADB" (without quotation marks), then enter. Then i ran the adb shell and ls /sdcard commands.
I also restarted computer after installing KIES.
edit: my goal was to transfer nandroid backup to phone and do a restore, guess I'll have to go the odin route -> flash stock rom, then connect phone to windows and transfer the nandroid.
Click to expand...
Click to collapse
Try just typing "ls" to see what folders you have. If you type "ls /sdcard" it shows nothing because the /sdcard in root is not a real folder, it is a link. Try "ls", after that try "ls /storage". I know my internal sdcard can be shown if I do "ls /storage/sdcard0". Hope that helps.
wangdaning said:
Try just typing "ls" to see what folders you have. If you type "ls /sdcard" it shows nothing because the /sdcard in root is not a real folder, it is a link. Try "ls", after that try "ls /storage". I know my internal sdcard can be shown if I do "ls /storage/sdcard0". Hope that helps.
Click to expand...
Click to collapse
My reply is for posterity since I solved my problem by solution mentioned in edit. I don't require more assistance at this time, and will likely not answer if someone replies.
Using these commands still nothing happens in the command prompt.
evilperro said:
My reply is for posterity since I solved my problem by solution mentioned in edit. I don't require more assistance at this time, and will likely not answer if someone replies.
Using these commands still nothing happens in the command prompt.
Click to expand...
Click to collapse
Then you mark the topic as solved .
jje
JJEgan said:
Then you mark the topic as solved .
Click to expand...
Click to collapse
I doubt I can do that since I'm not OP or moderator?
Is there an Odin cm10? I ask because my friends sd card slot does not work. Thanks
wendellc said:
Is there an Odin cm10? I ask because my friends sd card slot does not work. Thanks
Click to expand...
Click to collapse
According to this::
http://forum.xda-developers.com/wiki/Flashing_Guide_-_Android#ROM_update_without_SDcard
You can use this method:::
ROM update without SDcard
If you don't have an sd card, or your slot is broken you can try this trick, but you will need a custom recovery like Clockwork.
Boot up your phone to recovery. And move your rom file to the adb directory, and start a command line ( cmd )
adb shell
mount data
adb push D:\custom_rom.zip /data/
Wait until the push finished, and restart your device to recovery again with "adb reboot-bootloader"
mount data
mount /data /sdcard ( mount the data folder into your sdcard folder, so your recovery will think that you have an sdcard installed )
Locate the ROM .Zip file you wish to flash.
Confirm the flash by following the on-screen instructions (ie: pressing the trackball, pressing the call button, etc.)
If no errors arise during the flashing process then the ROM flash was successful, Reboot the device.
With some root file explorer, remove the rom file if you don't need it anymore, to free up space.
Or use adb to remove the custom recovery
adb shell rm data/custom_rom.zip
::::
You can do a search for " zip to tar"
But its fairly involved,,, so try above method 1st
.
Sent from my SCH-I500 using xda premium
Yeah his card slot seems to be broken, thanks
Sent from my Galaxy Nexus using Tapatalk 2
hi guys i pushed a file to my sd card using adb, but of course using the new cwm the sdcard folder is in... sdcard/0/ not just sdcard
and now i cant delete the file i put on the sdcard? how do i delete this file!? its annoying :L
thank you
adb help
http://bit.ly/Y5Kph1
Sent from my Slim E4GT using xda premium
But why ADB? You can use any File Explorer to delete the file.
RoberGalarga said:
But why ADB? You can use any File Explorer to delete the file.
Click to expand...
Click to collapse
because its in a folder that cant be accessed anywhere else but recovery....
when you click on install from sdcard its there
but on the new 4.2 cwm it put the sdcard into install from sdcard then the "0" folder
Oh... I understand. Ok, let's try:
Type
Code:
adb shell
ls /sdcard/0
If you don't get an error here (not found, denied, or something like that), type
Code:
rm /sdcard/0/WhateverYouWantToDelete
CallumMarks77 said:
hi guys i pushed a file to my sd card using adb, but of course using the new cwm the sdcard folder is in... sdcard/0/ not just sdcard
and now i cant delete the file i put on the sdcard? how do i delete this file!? its annoying :L
thank you
Click to expand...
Click to collapse
adb shell "rm /sdcard/0/file_to_delete"
Hello!
I have Samsung Galaxi S2 GT-I9100
Android version 4.1.2
I got root access, CWM.
Got SSH server installed for terminal.
Recently I tried to download an audio file over 3G. The download couldn't be completed and after then I wouldn't be able to download any file. I discovered I could also not delete any file from my internal storage which is sdcard0.
When I tried to change permissions on sdcard0 using SSH I typed:
Code:
chmod -R 777 sdcard0
and got this:
Code:
chmod: sdcard0: Read-only file system
Please help would be much appreciated.
Thanks in advance!
Perhaps mounting internal storage using CWM (mounts & storage) helps? Greetings
BenjyTec said:
Perhaps mounting internal storage using CWM (mounts & storage) helps? Greetings
Click to expand...
Click to collapse
Tried "mount /sdcard", nothing changed. I also tried "fixing permissions" option.
Try to plug your phone on a pc, right click your internal sd, choose tools and fix errors (run chkdsk on it).
Do it on your external sd too if you have one.
Namoi said:
Try to plug your phone on a pc, right click your internal sd, choose tools and fix errors (run chkdsk on it).
Do it on your external sd too if you have one.
Click to expand...
Click to collapse
That did the job! Thank you very much !
oferst said:
That did the job! Thank you very much !
Click to expand...
Click to collapse
You're welcome.
Sadly, be prepare to do it more and more as the phone ages...
It happens when some I/O error occurs when for example the phone crash, or when the memory ages and get more easly corrupted.
Others symptoms that this "fix" can solve is spontaneous reboot, phone geting very hot without reason... well strange behaviors related to errors which occured on the internal/external memory.