[Q] Help! App2SD issues, SD apps disappeared & won't work!! - Nexus One Q&A, Help & Troubleshooting

N1, rooted, 2.2, many apps to SD (both natively or using root).
Things have been humming along just fine. Today, after a reboot from a hanging app update, I no longer have access to apps that are loaded on SD. LauncherPro displays them using generic Android icons rather than the actual apps.
When I go to Manage Applications, they are listed but are all grayed out.
Several reboots, no joy.
Went to Settings/SD/. SD is shown as mounted. Tried to umount, the process hangs.
HELP!!
How do I troubleshoot/get my phone back to normal?
Is there a Linux "chkdsk" I can invoke?
I would really appreciate some help.
Cheers.
Edit: It appears that I can take pictures and browse pictures stored on SD, which suggests that the SD is mounted. What could be wrong?
Edit 2: From what I can tell, the link or reference to all the apps on SD is lost or corrupted. How do I rebuild/fix? HELP!!
Edit 3: Under Manage Applications, all the A2SD apps are grayed out. When I select one, the size information hangs at "Computing..." PLEASE HELP!!

Here is another clue: When I remove the MicroSD and boot the phone without it, there is no "SD missing" indicator on the notification bar. I thought there should be??
Without the MicroSD inserted:
The phone and the missing App2SD behave the same as if the SD were inserted except when I go to Manage Applications and select one of the App2SD apps, the file/cache/data size information show up right away (correctly). When SD is inserted, they hang at "computing size...".
Does this give someone a clue on what to do? Please?

Sounds like they are corrupt...
Just reinstall from the market.
Sent from my Nexus One using XDA App

danger-rat said:
Sounds like they are corrupt...
Just reinstall from the market.
Click to expand...
Click to collapse
Thanks. It would seem like not the individual applications, but rather the table or links to all the App2SD is corrupt. Is there a way to fix this without needing to reinstall everything? I have over 200 apps!
Moreover, does the 1) lack of "missing SD" when it is not inserted, 2) strange behavior when trying to umount the SD and, 3) hanging at "computing size..." under Manage Applications suggest a deeper issue? (All described above.)
Here is a lesson for having a good backup.

I've had this happen to me a few times now. I'm running stock, rooted 2.2.1 and am using the native app2sd functionality of FroYo. It occurs after a reboot. Shelling into the phone and doing a "df" to show mounts reveals that none of the normal application mounts are in place. Going to the /mnt/asec directory shows that each of the application directories exist but are empty. When things are working, each application's directory contains a "pkg.apk" file.
The only way I've been able to recover has been to use Titanium Backup to re-install each app from the back-up I'd made before this happened. I've become very paranoid and keep my back-up up-to-date at all times. Recovering this way is still pretty tedious, and I only have about 18 apps on my SD card. I'd think there'd be a better way to rebuild the /mnt/asec directory. I've created a tar of /mnt/asec and, if I have this problem again, I'm going to try just restoring the tar and rebooting to see if I can avoid the one-by-one reinstall.

highvista said:
I've had this happen to me a few times now. I'm running stock, rooted 2.2.1 and am using the native app2sd functionality of FroYo. It occurs after a reboot. Shelling into the phone and doing a "df" to show mounts reveals that none of the normal application mounts are in place. Going to the /mnt/asec directory shows that each of the application directories exist but are empty. When things are working, each application's directory contains a "pkg.apk" file.
The only way I've been able to recover has been to use Titanium Backup to re-install each app from the back-up I'd made before this happened. I've become very paranoid and keep my back-up up-to-date at all times. Recovering this way is still pretty tedious, and I only have about 18 apps on my SD card. I'd think there'd be a better way to rebuild the /mnt/asec directory. I've created a tar of /mnt/asec and, if I have this problem again, I'm going to try just restoring the tar and rebooting to see if I can avoid the one-by-one reinstall.
Click to expand...
Click to collapse
Oh man I didn't want to hear that! Any idea what caused this? I saw it once before and things went back to normal after another reboot. This time, it didn't
Also, any idea why I am unable to umount the SD, no "missing SD" on notification bar when it is not inserted, and stuck on "Computing..." under Manage Applications when SD IS inserted?
Ugh!!
Edit: I'm Linux igorant. Is going to /mnt/asec simply as "cd /mnt/asec"? Also, what should I expect to see with a "df" and under /mnt/asec?

