Hi All,
I messed up using adb to push a file to my internal SD card - I did something like this:
adb push afile.txt /sdcard
I thought it would place the file into the sdcard folder, but instead it over-wrote /sdcard with the file - ie the sdcard folder was gone, I was left with a file named sdcard in the root of my phone.
So, I renamed that file, and created a symlink, like this:
ln /mnt/sdcard sdcard
Mostly, everything's OK, but I'm getting some weird behaviour, FCs, Android Bookmarks won't display my gmail accounts bookmarks.
<Edit> Reinstalled ROM, and issues gone away.
However, can anyone confirm that the /sdcard folder is just a symlink to /mnt/sdcard?
Is that all I have to do ?
</Edit>
Russell
Related
I've been trying to back up by ext 3 partition (in particular the /system/sd folders) using ADB pull/push and am having trouble.
ADB appears to lock-up if the amount of data is too much. It will start pushing but hang during part of it if I try to push the entire /sd folder. If I do it subfolder by subfolder it works ok until I get to the dalvik-cache.
So 2 questions. 1 do I need dalvik-cache copied over or will it be recreated without issue. 2 why am I having trouble?
Sorry if this is in the wrong thread-mod can move.
Yesterday I was trying to install Mobile Defense as a system app as reccommended by MD website and instructions using adb push. Somehow it didn't work real well and I ended up with TWO sdcard directories.
In Root Explorer, one is /mnt and one is /sdcard (like always). The/mnt also has /mnt/sdcard, /mnt/asec and /mnt/secure. The /mnt/sdcard has duplicate entries of /sdcard and is screwing up loading/flashing kernels, etc. I have tried to delete this /mnt directory after Mount R/W in Root Explorer, but it keeps coming back!
I'm not very good at the whole coding/language thing and could use some instructions (4 noobies) as to how to get rid of this file without a total wipe. THANKS in advance
Wrong section.
I believe /sdcard is a link (shortcut) to /mnt/sdcard.
So, depending on your ADB commands, anything that says /sdcard, try changing that to /mnt/sdcard and see if that works better.
mindfrost82 said:
I believe /sdcard is a link (shortcut) to /mnt/sdcard.
So, depending on your ADB commands, anything that says /sdcard, try changing that to /mnt/sdcard and see if that works better.
Click to expand...
Click to collapse
Ok, thanks. The problem is that I downloaded IR's lastes 0524 925 BFS kernel and it shows in recovery as on the sdcard, but when I tried to flash it, the flash failed and said it couldn't find the file on the sdcard. I assumed it was looking in two places at once and got confused/conflicted, therefore it quit?
After upgrading to trickdroids 4.2.2. based release I have some problems. Only with Grooveshark so far. It crashes every time I run it.
Here is a pastbin for it.
http://pastebin.com/VEHkWvZQ
I understand that
/storage/emulated/0/: to my knowledge, this refers to the "emulated MMC" ("owner part"). Usually this is the internal one. The "0" stands for the user here, "0" is the first user aka device-owner. If you create additional users, this number will increment for each.
/storage/emulated/legacy/ as before, but pointing to the part of the currently working user (for the owner, this would be a symlink to /storage/emulated/0/). So this path should bring every user to his "part".
My app that is crashing since upgrading to 7.? is Grooveshark it requires storage in
/storage/emulated/0/Android/data/com.grooveshark.android.v1/files/cache/player
I have no
/storage/emulated/0
I do have
/storage/emulated/legacy/
How would I make the link to this.
I have tried this but it fails
ln -s /storage/emulated/legacy /storage/emulated/0
link failed Read-only file system
Can somebody help with the commands needed to make this link that is required.
I've got the same problem. Have u solved it? if yes, how?
I've struck similar problem after accidentally deleting internal storage. I had no /sdcard in storage.
Apparently you need to run ;
mount -w -o remount rootfs /
Then ;
ln -s /data/media/0 /sdcard
You can check with ;
ls -l -a /sdcard
I have /sdcard0 now in /storage which appears to be the correct description. I use X-plore file manager and it can now see the internal storage correctly.
However CM File Manager (CM11) indicates internal storage should be at /storage/emulated/0 where as mine is /storage/emulated/legacy. Of course I can create a bookmark in CM File Manager to the folder and can see the storage.
All my apps and phone appear to function normally but i can't help wondering if the structure I have in /root for my internal storage is not quite correct. If anyone can tell me the folder and symlinks I should have it would be of great use.
I've tried recreating symlinks with succes so that CM File Manager can see the internal storage at /storage/emulated/0 but the moment I reboot the phone it's back the to the way it was. Have yet to find a simple explanation for what controls the folder structure in /root and why I can't get the symlinks I create to stick.
Update 5Feb - Did another factory reset and flashed CM11 M2. Everything OK now. Maybe needed a couple of resets to sort the ghosts in the machine.
Ok, don't know how to explain, and English is not my main...
I'm trying to use Rom Cleaner, and the rom cleaner is not loading my user.txt, because on sdcard there's no ROMCleaner folder.
In recovery mod with clockwork mod touch, installing from zip from SD card > choose zip from sdcard, it show this 5 folders 0,clockwork, ROMcleaner, legacy, obb (here is the ROMcleaner folder, but going to the 0 folder there is all my SD stuff, roms, music, pictures, etc)
My point is that before there was not showing the 0 folder or all this 5 folders on clockwork mod,
I tried deleting partition, format SD, format external SD, everything possible and still there this partition, and because of this, cant load my user.txt Rom Cleaner..
anyone can help me please..
limx said:
Ok, don't know how to explain, and English is not my main...
I'm trying to use Rom Cleaner, and the rom cleaner is not loading my user.txt, because on sdcard there's no ROMCleaner folder.
In recovery mod with clockwork mod touch, installing from zip from SD card > choose zip from sdcard, it show this 5 folders 0,clockwork, ROMcleaner, legacy, obb (here is the ROMcleaner folder, but going to the 0 folder there is all my SD stuff, roms, music, pictures, etc)
My point is that before there was not showing the 0 folder or all this 5 folders on clockwork mod,
I tried deleting partition, format SD, format external SD, everything possible and still there this partition, and because of this, cant load my user.txt Rom Cleaner..
anyone can help me please..
Click to expand...
Click to collapse
Ok, I can answer part of your question.
In android 4.1.2 the sdcard was located in /data/media but upgrading to android 4.2.2 the sdcard contents were moved to the /data/media/0 folder so from clockwork mod your sdcard contents will now be seen in the 0 folder.
As for rom cleaner I have never used it so perhaps someone else can help with this.
rider5512 said:
Ok, I can answer part of your question.
In android 4.1.2 the sdcard was located in /data/media but upgrading to android 4.2.2 the sdcard contents were moved to the /data/media/0 folder so from clockwork mod your sdcard contents will now be seen in the 0 folder.
As for rom cleaner I have never used it so perhaps someone else can help with this.
Click to expand...
Click to collapse
Thanks, this answer part of my problem, didn't knew it, so its normal that there data is in 0 folder.
So anyone know why it can't load the user.txt of ROMCleaner..
Hi everyone, im having trouble with my download folder. I downloaded cm 10.2 recently and i wanted to try it on my HTC One, so i moved the zipped folder over to the downloads folder on my HTC One via a drag and drop. When i open the downloads folder on the computer it shows only the cm 10.2 file, however when i view downloads through clockwork recovery i see all my older files but not the cm 10.2 folder so i cant flash it.
Any help would be much appreciated?
It's strange, but, however, i will advice you to copy the zip into the root of the sd card and not in another folder..
Try, or change recovery
Shak_93 said:
Hi everyone, im having trouble with my download folder. I downloaded cm 10.2 recently and i wanted to try it on my HTC One, so i moved the zipped folder over to the downloads folder on my HTC One via a drag and drop. When i open the downloads folder on the computer it shows only the cm 10.2 file, however when i view downloads through clockwork recovery i see all my older files but not the cm 10.2 folder so i cant flash it.
Any help would be much appreciated?
Click to expand...
Click to collapse
Sounds like an issue between old (4.1.2) file structure and (4.2.2+) structure.
In 4.1.2 your "sdcard" would point to /data/media/
and in 4.2.2+ it pointing to /data/media/0/
You'll need a root enabled file explorer to be able to view /data/media/
nkk71 said:
Sounds like an issue between old (4.1.2) file structure and (4.2.2+) structure.
In 4.1.2 your "sdcard" would point to /data/media/
and in 4.2.2+ it pointing to /data/media/0/
You'll need a root enabled file explorer to be able to view /data/media/
Click to expand...
Click to collapse
Whats weird is that ES file explorer views the zip file just fine. I can see the ROM through the file explorer but then when i boot into recovery its still all my old files and not cm 10.2. If i re-flash the recovery img could that potentially solve the issue?
Shak_93 said:
Whats weird is that ES file explorer views the zip file just fine. I can see the ROM through the file explorer but then when i boot into recovery its still all my old files and not cm 10.2. If i re-flash the recovery img could that potentially solve the issue?
Click to expand...
Click to collapse
Which recovery are you using?
In ES, instead of going to /sdcard, try going back and look at /data/media, and /data/media/0
I'm sure both old and new files are on the "internal storage" just at different locations.
Can you post screenshots of /data/media and /data/media/0
nkk71 said:
Which recovery are you using?
In ES, instead of going to /sdcard, try going back and look at /data/media, and /data/media/0
I'm sure both old and new files are on the "internal storage" just at different locations.
Can you post screenshots of /data/media and /data/media/0
Click to expand...
Click to collapse
Im using clockworkmod. I did as you said, but the data file is showing empty on ES explorer. I went to data and there was nothing. EVen on the comp it shows up empty.
Shak_93 said:
Im using clockworkmod. I did as you said, but the data file is showing empty on ES explorer. I went to data and there was nothing. EVen on the comp it shows up empty.
Click to expand...
Click to collapse
You have to enable "Root Explorer" in the settings, screenshot attached
nkk71 said:
You have to enable "Root Explorer" in the settings, screenshot attached
Click to expand...
Click to collapse
Ok so i enabled it and was able to view the folder. I have attached the screenshots. The first is of /data/media and the second is of /data/media/0
Shak_93 said:
Ok so i enabled it and was able to view the folder. I have attached the screenshots. The first is of /data/media and the second is of /data/media/0
Click to expand...
Click to collapse
WOW, lots of duplicates!!
Everything in /data/media is now just eating space, it should have been moved to /data/media/0
The only folders of importance in /data/media are
/data/media/0 (your new "internal storage" or "sdcard", whatever you wish to refer to it
/data/media/legacy (probably empty)
/data/media/obb (probably empty)
When you connect your PC, it will default to /data/media/0, whereas CWM will default to /data/media
1- I recommend you start moving everything you need from /data/media to /data/media/0 (pictures, music, etc; the stuff you care about)
2- Delete everything else (other than 0, legacy, obb, clockworkmod) from /data/media (neither your PC nor any 4.2.2+ ROM will look there)
3- create a symlink for CWM, so that you can use the folder both from PC and CWM, refer to this guide: http://forum.xda-developers.com/showthread.php?t=1991657 (works perfectly for me)
Alternatively, you could just copy everything to you PC, including any files you still need from /data/media (but you'll have to do this either using adb or by copying it using ES to /data/media/0, so your PC can see them), and then format the sdcard from recovery.
nkk71 said:
WOW, lots of duplicates!!
Everything in /data/media is now just eating space, it should have been moved to /data/media/0
The only folders of importance in /data/media are
/data/media/0 (your new "internal storage" or "sdcard", whatever you wish to refer to it
/data/media/legacy (probably empty)
/data/media/obb (probably empty)
When you connect your PC, it will default to /data/media/0, whereas CWM will default to /data/media
1- I recommend you start moving everything you need from /data/media to /data/media/0 (pictures, music, etc; the stuff you care about)
2- Delete everything else (other than 0, legacy, obb, clockworkmod) from /data/media (neither your PC nor any 4.2.2+ ROM will look there)
3- create a symlink for CWM, so that you can use the folder both from PC and CWM, refer to this guide: http://forum.xda-developers.com/showthread.php?t=1991657 (works perfectly for me)
Alternatively, you could just copy everything to you PC, including any files you still need from /data/media (but you'll have to do this either using adb or by copying it using ES to /data/media/0, so your PC can see them), and then format the sdcard from recovery.
Click to expand...
Click to collapse
So if i follow all these steps, i should be once again able to load ROMS from the downloads folder correct? Also thanks for all your help so far, it has been very useful and informative!