Hey guys,
some time ago I've tried to free some space from my internal memory, so I've chosen several files to remove in my \windows directory, like ringtones, 007 trailer and some .cabs of default installed programs. Overall size was about 90MB, what is pretty nice while I had like 100MB free space on internal. I know these files can't be just deleted, so I've prepared fake files with the same name, but zero size and I did these steps:
1. backup of chosen files
2. rewrite old files with new files of zero size using Total Commander
!! BUT !! when I did so, free space of internal memory was always the same (even after restart)
3. so, when I saw it had no effect, I restored original files from backup back to the \windows folder and I was shoked when I saw 10MB of free memory
4. as a last step, I've changed these files again with those zero sized and I had the free space back
Now I have the same amount of free space as I had at the beginning, but with zero sized fake files instead of original files.
I want to ask:
a) why my method did not work??
b) how can I really free up some space?? (by removing those useless files)
c) where is the "ROM image" located?? I mean .. if I'll change those original files with fake files and I'll do hard reset, what will happen? Will be those original files restored from some hidden ROM image or are they necessary to keep (for any reason) in \windows folder?
Thank you for any ideas.
FYI I am using stock R3A ROM.
C'mon ... I am sure somebody knows the answers. I've already read several threads about deleting files in windows folder, but all of them were about overwriting files with new, fake files. There were nothing about free memory. And also I can't find the answer on my third, probably most important question
c) where is the "ROM image" located?? I mean .. if I'll change those original files with fake files and I'll do hard reset, what will happen? Will be those original files restored from some hidden ROM image or are they necessary to keep (for any reason) in \windows folder?
Click to expand...
Click to collapse
Any help is appreciated.
on wm there is a flash area
devided into 2 places 1 is storage
1 is rom
rom is read only after one flash the firmware
you can overshadow files in the rom flash with empty files
but they don't mean they are not still there
but it's don't matter because files on rom don't take up storage space at all
they take up rom space it's 2 seperate "partitions" if that makes something you can understand better
only way to truely remove files from the rom flash is to cook a rom without them
and even if you do that that will not give you more storage space as it's 2 seperate spaces
so basicly you're barking up the wrong tree for more storage
Thanks man. This answer is absolutely enough for me, now I understand it much better.
Guys,
Recently i have received a notification from my galaxy note says, "Storage space running out".
I see in the application manager in the "All" tab, the memory usage is 1.8GB used and 200MB free.. The interesting part is, if i sum all of the application listed, it hardly reach 800MB. So there are arround 1GB lost space.
I opened the Setting>Storage there is also a surprising thing. Under Device Memory there are 1.9 GB Total Space, Application 860MB, and the available space is 200MB !!!.. So where is the 1 GB lost? i believe its being used by some sort of logging program. Because the space is keep decreasing by time, even when i don't install anything new.
Do you guys experience the same thing? Or how can i list the usage of this 2GB Device storage space? or what is the folder to check?
I'm running on RR JB v3
Thanks in advance..
Regards
Try to check if you have corrupted files in the lost+found directory (if it exists). Your SD card might be going bad. Other option is to use another file explorer like ES File Explorer, which has lots of options. You can use it to calculate the usage, and if it matches, investigate each directory. One tip: with ES, you can long-press over a directory and select Properties, to get the usage for that particular directory. It can help you narrow-down the investigation.
dbolivar said:
Try to check if you have corrupted files in the lost+found directory (if it exists). Your SD card might be going bad. Other option is to use another file explorer like ES File Explorer, which has lots of options. You can use it to calculate the usage, and if it matches, investigate each directory. One tip: with ES, you can long-press over a directory and select Properties, to get the usage for that particular directory. It can help you narrow-down the investigation.
Click to expand...
Click to collapse
thanks for the reply. But ES file explorer is not helping. it can't detect circular dependency. For example, in the /system/xbin there is a folder called "bb" this folder has no physical memory. Its just a pointer to /system/xbin which in this case is his parent. This create circular dependency, when i click properties in that xbin folder, it show me like 8GB of data and keep increasing.. its impossible right? because the xbin is mounted on a 2GB partition.
yesterday after learn about android partition, i have an idea to monitor /data partition using x-terminal. But i can't find the problem, because i have factory reset my device.. ahahah... lets see.. if this problem happen again, i already know where to start..
Today, I have experienced a very "odd" problem. I have just found out that there is a folder called "storage" visible in my Internal Storage.
When I thought that, since it was visible, it did not contain much useful files (Only 2 xml files I found which would be in both internal and external storage) so I deleted that folder and everything in my SD Card and Internal Storage vanished.
I found out that the "storage" folder had a link to both storage devices but the weird thing is, why was that there and why is it visible? I could of sworn that I have never seen that before on my Xperia Z...
Can anyone else see their "storage" folder in the internal storage or is it just me?
ZeroInfinity said:
Today, I have experienced a very "odd" problem. I have just found out that there is a folder called "storage" visible in my Internal Storage.
When I thought that, since it was visible, it did not contain much useful files (Only 2 xml files I found which would be in both internal and external storage) so I deleted that folder and everything in my SD Card and Internal Storage vanished.
I found out that the "storage" folder had a link to both storage devices but the weird thing is, why was that there and why is it visible? I could of sworn that I have never seen that before on my Xperia Z...
Can anyone else see their "storage" folder in the internal storage or is it just me?
Click to expand...
Click to collapse
Hi.
At root, i have sdcard and sdcard1 and storage. Inside storage folder i have sdcard0 and sdcard1. I have seen this before for long time ago.
CiscoX said:
Hi.
At root, i have sdcard and sdcard1 and storage. Inside storage folder i have sdcard0 and sdcard1. I have seen this before for long time ago.
Click to expand...
Click to collapse
but this is totally different from what I have experienced.
From Windows, Internal Storage would have a folder called "storage" with another folder called "01" inside the storage folder. So "Internal Storage/storage/01/" if it was read on a Windows PC. inside the storage folder, there is just 1 folder called "01", nothing else. inside "01" folder, there are ONLY 2 .xml files which are the same as the 2 .xml files you would have by default in the root of your Internal and External Storage.
In short- Internel Storage has a folder called storage, inside storage has a folder called 01, inside 01 there are only 2 .xml files. The strange thing is, if it were linked to Internal/External Storage, why only 2 .xml files are visible in the 01 folder?
EDIT: When I tried to delete the storage folder (At the time I did not know that it was linked) Windows loading bar for deleting files did not move so I had to cancel it. Once cancelled, everything in my external/internal storage was wiped off. Thankfully, I recovered most of my lost pictures with Recuva
Not sure but I think this folder came somehow from the recovery maybe a bug.
I hope you didn't lost important things.
Sent from my GT-I9500 using xda premium
ZeroInfinity said:
but this is totally different from what I have experienced.
From Windows, Internal Storage would have a folder called "storage" with another folder called "01" inside the storage folder. So "Internal Storage/storage/01/" if it was read on a Windows PC. inside the storage folder, there is just 1 folder called "01", nothing else. inside "01" folder, there are ONLY 2 .xml files which are the same as the 2 .xml files you would have by default in the root of your Internal and External Storage.
In short- Internel Storage has a folder called storage, inside storage has a folder called 01, inside 01 there are only 2 .xml files. The strange thing is, if it were linked to Internal/External Storage, why only 2 .xml files are visible in the 01 folder?
EDIT: When I tried to delete the storage folder (At the time I did not know that it was linked) Windows loading bar for deleting files did not move so I had to cancel it. Once cancelled, everything in my external/internal storage was wiped off. Thankfully, I recovered most of my lost pictures with Recuva
Click to expand...
Click to collapse
Yes, this is very strange. I remember when i did see this after i bought my phone i was thinking this must be an bug. Another thing, in root i also have a folder named: ext_card and it is the same as sdcard1 here. Sdcard1 is my microSD card i have, but why so many folder linked to the same folders.
At root i go to storage, inside i have folders: emulated, removable, sdcard0, sdcard1 usbdisk.
Inside emulated i have 0 and legacy. etc etc
All of them are linked and goes to the same internal card and external card,
gm007 said:
Not sure but I think this folder came somehow from the recovery maybe a bug.
I hope you didn't lost important things.
Sent from my GT-I9500 using xda premium
Click to expand...
Click to collapse
If it really is a bug, we need to know what did actually cause this to happen.
And yeah, Recuva was really useful for me
CiscoX said:
Yes, this is very strange. I remember when i did see this after i bought my phone i was thinking this must be an bug. Another thing, in root i also have a folder named: ext_card and it is the same as sdcard1 here. Sdcard1 is my microSD card i have, but why so many folder linked to the same folders.
At root i go to storage, inside i have folders: emulated, removable, sdcard0, sdcard1 usbdisk.
Inside emulated i have 0 and legacy. etc etc
All of them are linked and goes to the same internal card and external card,
Click to expand...
Click to collapse
Too many linked folders make it confusing, why would there be a linked folder visible in the Internal Storage though? this is what is really confusing me right now.
Need more reports if any one else has found this mysterious "storage" folder in their Internal Storage...
im not sure but if everyone with this folder are running 4.2.2 it is for the multiuser or multitasking feature of jellybean 4.2.2
skinsfanbdh said:
im not sure but if everyone with this folder are running 4.2.2 it is for the multiuser or multitasking feature of jellybean 4.2.2
Click to expand...
Click to collapse
Strange, this is the first time I have ever seen this. I only saw this folder today and I have been on custom roms based on stock xperia firmware android 4.2.2 for ages now... Why would it appear just today? I don't think multitasking will cause this to happen since it doesn't create any folders/files related to it (afaik).
I've had something like this happen where in emulated/0 (my main internal SD storage) there was another 0 folder that freaked out recoveries and such. I had the similar "can't delete from windows" thing, but using a in-recovery file manager I just deleted it, problem solved. tl;dr if you want to delete it and its causing problems delete it from recovery.
Sent from rooted carbon note 2, with the xda app.
shbaldw said:
I've had something like this happen where in emulated/0 (my main internal SD storage) there was another 0 folder that freaked out recoveries and such. I had the similar "can't delete from windows" thing, but using a in-recovery file manager I just deleted it, problem solved. tl;dr if you want to delete it and its causing problems delete it from recovery.
Sent from rooted carbon note 2, with the xda app.
Click to expand...
Click to collapse
exactly what im talking about. lots of threads in the htc one forum about it and being this device was released with 4.1.2(like the htc one) and has recently been updated to 4.2.2(like the htc one) maybe its the same thing, not saying it is because i dont know. just sounds like the same thing
shbaldw said:
I've had something like this happen where in emulated/0 (my main internal SD storage) there was another 0 folder that freaked out recoveries and such. I had the similar "can't delete from windows" thing, but using a in-recovery file manager I just deleted it, problem solved. tl;dr if you want to delete it and its causing problems delete it from recovery.
Sent from rooted carbon note 2, with the xda app.
Click to expand...
Click to collapse
Windows did not make any progress in deleting it, it was stuck on the Preparing to delete... window. Once I cancelled it because it took too long, everything from sd card/ internal storage was gone. All because of that storage folder inside my Internal Storage...
I know about the emulated/0 issue (From previous HTC One X Android 4.2.2 AOSP roms) but this seems to be completely different from it.
skinsfanbdh;44594029...and being this device was released with 4.1.2(like the htc one) and has recently been updated to 4.2.2(like the htc one)...[/QUOTE said:
hmm, I updated my phone from 4.1.2 to 4.2.2 prior to seeing this. This might be the cause. Anyone else have this happen?
Sent from rooted carbon note 2, with the xda app.
Click to expand...
Click to collapse
shbaldw said:
hmm, I updated my phone from 4.1.2 to 4.2.2 prior to seeing this. This might be the cause. Anyone else have this happen?
Sent from rooted carbon note 2, with the xda app.
Click to expand...
Click to collapse
I don't think it has anything to do with an upgraded android version. Like I said before, I have been on Android 4.2.2 a long time now (Upgraded when the firmware first came out) and I have never seen this folder before. I have just seen it yesterday. Another strange thing is that after I attempted to delete the storage folder, Everything was gone INCLUDING that storage folder. I haven't seen the storage folder after that happened. I'm going to go flash another rom and full wipe to see if the storage folder pops up again.
EDIT: Right, no there is no more storage folder in Internal Storage after a full wipe and formatted everything! Very strange indeed...
Wierd storage folder symlink inside internal storage!
ZeroInfinity said:
I don't think it has anything to do with an upgraded android version. Like I said before, I have been on Android 4.2.2 a long time now (Upgraded when the firmware first came out) and I have never seen this folder before. I have just seen it yesterday. Another strange thing is that after I attempted to delete the storage folder, Everything was gone INCLUDING that storage folder. I haven't seen the storage folder after that happened. I'm going to go flash another rom and full wipe to see if the storage folder pops up again.
EDIT: Right, no there is no more storage folder in Internal Storage after a full wipe and formatted everything! Very strange indeed...
Click to expand...
Click to collapse
I know this is a very old thread but I face the same issue in Android 5.1.1 now and I too deleted the folder named storage only to see that all the data from the sd card has vanished because of that. Any idea what caused this buggy symlink to be created?
All my data is now gone because I just deleted one folder inside my sdcard, and I didn't even think to backup anything since I didn't even dream that deleting a single folder will delete the parent folder! Again recuva was my friend but still I am not able to recover everything in internal storage, any suggestions on what to use to scan the internal storage?
anantharam said:
I know this is a very old thread but I face the same issue in Android 5.1.1 now and I too deleted the folder named storage only to see that all the data from the sd card has vanished because of that. Any idea what caused this buggy symlink to be created?
All my data is now gone because I just deleted one folder inside my sdcard, and I didn't even think to backup anything since I didn't even dream that deleting a single folder will delete the parent folder! Again recuva was my friend but still I am not able to recover everything in internal storage, any suggestions on what to use to scan the internal storage?
Click to expand...
Click to collapse
Did you upgrade to newer firmware using a zip? That's a common bug when upgrading via zip.
The only proper way is to backup ur entire internal storage and flash a full ftf. Then you will not have the annoying symlink.
langeveld024 said:
Did you upgrade to newer firmware using a zip? That's a common bug when upgrading via zip.
The only proper way is to backup ur entire internal storage and flash a full ftf. Then you will not have the annoying symlink.
Click to expand...
Click to collapse
I did do a factory reset before flashing a new firmware. Not sure what else I should do..
And as for the internal storage recovery, I followed these different guides but raw file using vhdtool and recuva did not give me any single file that was last present in my internal memory and even extundelete didn't return any single file that was in the internal storage, some of these tools return hundreds of text files and images that I had no idea was in my internal storage but none of them return me any of the hundreds of images and videos that I was sure were in my internal storage.
anantharam said:
I did do a factory reset before flashing a new firmware. Not sure what else I should do..
And as for the internal storage recovery, I followed these different guides but raw file using vhdtool and recuva did not give me any single file that was last present in my internal memory and even extundelete didn't return any single file that was in the internal storage, some of these tools return hundreds of text files and images that I had no idea was in my internal storage but none of them return me any of the hundreds of images and videos that I was sure were in my internal storage.
Click to expand...
Click to collapse
Yes but if you factory reset on 4.4.2 (for example) and then flash 5.0.2 fw via zip in recovery, you will get the annoying folder symlink.
The only way to upgrade to lollipop is by flashing a full ftf (which will wipe internal sd) after that you won't have the annoying symlink.
But you flashed zip instead of ftf and discovered the folder symlink which seemed not harmful to delete so you deleted it. Right?
Then there's no chance in getting the data (photos etc) back.
I was the same situation as you, twice, I tried every possibility to recover my photos but it ended up with nothing. Everything was gone.
On a mechanical harddrive, when you wiped data, the data will only be gone when the wiped sectors are overwritten (e.g. format harddrive, which overwrite with empty buffer).
As long as the wiped data in those sectors are not overwritten, you'll be able to recover almost all - if not all - data you deleted.
On flash memory instead, (such as ssd drives and internal storage of our phone) deleted data is immediately deleted.
(that's also one of the reasons on Android, you never have to defragment the internal sd, same story for an ssd)
I'm sorry for u to say but I'm afraid you're unfortunately lost the photos and there's no way to get it back.
But my advice to you is:
Never upgrade between android versions (e.g. 4.4 > 5.0) using a zip installable.
Only use full factory images (ftf), they will wipe internal sd in order to get correct mappings so backup everything before flashing.
Once u on a firmware, an update to the same firmware is allowed (e.g. from one 5.0.2 rom to another 5.0.2 rom).
I hope it helps u in the future.
Regards
langeveld024 said:
Yes but if you factory reset on 4.4.2 (for example) and then flash 5.0.2 fw via zip in recovery, you will get the annoying folder symlink.
The only way to upgrade to lollipop is by flashing a full ftf (which will wipe internal sd) after that you won't have the annoying symlink.
But you flashed zip instead of ftf and discovered the folder symlink which seemed not harmful to delete so you deleted it. Right?
Then there's no chance in getting the data (photos etc) back.
I was the same situation as you, twice, I tried every possibility to recover my photos but it ended up with nothing. Everything was gone.
On a mechanical harddrive, when you wiped data, the data will only be gone when the wiped sectors are overwritten (e.g. format harddrive, which overwrite with empty buffer).
As long as the wiped data in those sectors are not overwritten, you'll be able to recover almost all - if not all - data you deleted.
On flash memory instead, (such as ssd drives and internal storage of our phone) deleted data is immediately deleted.
(that's also one of the reasons on Android, you never have to defragment the internal sd, same story for an ssd)
I'm sorry for u to say but I'm afraid you're unfortunately lost the photos and there's no way to get it back.
But my advice to you is:
Never upgrade between android versions (e.g. 4.4 > 5.0) using a zip installable.
Only use full factory images (ftf), they will wipe internal sd in order to get correct mappings so backup everything before flashing.
Once u on a firmware, an update to the same firmware is allowed (e.g. from one 5.0.2 rom to another 5.0.2 rom).
I hope it helps u in the future.
Regards
Click to expand...
Click to collapse
Thank you very much for the detailed explanation, after wasting two whole days trying everything described anywhere in the internet for recovering data from internal storage, I have also learnt it the hard way that it won't be possible to recover my data. Anyways the good news is google photos had backed up most of my photos, so it would actually be the call recordings, whatsapp history and other documents that I would have to loose permanently.
langeveld024 said:
Never upgrade between android versions (e.g. 4.4 > 5.0) using a zip installable.
Click to expand...
Click to collapse
As for the upgrade issue, is this only for lollipop or any android version? I have never seen anything similar when I upgraded from 4.0 to 4.1 or 4.2 to 4.4 e.t.c. If I shouldn't use zip installable to upgrade android versions how else do I upgrade to kitkat or lollipop? I don't think there are any factory images published for lollipop for my phone since support for it ended long time ago.
ZeroInfinity said:
Today, I have experienced a very "odd" problem. I have just found out that there is a folder called "storage" visible in my Internal Storage.
When I thought that, since it was visible, it did not contain much useful files (Only 2 xml files I found which would be in both internal and external storage) so I deleted that folder and everything in my SD Card and Internal Storage vanished.
I found out that the "storage" folder had a link to both storage devices but the weird thing is, why was that there and why is it visible? I could of sworn that I have never seen that before on my Xperia Z...
Can anyone else see their "storage" folder in the internal storage or is it just me?
Click to expand...
Click to collapse
Am again reviving this old thread as today I deleted a folder named sdcard inside my oneplus 3's internal storage and lost everyrhing. Though I had never upgraded my phone using any zip file and always went with the OTA update
I also made a thread https://forum.xda-developers.com/oneplus-3/help/strange-t3537998
So my One has been well above 20gigs of used space for some time, With an average of about 3 gigs of free space at any given time. I've checked my sdcard folder and it is about 5gb of space total (with downloads and everything else). There have been occasions where I plug the phone into USB and go to a folder quick and the files are ones I've never seen before (example in downloads folder the files are different then my actual downloads folder). I also have a directory 0, emulated, and legacy inside of Storage. These are exact synced copies of sdcard. Each taking up the same space (so 4x the actual amount of used space) and if I delete a file/folder for anyone of these directories it removes it from all including the sdcard.
Has anyone experienced this? is there a way to fix this without wiping the entire phone clean?
jmalone1187 said:
So my One has been well above 20gigs of used space for some time, With an average of about 3 gigs of free space at any given time. I've checked my sdcard folder and it is about 5gb of space total (with downloads and everything else). There have been occasions where I plug the phone into USB and go to a folder quick and the files are ones I've never seen before (example in downloads folder the files are different then my actual downloads folder). I also have a directory 0, emulated, and legacy inside of Storage. These are exact synced copies of sdcard. Each taking up the same space (so 4x the actual amount of used space) and if I delete a file/folder for anyone of these directories it removes it from all including the sdcard.
Has anyone experienced this? is there a way to fix this without wiping the entire phone clean?
Click to expand...
Click to collapse
Do you go between AOSP/Sense roms? I don't see it anymore but it used to happen back when AOSP first starting coming out for the phone. It had to do with the multiuser support. It would leave all your Sense files but it would move the AOSP folder so you couldn't access them. Flashing a sense rom would let you access those files. I believe you can also access them by using a root explorer (es file also has a root option) and going up to /data/media you should be able to see those files and /data/media/0 should be the AOSP files.
jmalone1187 said:
So my One has been well above 20gigs of used space for some time, With an average of about 3 gigs of free space at any given time. I've checked my sdcard folder and it is about 5gb of space total (with downloads and everything else). There have been occasions where I plug the phone into USB and go to a folder quick and the files are ones I've never seen before (example in downloads folder the files are different then my actual downloads folder). I also have a directory 0, emulated, and legacy inside of Storage. These are exact synced copies of sdcard. Each taking up the same space (so 4x the actual amount of used space) and if I delete a file/folder for anyone of these directories it removes it from all including the sdcard.
Has anyone experienced this? is there a way to fix this without wiping the entire phone clean?
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=2158466 here is some info
Thanks for the replies! Will give this stuff a shot. Thank you
Hi everyone,
Just rerooted my phone and installed Viper rom 6.2! I love it except the fact that there are some mysterious files on my phone, and 7.53 gigs worth! I am pretty sure that these are old installs of many different ARHD versions, but how do I delete them? I tried the super wipe script, but they still are there. It shows up under the "other" category in the storage menu in settings if that helps.
Thanks!
Closer...?
I just found some folders under storage that all contain the same files, /emuated/0 and /emulated/legacy/ so I did some researching. I realize that these are all linked to one another, but it still adds up to ~7 GB. The only way that it would get accounted for in the storage menu is under the "other" section right? I have tried to use root explorers to find the "other" files, but I cant find them. Is the /emulated folder taking up all this space?
whawhasiscumba said:
I just found some folders under storage that all contain the same files, /emuated/0 and /emulated/legacy/ so I did some researching. I realize that these are all linked to one another, but it still adds up to ~7 GB. The only way that it would get accounted for in the storage menu is under the "other" section right? I have tried to use root explorers to find the "other" files, but I cant find them. Is the /emulated folder taking up all this space?
Click to expand...
Click to collapse
/emulated/0 and /emulated/legacy are 2 different mounting point linked to the same partition. They are not duplicated files, if you delete it, you will loose everything in both folders.
Maybe you have some nandroid backup taking space from your storage?
Hmmm... Just checked in TWRP for any backups but it said there weren't any, so could the two folders legacy and 0 be actually taking up data because they contain duplicated files?