This is what I see with "df"
/dev: 197552K total, 0K used, 197552K available (block size 4096)
/mnt/asec: 197552K total, 0K used, 197552K available (block size 4096)
/system: 148480K total, 125516K used, 22964K available (block size 4096)
/data: 200960K total, 178824K used, 22136K available (block size 4096)
/cache: 97280K total, 1768K used, 95512K available (block size 4096)
/mnt/sdcard: 7763968K total, 5470400K used, 2293568K available (block size 32768)
/mnt/secure/asec: 7763968K total, 5470400K used, 2293568K available (block size 32768)
I then entered "cd mnt/asec", and "ls -a", but nothing at all was returned.
I cd'ed to /mnt/secure/asec and ls showed these (abbreviated):
android.tether-1.asec
bz.ktk.bubble-1.asec
<snip>
ymst.android.fxcamera-2.asec
ymst.android.homeswitcher-1.asec
They look like reference to the apps.
I have no idea what I'm looking at...

Trying to reinstall the apps, even on the phone rather than SD, does not work either. Is the only way to fix this to do a wipe/hard reset?
I'm really curious about what happened.

I get the same thing every time I reboot.
All I do is "Force Stop" LauncherPro then wait for it to start back up again and all my apps reload.
It may take more than one force stop, but 1 usually does the trick.

Forge94 said:
I get the same thing every time I reboot.
All I do is "Force Stop" LauncherPro then wait for it to start back up again and all my apps reload.
It may take more than one force stop, but 1 usually does the trick.
Click to expand...
Click to collapse
I wish it were that easy. I've seen the problem you describe, where certain App2SD apps or gadgets don't show up on LauncherPro properly. A restart of LauncherPro fixes it. Under that condition, they still show up properly in the Market and Manage Applications. You can still launch the app by other means.
In this case, I believe the apps are actually gone...

snovvman said:
This is what I see with "df"
/dev: 197552K total, 0K used, 197552K available (block size 4096)
/mnt/asec: 197552K total, 0K used, 197552K available (block size 4096)
/system: 148480K total, 125516K used, 22964K available (block size 4096)
/data: 200960K total, 178824K used, 22136K available (block size 4096)
/cache: 97280K total, 1768K used, 95512K available (block size 4096)
/mnt/sdcard: 7763968K total, 5470400K used, 2293568K available (block size 32768)
/mnt/secure/asec: 7763968K total, 5470400K used, 2293568K available (block size 32768)
I then entered "cd mnt/asec", and "ls -a", but nothing at all was returned.
I cd'ed to /mnt/secure/asec and ls showed these (abbreviated):
android.tether-1.asec
bz.ktk.bubble-1.asec
<snip>
ymst.android.fxcamera-2.asec
ymst.android.homeswitcher-1.asec
They look like reference to the apps.
I have no idea what I'm looking at...
Click to expand...
Click to collapse
What you're seeing in the /mnt/secure/asec directory sounds normal. This directory wasn't altered by the problem when I had it occur, as far as I could tell.
Your description of the /mnt/asec directory is different than what I saw. It seems yours is empty. Mine had a directory for each app on the SD card, though the directories were empty, rather than having the pkg.apk files in them that they do when things are working normally.
I've always been able to re-install my apps, so your occurrence of the problem may be a bit different than mine. Are you able to install a new app and move it to the SD card via the standard FroYo method, for an app that allows this?

