Yesterday went from liquid smooth to miui, then decided to go back to 4.2 well when I formated system and data in twrp and I went to install 4.2 again I noticed that I literally had no files to flash no back up to restore. So I downloaded LS and put it on my external and all was well. I noticed that my internal had no access to my previous files but said I was still using 6GB of storage. I had to format in recovery which sucked but all is well.
I was just wondering why and how could I prevent this in the future. I am assuming has to do with going from 4.2 to 4.1. BTW when I had miui I could still access files just in the "0" folder I used root browser to put those folders back in the root of SD card. It wasn't till I went went into recovery that this happened you know after I had formated the system :-s
Sent from my SGH-T999 using xda premium
md1008 said:
Yesterday went from liquid smooth to miui, then decided to go back to 4.2 well when I formated system and data in twrp and I went to install 4.2 again I noticed that I literally had no files to flash no back up to restore. So I downloaded LS and put it on my external and all was well. I noticed that my internal had no access to my previous files but said I was still using 6GB of storage. I had to format in recovery which sucked but all is well.
I was just wondering why and how could I prevent this in the future. I am assuming has to do with going from 4.2 to 4.1. BTW when I had miui I could still access files just in the "0" folder I used root browser to put those folders back in the root of SD card. It wasn't till I went went into recovery that this happened you know after I had formated the system :-s
Sent from my SGH-T999 using xda premium
Click to expand...
Click to collapse
Did you check the data/media after reinstalling 4.2 (mnt/shell/emulated works too; it's a mount of data/media)? Some of my old pre-rooted files are still there.
4.2 exclusively uses the "0" directory. Meaning, once you move your files elsewhere, they won't be found by default (just like 0 wasn't set as your sdcard directory in 4.1) until you move your files back (or TWRP does it for you).
Based on lines like:
Code:
#ifdef RECOVERY_SDCARD_ON_DATA
if (PartitionManager.Mount_By_Path("/data", false) && TWFunc::Path_Exists("/data/media/0"))
SetValue(TW_INTERNAL_PATH, "/data/media/0");
#endif
in the commit from twrp here: https://github.com/TeamWin/Team-Win-Recovery-Project/commit/16b74353d99615b4acbb60f3fbe49f4443e0365f
as long as you have a data/media/0 folder, TWRP won't migrate your older stuff to "0" (which fixes the old multiple "0" files problem [mnt/shell/emulated/0/0/0/0]), instead it just sets the path to data/media/0 if it already exists (which I'm assuming in your case was empty, because you moved your files).
I did not check and as of now too late to check. Good info though
Sent from my SGH-T999 using xda premium
Related
I have flashed a few of the different builds that have recently become available and in doing so I have had some weird happenings with my internal storage. First I had both /sdcard, and /sdcard/o where everything I had prior to flashing was in /sdcard, but now resides in /sdcard/0. I moved everything back over and all was dandy. However now I have /sdcard and in there is nothing. All my stuff is actually in mnt/shell/emulated??
I know that chadouming and the everyone else that are contributing are working hard to get a stable build of CM10.1 out to everyone, and when that happens I want to start fresh.
Now my question is how do you go about formatting your internal sdcard without screwing everything up?? Should I flash ROM, GAPPS, backup's from Nova, and Titanium then format? I just don't want to be left with a phone that won't boot for whatever reason.
typically in the past I have never done this. But contrary to some of the instructions for flashing ROMs in this forum I used too
Wipe system/factory reset
Wipe Cache
Wipe Dalvik Cache
format system, data
then flash rom then flash gapps. There is a lot I still don't understand about this stuff so any help would be appreciated.
brunswick000 said:
I have flashed a few of the different builds that have recently become available and in doing so I have had some weird happenings with my internal storage. First I had both /sdcard, and /sdcard/o where everything I had prior to flashing was in /sdcard, but now resides in /sdcard/0. I moved everything back over and all was dandy. However now I have /sdcard and in there is nothing. All my stuff is actually in mnt/shell/emulated??
I know that chadouming and the everyone else that are contributing are working hard to get a stable build of CM10.1 out to everyone, and when that happens I want to start fresh.
Now my question is how do you go about formatting your internal sdcard without screwing everything up?? Should I flash ROM, GAPPS, backup's from Nova, and Titanium then format? I just don't want to be left with a phone that won't boot for whatever reason.
typically in the past I have never done this. But contrary to some of the instructions for flashing ROMs in this forum I used too
Wipe system/factory reset
Wipe Cache
Wipe Dalvik Cache
format system, data
then flash rom then flash gapps. There is a lot I still don't understand about this stuff so any help would be appreciated.
Click to expand...
Click to collapse
Ah, you didnt said that. You can't simply delete the 0 folder on sdcard. That's how thing work on android 4.2 and it's because of multi-user capabilities. put everything back in 0 folder nad it shoulbe alright. Note that it's zero and not "o"
I can't move things. I am able to select files, but it won't move them. Tried with CM file explorer and with root explorer. Won't work with either. Wouldn't be a problem if I could access them from my computer, but I can only see /sdcard when it comes up, so I can't access mnt/shell/emulated. Frustrating.
Sent from my Optimus G using xda premium
I have downloaded a program called android commander to access internal storage on my phone via pc but I can't get it to work. I can't for the life of me even get the drivers for the phone to install correctly. Grrrr. Don't want to lose this data but I cannot seem to gain access our move it.
Sent from my Optimus G using xda premium
i needed to move my backups from the 0 folder so plugged the phone on to pc and did it through windows.
gentledroid17 said:
i needed to move my backups from the 0 folder so plugged the phone on to pc and did it through windows.
Click to expand...
Click to collapse
Yes this is my problem. I can only access the /sdcard portion of the internal memory through my pc. The 0 folder along with the original /sdcard folder is now located in the above mentioned directory /mnt/shell/emulated. It's very strange, and what is more frustrating ifs that I can select the files to move them through root explorer, but when I hit paste nothing happens.
Sent from my Optimus G using xda premium
brunswick000 said:
Yes this is my problem. I can only access the /sdcard portion of the internal memory through my pc. The 0 folder along with the original /sdcard folder is now located in the above mentioned directory /mnt/shell/emulated. It's very strange, and what is more frustrating ifs that I can select the files to move them through root explorer, but when I hit paste nothing happens.
Sent from my Optimus G using xda premium
Click to expand...
Click to collapse
i actually had to save to my desktop then back to sdcard. took a while but it worked.
gentledroid17 said:
i actually had to save to my desktop then back to sdcard. took a while but it worked.
Click to expand...
Click to collapse
That would be fine but I can't access that directory on my pc. Hence the problem.
Sent from my Optimus G using xda premium
I've installed Xylon 2.1.1 (based on AOSP 4.2.2) and recently did a factory reset. I noticed that all my stuff was now in a folder called something like /sdcard/0/0 rather than /sdcard/0 where it had previously been. After another reset it moved to sdcard/0/0/0. I searched for the issue and apparently it's a problem with the recovery. So I updated from an old version of CWM to the latest version of TWRP, and performed another reset. There are no more zero folders but the old ones are still there.
So my question is this: how do I fix this? Can I just copy all my old files and move them up a few levels to where they should be? Clean installs haven't solved the problem.
Funny I just posted in the nexus 7 form about this yesterday. This nesting is causing old files from old flashes to take up space and I can't delete them even with a full wipe
Sent from my Galaxy Nexus using Tapatalk 2
murso74 said:
Funny I just posted in the nexus 7 form about this yesterday. This nesting is causing old files from old flashes to take up space and I can't delete them even with a full wipe
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
I wouldn't really mind but it's giving Titanium Backup and Nandroid a lot of trouble.
I have moved the files and deleted the 0 folders. You shouldn't have a problem.
eqjunkie829 said:
I have moved the files and deleted the 0 folders. You shouldn't have a problem.
Click to expand...
Click to collapse
That's promising. Also this is kind of off-topic but can I restore a backup I made in CWM with TWRP?
bnenenenen said:
That's promising. Also this is kind of off-topic but can I restore a backup I made in CWM with TWRP?
Click to expand...
Click to collapse
No.
063_XOBX said:
No.
Click to expand...
Click to collapse
Oh... why not?
bnenenenen said:
Oh... why not?
Click to expand...
Click to collapse
TWRP and CWM use completely different, totally incompatible archives.
Here is a way to restore to original sdcard layout.
http://forum.xda-developers.com/showthread.php?t=1999214
UPDATE: I ended up finding my files - device/mnt/shell/emulated.....how the hell did they get there?
Rather than create a new thread, I'll post my issue in here. I have a verizon galaxy nexus. I was using a 4.1.2 rom, and flashed ParanoidAndroid 3.6. Usually, I would have one of those /0/ folders on my internal storage, and I could access my old files by going to the root of the storage. I don't have the ability to do that anymore. Using ES File Explorer, I have two folders on the Device level; sdcard, and storage. sdcard has the the list of folders on my sdcard, such as alarms, camera, download, etc. These were created when my rom was flashed. Storage has emulated, and sdcard0. Emulated has 0 and legacy folders. Both of these folders contain the same files as the sdcard folder. the sdcard0 folder contains the same files as the previous mentioned folders.
How can I go in and see my files that were on my sdcard prior to flashing my 4.2 rom? Is there some what via ADB I can look through my file structure? I know the files are still there, as I had about 23GB free space prior to flashing my rom, and now I have about 21GB free.
Hi,
I know that for some ROMs that when you flash them, you will get a "0" directory (I forgot the exact reason, but something to do with multiuser?)
I have been playing around with various ROMs lately, and they have been creating "0" directories inside my currently existing "0" directories (eg. sdcard0/0/0)
This was not a big issue for me back when I had just one 0 directory, but now that I have a couple inside each other, titanium backup restores app data to directories that is not visible to some of my apps like S Note. (Plus it is eating up my internal sd card memory) Temporarily, I currently just cut and pasted my .snb files for my S Note to the working directory so I can view them on my phone for now.
Does anyone know of ANY method (I mean ANY method. I don't mind having to do factory reset/wipe, flashing the ROM again, etc) to clean up my internal sd card?
I've already tried flashing stock ROM and unrooting, then rooting and flashing a new ROM again, but that did not work.
Thanks!
A full reflash with odin will do it otherwise I think theres a cleanup zip somewhere in one of the cm 10.1 threads
mrevankyle said:
A full reflash with odin will do it otherwise I think theres a cleanup zip somewhere in one of the cm 10.1 threads
Click to expand...
Click to collapse
I tried flashing the stock ROM with Odin, and rooting it again with Odin, but it still left the 0 files there.
Can you tell me a little bit more about the cleanup zip for CM10.1?
Wipe Data with TWRP. Backup everything you need and remove your external SD card first.
jmapark91 said:
Hi,
I know that for some ROMs that when you flash them, you will get a "0" directory (I forgot the exact reason, but something to do with multiuser?)
I have been playing around with various ROMs lately, and they have been creating "0" directories inside my currently existing "0" directories (eg. sdcard0/0/0)
This was not a big issue for me back when I had just one 0 directory, but now that I have a couple inside each other, titanium backup restores app data to directories that is not visible to some of my apps like S Note. (Plus it is eating up my internal sd card memory) Temporarily, I currently just cut and pasted my .snb files for my S Note to the working directory so I can view them on my phone for now.
Does anyone know of ANY method (I mean ANY method. I don't mind having to do factory reset/wipe, flashing the ROM again, etc) to clean up my internal sd card?
I've already tried flashing stock ROM and unrooting, then rooting and flashing a new ROM again, but that did not work.
Thanks!
Click to expand...
Click to collapse
First of all take a nandroid backup. Save it on sdcard and on your pc/laptop. Than copy all in folder 0 to root of int sdcard amd then delere folder 0. Restart your phone and all is now ok. Tips++ instal Omega rom 43.1 the mostly stabile rom ever.
Not forget to allways read OP before flash something.. have a nice evening..
Sent from my GT-I9300 using xda premium
I had luck changing the permissions of the 0 folder in TWRP to 755, rebooting, and deleting the 0 folder in Root Explorer. Everything defaulted back to /sdcard after that. Make sure to copy anything you don't want to lose out of the 0 folder before deleting it.
basically whats happening is im currently on fre3 rom and i want to try out liquid, but when i flash liquid my internal sd is wiped? everything from downloaded items, backups from titanium, to my twrp backups and anything in the internal sd is gone
now i suspect it has something to do with the way 4.2.2 roms deal with the users and that whole 0 folder thing, but my question is, is there any way to keep the contents of my sd card so liquid will see it?
because when i pop it into my pc, theyre gone gone, its not like they were overlooked (happened when i tried another rom)
any ideas?
therenegadenail said:
basically whats happening is im currently on fre3 rom and i want to try out liquid, but when i flash liquid my internal sd is wiped? everything from downloaded items, backups from titanium, to my twrp backups and anything in the internal sd is gone
now i suspect it has something to do with the way 4.2.2 roms deal with the users and that whole 0 folder thing, but my question is, is there any way to keep the contents of my sd card so liquid will see it?
because when i pop it into my pc, theyre gone gone, its not like they were overlooked (happened when i tried another rom)
any ideas?
Click to expand...
Click to collapse
No matter what, when you wipe your phone, it wipes internal memory....... At least I'm pretty sure..
Joe0113 said:
No matter what, when you wipe your phone, it wipes internal memory....... At least I'm pretty sure..
Click to expand...
Click to collapse
yea but to an extent no? i mean i always am able to restore things from titanium with no issue, also it erases twrp backups? thats never happened before
also i cannot delete that 0 folder at all, in phone or plug to computer, theres a folder in it, anbech? and in that theres a backup file? an sh file? it wont let me delete it at all
therenegadenail said:
yea but to an extent no? i mean i always am able to restore things from titanium with no issue, also it erases twrp backups? thats never happened before
also i cannot delete that 0 folder at all, in phone or plug to computer, theres a folder in it, anbech? and in that theres a backup file? an sh file? it wont let me delete it at all
Click to expand...
Click to collapse
Download ES File Explorer and you can delete it. Just make sure you don't delete important folders/files.
Joe0113 said:
Download ES File Explorer and you can delete it. Just make sure you don't delete important folders/files.
Click to expand...
Click to collapse
i have es file explorer, and it still wont let me
if i restore back to my tw rom which is 4.1.2 the 0 folder is there, and its the only folder in there, and every time i try, it says i cant
Joe0113 said:
No matter what, when you wipe your phone, it wipes internal memory....... At least I'm pretty sure..
Click to expand...
Click to collapse
This is not true. I've been installing custom ROMs for a long time and I've never had this. If you're restoring a 4.1.2 ROM (like FRE) and all your files are gone then you may have accidentally wiped your internal memory somehow. You are correct in saying that when you flash a 4.2.2 ROM, a new directory gets created called "0" but when flashing back to a 4.1.1 your old files should reappear, only with a new directory called "0.". The best way to avoid this problem all together is, whenever flashing from a 4.1.2 to a 4.2.2 ROM, before doing so copy all the contents of your internal SD card to your desktop (or external storage if you have the space), then when doing your wipes (just b4 flashing your new ROM), wipe your internal memory. Once you're all booted into your new ROM, go back to where ever you copied your internal SD card and copy them back to your internal SD directory. Again you only need to do this when going from a 4.1.x ROM to a 4.2.x ROM (or vice versa).
Good luck!
Hello my name is George and I'm a flashoholic.
EDIT: BTW, for future reference you should put your twrp backups on external.
External sd card doesnt get wiped when the upgrade from 4.1.1 to 4.2.2 as i have my backups stored on internal but should move them to external sd .
Sent from my SPH-L710 using xda app-developers app
My phone was on stock ROM. Installed FreeGee and used CWM to make a backup and flash a 5.1 ROM.
Appeared to be successful but I noticed that the files on my internal storage were gone when checking using File Manager. Tried ES File Explorer and set to show hidden files but still cant find them at /storage/emulated which appeared to be the new directory of internal storage for 5.1.
But checking free space from Settings>Storage shows that the files should still be somewhere in my phone. So I tried to reboot into recovery and from there I can see the files at /storage/sdcard0. On the other hand, from recovery mode I can't find the files located at /storage/emulated which is where my newly downloaded gapps zip went after downloading it using the 5.1 ROM.
I can't figure out what to do so I decided to flash back to stock ROM using my backup. I was able to do so and I can see my files now again at /storage/sdcard0. But I decided to try to flash a custom ROM again and used TWRP App to install recovery. I tried to reboot and my phone went stuck with message "LG E985 Optimus Pro Secure Booting Error! Cause: boot certification verify". Did some research and used LG Flash Tools to flash the stock KDZ. Phone is running again now but my files are still missing from internal storage.
I used ES File Explorer and see the following directories:
storage/emulated/0 - contains some files after I flash the stock ROM again - newly taken pictures,videos, and downloaded files - 124.86 MB
storage/sdcard0 - appears to be now a shortcut directory pointing to the same contents of storage/emulated/0 - 124.86 MB
external_SD - contains files from my micro SD
Settings>Storage shows Im using more than 8 GB space so I'm pretty sure my old files are still in the internal storage. I suspect this has something to do with storage/sdcard0 now pointing to storage/emulated/0 instead of going to where my previous internal storage files was. I want to recover the files from my internal storage. Any fix for this? Run out of ideas and decided to post here. Thanks!
Are you on stock 4.4.2 or on stock 4.1.2? Which variant?
ShadySquirrel said:
Are you on stock 4.4.2 or on stock 4.1.2? Which variant?
Click to expand...
Click to collapse
I was using the stock 4.1 E980 then used CWM by FreeGee to flash 5.1 SlimLP (thanks for the rom btw ).
Everything seems fine except 2 things: I lost access to "storage/sdcard0". Files that I download while using the 5.1 ROM are being put to "storage/emulated/0" instead; and a WiFI access point that I can see while using 4.1 is no longer available while using 5.1
I have a couple of soft bricks and flashing afterwards . 4.1 to 5.1 and returned to 4.1. Tried to flash TWRP recovery instead and got a soft brick which I assume was due to bootloader still being locked. Did some more flash. Able to flash stock 4.4 KDZ and from there, restored my backup of stock 4.1. From there, I can see again the contents of "storage/sdcard0" but then I cant find the files I downloaded while using 5.1 stored on "storage/emulated/0".
I backup the contents of my internal storage while using 4.1 and flashed again the 5.1 SlimLP. I regain access to "storage/emulated/0"" and lost access to contents of "storage/sdcard0" in return. Can't really figure out the exact cause of this.
Directory symlinks differ between android versions; 4.4 onwards expects everything to be under /storage/emulated/0 (which is symlinked to /storage/sdcard0/0 or something like that), while 4.1 expects stuff to be under /storage/sdcard0 or /storage/sdcard, on some ROMs even under /mnt/sdcard or directly in /sdcard. Everything on your internal is there, just 4.4+ ROMs think that your internal memory is fixed in /storage/emulated/0... I know, mess. Had same dillema first time I've flashed mine 3yrs ago, took me some time to understand where the heck my files went
I think that all ROMs have common /sdcard symlink, check that one. It should contain all your data. If there isn't anything under /sdcard, snoop around /data.. Everything you saved while on lollipop should be under '0' folder somewhere (/data/media perhaps? just a blind guess).
ShadySquirrel said:
Directory symlinks differ between android versions; 4.4 onwards expects everything to be under /storage/emulated/0 (which is symlinked to /storage/sdcard0/0 or something like that), while 4.1 expects stuff to be under /storage/sdcard0 or /storage/sdcard, on some ROMs even under /mnt/sdcard or directly in /sdcard. Everything on your internal is there, just 4.4+ ROMs think that your internal memory is fixed in /storage/emulated/0... I know, mess. Had same dillema first time I've flashed mine 3yrs ago, took me some time to understand where the heck my files went
I think that all ROMs have common /sdcard symlink, check that one. It should contain all your data. If there isn't anything under /sdcard, snoop around /data.. Everything you saved while on lollipop should be under '0' folder somewhere (/data/media perhaps? just a blind guess).
Click to expand...
Click to collapse
Many thanks. Found my lost data in a directory in Storage folder using Root explorer.