highvista said:
What you're seeing in the /mnt/secure/asec directory sounds normal. This directory wasn't altered by the problem when I had it occur, as far as I could tell.
Your description of the /mnt/asec directory is different than what I saw. It seems yours is empty. Mine had a directory for each app on the SD card, though the directories were empty, rather than having the pkg.apk files in them that they do when things are working normally.
I've always been able to re-install my apps, so your occurrence of the problem may be a bit different than mine. Are you able to install a new app and move it to the SD card via the standard FroYo method, for an app that allows this?
Click to expand...
Click to collapse
Thanks for replying. I pulled the SD, did a wipe last night. The SD has a .android_secure directory. In it, there is a file for each app that is installed on the SD. Each file has the .asec extension.
After the wipe, I reinstalled the SD and experienced similar problem as before: Can't dismount SD, installing app from Market hangs, etc. Titanium restore hangs too. Strangely, browsing to that directory using Root Explorer shows the directory to be empty.
It was when I decided to rename the .android_secure directory when everything returned to normal. The OS recreated the directory, app installation worked, and I was able to run a Titanium restore. Unfortunately, the backup is old.
I wish there is a good explaination to what happened...
Edit: Something interesting...
I did a "df" now that things are working.
I still saw everything I did yesterday (sizes a bit different):
/dev: 197552K total, 0K used, 197552K available (block size 4096)
/mnt/asec: 197552K total, 0K used, 197552K available (block size 4096)
/system: 148480K total, 125516K used, 22964K available (block size 4096)
/data: 200960K total, 178824K used, 22136K available (block size 4096)
/cache: 97280K total, 1768K used, 95512K available (block size 4096)
/mnt/sdcard: 7763968K total, 5470400K used, 2293568K available (block size 32768)
/mnt/secure/asec: 7763968K total, 5470400K used, 2293568K available (block size 32768)
(note that the /mnt/asec still shows 0k used.)
BUT NOW I ALSO SEE:
/mnt/asec/net.cdeguet.smartkeyboardpro.en-1...
and one for each app.
Was it that these apps were just not properly mounting, therefore the OS cannot "see" them?

Yes. It's what the post above is telling you.

Jack_R1 said:
Yes. It's what the post above is telling you.
Click to expand...
Click to collapse
What could have caused this? Was there a way to repair the issue without a wipe? Some way to get the apps to re-link or mount?

I was having the same problem on MicroMod. I boot into RA recovery and under partition sd I repair sd extension and upgrade ext2 to ext3 and that fix my problem. Hope that helps someone

I think i have a same problem but don't know how to fix it.
I used Titanium Backup to back up my files.
I copied these files to my external sd.
After this is did a hard reset.
After this reset the files were in the .android_secure folder on my external sd.
All the files have the extension ''asec''.
Can someone help?

I had this problem a while ago and the only way I got it to go away was to do a factory reset via clockworkmod recovery. Just today, the problem came back. What I've noticed is that after a few hours, the apps come back. I have read that this problem could be caused by corrupted files on the sd card. The only way to fix it is to format the sd card (and posibly partition it). I am planing on waiting until they come back, backing them up, backing up my SD and partitioning my sd card (which wipes everything on it.)

So regularly performing a backup image of the SD card would help someone recover from this problem?
As well, are all the phones that are having this issue using aftermarket SD cards?

few days ago I had corrupted App2SD function for 3 days.. during those 3 days I kept working to fix it and finally I had to format my SD card and reinstall all applications... it was kinda fraustrating.
But I notice that when I execute "move all apps from internal storage to SD card" on Titanium Backup, sometimes it gets stuck (when there are more than 140 apps) and all applications on SD card get corrupted.

I can only suggest to all those still stuck with default Froyo Apps2SD method, make a (long due) switch and move to DarkTremor's Apps2SD. The hassle is completely worth it.

Related

Weird memory readings..need explaining

Hi i noticed that i only have 28MB of ROM left. Installed apps ~90. I mean ok i have 16 games but it's small ones no 3D.
AppManager says 28M free of 196?! what's up with that. I though we have 512MB. To be sure i opened up shell and did a top and df -h. Here are the outputs. What the hell is going on there?
Filesystem______________Size______Used___Available__Use% Mounted on
tmpfs__________________192.9M____0_____192.9M___0% /dev
tmpfs__________________4.0M______0______4.0M____0% /sqlite_stmt_journals
/dev/block/mtdblock3_____145.0M___121.3M___23.7M___84% /system
/dev/block/mtdblock5_____196.3M___167.3M___28.9M___85% /data
/dev/block/mtdblock4_____95.0M_____78.2M___16.8M___82% /cache
tmpfs__________________8.0M______7.0M____1.0M____87% /app-cache
/dev/block//vold/179:1
RAM is also not shoing up as 512...although the device is rooted
and TOP:
Mem: 377904K used, 17136K free, 0K shrd, 8K buff, 42416K cached
CPU: 7.1% usr 21.4% sys 0.0% nic 71.4% idle 0.0% io 0.0% irq 0.0% sirq
after reading a different thread i found that different system compoents eat the rest of the ROM so we are left with ~200MB.
but what is mpfs__________________192.9M____0_____192.9M___0% /dev
Why is this not used at all?
There is no fix for the 196MB /data partition limitation yet. Your only option is to use apps2sd (after rooting). I have it set to 768MB on my SD card
thanks for the reply.. but still if i use apps2sd i won't be able to chose where to install an app.. right?
actually there is an option in the newest CM that allows you to turn on and off Install to SD so yes you can choose.
qiuness said:
thanks for the reply.. but still if i use apps2sd i won't be able to chose where to install an app.. right?
Click to expand...
Click to collapse
Its either /data or /sd-ext/data. CM adds this to the settings activity.
If you do decide to move to the other option, use titanium backup to backup to SD, then restore. It will automatically go to either /data or /sd-ext/data
Private data for apps is still stored in /data, but apps2sd does help in slowing down the filling of /data
thanks.. It's clear now.. sadly i`m not usin CM ROM since it has no smart dialing and some other stuff i cannot live without so i`m using the desire rom..
With the DESIRE being released momentarily i`m hope we get a cleaner/bugfree ROM.
Also i`m not sure what google is waiting for releasing a new ROM for the N1

App2SD and residual files

Hi there!
I just installed Apps2SD and it works great! However, I just have a few questions due to my neurotic manner.
1.) Before I installed Apps2SD, I had installed some apps to my internal phone storage. If I uninstall them, do all residual files associated with those apps get removed?
2.) Does having more internal phone storage make my phone run "faster"?
3.) Is there a limit on how big I can make my ext2/3/4 partition? I simply went with the 512 because it was set by default
(My card is a 8 gigabyte, class 6)
1.) Before I installed Apps2SD, I had installed some apps to my internal phone storage. If I uninstall them, do all residual files associated with those apps get removed?
It might depend on which version you are using. I would say yes. (based on CM 5.0.6)
2.) Does having more internal phone storage make my phone run "faster"?
No not really.
3.) Is there a limit on how big I can make my ext2/3/4 partition? I simply went with the 512 because it was set by default
No limit, I currently have 1gb, but android probably requires some fat32 for camera and other data. (texture store.. etc)
@behelit
Thank you for your response. I was debating uninstalling all my apps and reinstalling them with Apps2SD enabled. Since there's no performance degradation by having less internal phone storage, I will simply leave it as is, for now at least.
Thanks!
nexus14 said:
Hi there!
I just installed Apps2SD and it works great! However, I just have a few questions due to my neurotic manner.
1.) Before I installed Apps2SD, I had installed some apps to my internal phone storage. If I uninstall them, do all residual files associated with those apps get removed?
2.) Does having more internal phone storage make my phone run "faster"?
3.) Is there a limit on how big I can make my ext2/3/4 partition? I simply went with the 512 because it was set by default
(My card is a 8 gigabyte, class 6)
Click to expand...
Click to collapse
1. you can simply move the app from /data to /sd-ext and vice versa. Settings->application->an_app->"move"
2. No. but you get more space for application data.
3. no limit but in reality 512MB is more than enough. I have a 768MB partition and it will never get used because /data will fill up before it.
Right now with 140 apps (all on the sd card, none on the /data partition)
/data: 61% used (122MB used) <-- this will fill up first
/sd-ext: 31% used (207MB used)
britoso said:
1. you can simply move the app from /data to /sd-ext and vice versa. Settings->application->an_app->"move"
2. No. but you get more space for application data.
3. no limit but in reality 512MB is more than enough. I have a 768MB partition and it will never get used because /data will fill up before it.
Right now with 140 apps (all on the sd card, none on the /data partition)
/data: 61% used (122MB used) <-- this will fill up first
/sd-ext: 31% used (207MB used)
Click to expand...
Click to collapse
Thank you for this info! Very helpful! I did not even see the "move" option until you told me! THANKS!

Lost space on media

I did the Froyo to EMMC a while back, then subsequent had my nook reset itself to stock. What I've noticed is that the space available on the Nook now appears to be around 3.5 GB instead of the 5 GB I remember from stock.
I tried restore stock using a bootable CWR, and though it restores the stock OS, the space issue remains.
I tried using some of the part commands from the original Froyo removal instructions, but it doesn't want to access the partition I assume was shrunk.
I then put HC on the EMMC (v4) and it only shows about 800 mb of onboard storage.
Can anyone tell me how to wipe all partitions on the nook and get back to a true stock configuration?
I put this in the dev thread, if this isn't the right place please relocate.
Thanks all!
I am in the same boat. Did you find a solution? Thanks.
oplok72 said:
I am in the same boat. Did you find a solution? Thanks.
Click to expand...
Click to collapse
Take a look at EASEUS Partiion Manager. They have a free version that should help you out.
Sent from my "NookDroid" using XDA App
I am having the same issue as well. I ran Auto nooter on a new stock NC, and when I looked in system info Internal storage only showed about 1GB total with 8 or 9 hundred MB available. What is the deal?
chrishuns said:
I am having the same issue as well. I ran Auto nooter on a new stock NC, and when I looked in system info Internal storage only showed about 1GB total with 8 or 9 hundred MB available. What is the deal?
Click to expand...
Click to collapse
You're looking at /data, the storage space on the NC is /media and that would not be affected by Auto Nooter.
It could be affected by other things which write to the eMMC, Nookie Froyo, CM7, NookHoney etc.
Yeah. The other things i did was install clockworkrec prior to the nooter. I ahve also ran 3.0 and nookie froyo. Either way is there a post or a way that i can reformat the lost partition maybe an app that handles that?
I went to adb shell and did a df command. And calculated the free space and I actually have 4.9 gig but it only showed 3.7 on the gui.
/dev: 250364K total, 0K used, 250364K available (block size 4096) 0.23877 0 K
/sqlite_stmt_journals: 4096K total, 0K used, 4096K available (block size 4096) 0.00391 0 K
/rom: 71164K total, 107K used, 71057K available (block size 512) 0.06787 0.0001 K
/system: 451118K total, 274323K used, 176795K available (block size 1024) 0.43022 0.26161 K
/data: 964500K total, 68500K used, 896000K available (block size 4096) 0.91982 0.06533 K
/cache: 350021K total, 8240K used, 341781K available (block size 1024) 0.33381 0.00786 K
/media: 3897288K total, 450028K used, 3447260K available (block size 4096) 3.71674 0.42918 K
Capacity:5.71114 GIG
Used:0.76408 GIG
Free Space:4.94706 GIG

[Q] KitKat Partitioning Issue

At the risk of sounding like a complete n00b, I come to you all with an issue I'm experiencing. I know it's an operator error, so bear with me;
I just recently flashed Milaq's KK build. I increased the /system partition using the new CWM w/ data/media to 512 mbs. Everything is running well, but all the apps I install are installed to the internal memory, which maxes out around 1.4 gbs. My question is, how do I make the default install location the virtual ext SD card?
I hope this makes a bit of sense to you all - because I'm about to pull my hair out here.
Thanks for any/all input on my current situation.
I understood the partition/directory structure in my previous CM7/CM9 installs.
But with the new datamedia storage configuration I'm confused to all the various labels for the memory storage areas.
I've read the document at http://teamw.in/DataMedia
but the situation is still not very transparent.
• Under Android settings I see "Internal Storage" and "SD Card" and "USB Storage".
• In ES File Explorer I observe:
/sdcard ->
/external_sd -> /storage/sdcard1
/usbdisk -> /storage/usbdisk
/storage/emulated
/storage/sdcard0 ->
/storage/sdcard1
/storage/usbdisk
• In X-plore I also observe:
/storage/0
/storage/legacy
• CM File Manager app top level directory is labeled as "0":
It appears there is various crossover in directory mappings. Is there a definitive guide as to the partitions, directory structures/mappings and symlinks that apply to the above memory areas. There is already enough contradictory posts in various development threads on this so not asking for assumptions/presumptions. Hoping to hear from an expert/developer who knows this stuff on back of their thumb.
And what controls/manages where new apps are installed?
Good Question I also would like to know
While looking around the internet, I found this as a potential option;
In terminal;
su
pm set-install-location 2
I attempted it, but haven't noticed any difference.
/bangshead/
Stryeguy said:
While looking around the internet, I found this as a potential option;
In terminal;
su
pm set-install-location 2
I attempted it, but haven't noticed any difference.
/bangshead/
Click to expand...
Click to collapse
I think you are looking at this wrong. Instead of making Android use the external storage by default, you just need to make the data partition bigger and use that as your default storage. Milaq himself suggested this partition layout:
system - 600mb
cache - 200mb
media - 400mb
data - [remaining space] (i.e. ~11.5gb for 16gb TouchPads)
If you are going to go with Milaqs builds, The best way to do it is to move all your stuff from your sd card to your computer, wipe your sd card, use tailor in webOS to repartition to match what Milaq suggested and move all your stuff back onto your device in, I think, the sdcard0 folder (which should now have the majority of the space).
jsgraphicart said:
I think you are looking at this wrong. Instead of making Android use the external storage by default, you just need to make the data partition bigger and use that as your default storage. Milaq himself suggested this partition layout:
system - 600mb
cache - 200mb
media - 400mb
data - [remaining space] (i.e. ~11.5gb for 16gb TouchPads)
If you are going to go with Milaqs builds, The best way to do it is to move all your stuff from your sd card to your computer, wipe your sd card, use tailor in webOS to repartition to match what Milaq suggested and move all your stuff back onto your device in, I think, the sdcard0 folder (which should now have the majority of the space).
Click to expand...
Click to collapse
Thank you for your response - it was exactly what I was looking for. I knew I was overlooking a step.
I'll get around to doing that tonight.
Again, thanks so much.
:cheers:
I had the same question. But I just used tailor to resize the partitions. If it says file system error, let it fix it. As long as there are free space, all your files will stay.
Just posting a follow up;
Installed Tailor and repartitioned as per Milaq's instructions, and everything is working as it should be.
Thanks for the help, guys. Glad to know it was just my reading skills that were lacking.

Strange storage free space issues

I'm very confused about the storage on my Moto G 2nd Gen 2014, running stock KitKat.
If I look at System Settings - Storage, for the Internal Storage it shows Total 5.51GB, Available 1.08GB, Apps 6.06GB (what!), Pictures 7.09MB, Audio 220KB, Downloads 24.49MB, Cached data 389MB, Misc 316MB.
Link2SD - Storage Info shows the same 5.51GB Total, 1.08GB Available for Internal /data and SD Card /storage/emulated/legacy.
When I look with ES File Explorer, it shows 5.51GB Total and 4.43GB Used for my internal SD (/storage/sdcard0 or storage/emulated/0). However, checking the properties of the folders, they don't add up to anything like that and if I run SD Card Analyst with Root Explorer and Show Hidden Files enabled and tap Directory Analyse it finds a total of 735.78MB, with Apps being only 42.30MB, Others 460.79MB, Audio 194.90MB, Picture 15.19MB, Document 17.79MB and Video 4.82MB. In the folder view sorted by size it shows Android 402.12MB, Recordings 109.34MB, voix 82.82MB, TunnyBrowser 50.58MB, com.alk.copilot.mapviewer 27.20MB, Download 24.41MB, six more folders under 10MB and 40 more under 1MB, with about half of those showing 0.00B.
So can anyone explain what's going on here, as I'm completely baffled?
Just bumping in the hope someone will see this who can help me.
Depending on how an app works when it stores it's data on the microSD it can still show in the Settings>Storage as on the internal memory (WoT Blitz did this when I had that installed) so that can make your apps look like you have 6.6GB on the internal memory, also in a file explorer the directory in which Android, DCIM, Music, Ringtones ect. is not the 'top most' directory, in ES File Explorer you can hit the '/' (also called Device) in the top bar and there are a load more files there. If you do a 'Select all'>Properties does that come close to the 4.4GB space used?
jay2the1 said:
Depending on how an app works when it stores it's data on the microSD it can still show in the Settings>Storage as on the internal memory (WoT Blitz did this when I had that installed) so that can make your apps look like you have 6.6GB on the internal memory, also in a file explorer the directory in which Android, DCIM, Music, Ringtones ect. is not the 'top most' directory, in ES File Explorer you can hit the '/' (also called Device) in the top bar and there are a load more files there. If you do a 'Select all'>Properties does that come close to the 4.4GB space used?
Click to expand...
Click to collapse
Hmm, I am using Obb2SD to move all my game data from Android/Obb to the external SD card, so maybe that's confusing it but that seems like it could be a problem as if it think the internal storage is full even when there's really plenty of space free, I imagine it will start throwing up errors and won't allow me to store anything else on it, which rather defeats the point of moving the games in the first place.
If I do select all->properties from / that includes my external SD as well and totals 46.42GB. Even if I unselect /mnt and /storage it still comes to 8.03GB which can't be just the internal storage as that's only 8GB in total and I supposedly have 1.43GB free on that. Just /data is 6.21GB.
You do know that your internal storage is a combination of your phone storage and internal storage right?
In case you didn't know just open root explorer and go to data folder (long press and select properties) and calculate how much storage it use...then do the same things with systems folder...then combined data storage + system storage + internal storage used and you will get almost the same amount like in settings/storages show you...
Sent Using My Xiaomi Redmi Note 4G
When I say Internal storage I simply mean that which is not the external SD card. I don't know what the difference between phone storage and internal storage is though, as far as I'm aware there's just 8GB internal storage.
Checking the properties for /data shows it as 6.21GB (6.31GB Used), so I suppose with 1.08GB available that totals 7.39GB which could be close enough to 8GB to be correct. /system is 1.17GB. Still doesn't make any sense that Settings - Storage and Link2SD shows Total 5.51GB, 1.01GB Available but Apps as 6.06GB. Nor does it make any sense that the Homepage in ES File Explorer shows 4.28GB used on 0 but tapping that, which takes me to emulated/0 and selecting everything, Properties only shows 700MB used.
Doing directory analyse on /data shows the majority in Others 3.70GB, then Apps 1.95GB. It's a pain there's no way to see how much storage is used by each folder without checking Properties for each one individually but if I untick all the folders starting with a then the total is 4.06GB (4.15GB used), so there's about 2.15GB in those folders. Unticking all the folders starting with b through d drops it down to 2.07GB (2.12GB Used) so they account for another 2GB. Digging deeper I can see that /data/app uses 1.73GB, /data/app-lib uses 432.15MB, /data/data uses 1.25GB, data/dalvik-cache uses 717.77MB, /data/media/ uses 554.41MB, /data/sdext2 uses 272.20MB, /data/user uses 1.25GB and everything else is inconsequential. Adding those up comes to roughly 6.2GB, which exceeds the Total 5.51GB that Settings - Storage shows, even without adding the 1.17GB from /system.
None of this helps me understand what in those folders is using up all the space though, so does anyone know of an app that will show the space used by folder, like Treesize for Windows?
Can no-one help me make sense of this? The weirdest thing is that 0 (Internal storage) in ES File Explorer's Home screen shows 4.28GB but opening that folder and selecting all the folders gives a total of only 700MB, which doesn't make any sense.
I see that Titanium Backup can produce a list of apps sorted by space used, so I'll try adding those up manually and see what they total. I have linked a few large apps to the external SD with Link2SD though, so they shouldn't be using any internal storage and I'll have to subtract their amounts from the total.
Well I decided to wipe data and dalvik-cache (i.e. factory reset) from TWRP and start again, to try and get to the bottom of this.
TWRP showed about 370MB out of 5.51GB used after wiping. After booting, this was about 560MB (I guess due to the dalvik cache repopulating, currently 258.98MB) and by the time Google Play had finished updating the pre-installed apps, this had risen to 1.27GB.
The majority of this, 1.17GB, is in /Data. Settings - Storage shows 4.24GB out of 5.51GB available. ES File Explorer is a bit stupid, as it shows the same in the Homepage the same for 0 (i.e. 1.27GB used out of 5.51GB) but tapping that links to emulated/0 (which is just an alternative path to /storage/sdcard0), which only has a total of 4.32MB in it. What the Homepage shows is actually the used space from root (i.e. /) so it should show and link to that, not /storage/ emulated/0.
Another anomaly is that /data/data and /data/user are alternative paths to the same place, containing 230.99MB, which results in it getting counted twice, so really there's only a total of 965.51MB of files in /data, not 1.17GB. Obviously as /data/data grows, that's going to result in even more space being doubly allocated and thus unavailable, i.e. if I have 1GB in /data/data, it's going to reduce my free space by 2GB.
I also notice that /data/app contains all the apks for the apps that are installed. I thought apks were just install packages, like Windows msi or exe installs and that when installed they unpacked to somewhere, so isn't it just wasting space keeping all of the apks here? It's only 357.19MB at the moment but when I checked it before I factory reset it was 1+, maybe 2+ GB, so that's obviously a lot of space to waste out of 5.51GB.
Hopefully someone can help me clear up these questions, as I don't want to start reinstalling all my apps yet if I might need to wipe it all again to reset it. I've backed up everything with Titanium but it's still quite a hassle, as there doesn't seem to be a way to make a list of installed (as opposed to backed up but not installed, or frozen) apps before wiping and then restore just those afterwards, so I'll have to go through the list and try and remember what I didn't have installed before and de-select those.

Categories

Resources