I have been rolling my own /system partitions on Jelly Bean, and noticed something a bit strange... After increasing the ext2 /system partition size, Android seems to report inconsistent partition sizes depending on what source I'm getting the partition size info from.
When I use an app such as Link2SD to show me the partition usage details, the information is DIFFERENT from what the shell command "df" tells me.
From the "df" command, the /system partition supposedly has 137.6MB free...
/system 1008.9M 871.3M 137.6M 4096 <---- inconsistent info
/data 3.0 G 300.3M 2.7 G 4096
/cache 126.0M 4.0 M 121.9M 4096
However, from apps such as Link2SD, the /system partition size shown is the original smaller size and there is correspondingly less free space. (0.98GB with 85MB free).
Related
Has anyone else run into a situation where your tablet has received a low space warning on your Transformer but you haven't installed/used a lot of space?
When I look at my storage break down I use about 400mb of media and 12GB+ of application. When I view by application there is no way that it's 12GB. So I installed DiskUsage and the "system data" is using 11GB on it's own. I am suspecting it some how related to system crashes but have not confirmed this. Anyone else?
I am having the same problem just different amount of space shown
I've been digging around in adb tonight trying to get to the bottom of this:
Code:
C:\Program Files (x86)\Android\android-sdk\platform-tools>adb shell df
Filesystem Size Used Free Blksize
/dev 364M 32K 364M 4096
/mnt/asec 364M 0K 364M 4096
/mnt/obb 364M 0K 364M 4096
/system 503M 340M 163M 4096
/data 13G 11G 1G 4096
/cache 521M 8M 512M 4096
/mnt/sdcard 13G 11G 1G 4096
I've been trying to get a good look into /data, but it's a system owned directory and you need root access to view some of the contents.
When I try to run:
adb shell ls /data
It responds:
opendir failed, Permission denied
Looks like I will have to root to continue the hunt, because I want to find the cause. The unfortunate thing is I need to revert my version back to 8.3.2.9 to be able to perform the root successfully. About to begin work on that now.
Is it when you are updating apps in the market and the app installation fails with a low space warning?
My Nexus S does that (with over 6gb available), then re-try the install and it works. Not sure where the issue is.
@tekkitan my big concern is:
Code:
/data 13G 11G 1G 4096
/mnt/sdcard 13G 11G 1G 4096
Because I've only used about 500MB's of space.
But you are correct I get the error trying to install from the market, and sometime if I delete some apps I can make enough room to install a new one.
There is a difference between 2.x and 3.x of android and how it allot's space for apps. In 2.x there is a partition that is limited size where you can install apps no matter the size of the onboard memory, unless you root and work around it. In 3.x they changed that and all free space can be used for apps.
So I can't perform the root tonight, I don't have a microSD card I can use to downgrade to 8.2.3.9. Will have to wait until tomorrow now.
wildbohr said:
@tekkitan my big concern is:
Code:
/data 13G 11G 1G 4096
/mnt/sdcard 13G 11G 1G 4096
Because I've only used about 500MB's of space.
But you are correct I get the error trying to install from the market, and sometime if I delete some apps I can make enough room to install a new one.
There is a difference between 2.x and 3.x of android and how it allot's space for apps. In 2.x there is a partition that is limited size where you can install apps no matter the size of the onboard memory, unless you root and work around it. In 3.x they changed that and all free space can be used for apps.
Click to expand...
Click to collapse
The Nexus S only has internal storage so it is similar.
Did you try just re-trying the download instead of removing apps? Like I said, if I just simply retry the isntallation/update, it works just fine.
I can't get imagine how apps could significantly impact the internal memory on a 16 or 32gb TF.
I've been loading apps on my Droid X internal 8gb memory with wild abandon for almost a year, and have only used up about 3gb. Tablet scaled apps might be somwhat larger, of course, but not that big.
Sent from my DROIDX using Tapatalk
Again I don't think it is a space issue. Just a bug with the Android Market.
Suddenly I can't download from market any large apps ( about 25 MB), using logcat I see "... not enough free space in internal downlad storage".
90% of the installed apps are on the sd, and I have a lot of free space :
SD 3 GB free
Internal 1,36 free
Emmc 11 free
I tried to clear cache and vm cache from recovery, but no luck.
I am using a cyanogenmod rom.
Any advice,pls ?
Are you using the new market? If so that has been causing the same problems for me
natious said:
Are you using the new market? If so that has been causing the same problems for me
Click to expand...
Click to collapse
I tried both: at the beginning I had the old market, after I tried with the new one: same result!
I looked around and I found that the problem could be the /cache folder.
I have:
Filesystem------Size--Used--Free--MountPoint
/dev/block/stl1 30.7M 4.1M 26.7M /cache
If the system uses the /cache downloading I could never install an app like that (about 28MB).
Can I mount/link the /cache fs in another place ?
EDIT:
Funny situation, indeed!!
I switched from cyano to overcome (full wipe).
My /cache was 30 MB and with 4k used, so I could install one big application!
I started to install another one.... no space left!
Again... now I have /cache with 4MB used, so I can't install any other big application!!
Browsing with root file manager I really can't see anything of 4MB size (even hidden!!)
EDIT [SOLVED]
Using the script in this thread
http://forum.xda-developers.com/showthread.php?t=1188972&highlight=cache
Code:
stratosk - 27/07/2011
# Corgar - 28/07/2011 ( changed location of cache in dbdata for onenand i/o, decreased cache dimension to 50mb )
# Remount /cache partition with a larger one (54.5 MB / 50mb cache)
# create a file 54.4 MB
dd if=/dev/zero of=/data/cache.img bs=1024 count=55808
# create ext4 filesystem
mke2fs -F -T ext4 /data/cache.img
# unmounting old cache partition
umount /cache
# mount
losetup /dev/block/loop7 /dbdata/cache.img
mount -t ext4 /dev/block/loop7 /cache
chown system.cache /cache
chmod 770 /cache
All the applications can be installed!!
i have same problem
How does one either mount,move or symlinking /cache to sd-card - preferely sd-ext?
I have 24 MB /cache and when market downloads app to install (installs to sd-ext using DT a2sd) it caches to /cache first and then installs to sd-ext..
Apps larger than 24 MB causes market to stop downloading and tells theres not enough space.
I was able to umount -l /cache and remount it to sd-ext which works.
How do you make this constant with a startup script?
Hi all,
I upgraded my Samsung Galaxy GT I9100 to ICS version 4.0.3 official Rom 1 month ago. This week my phone is giving me issues with the storage: I can't install or update some apps, I get the error: "application cannot be installed in the default installation location".
More I cannot move any apps from my Internal Storage to USB storage (which is still internal): when I try to move apps by clicking the button "Move to SD Card", in the settings menu of the app, I get the error: "Couldn't move app. Not enough storage space". But I actually I have free space:
INTERNAL STORAGE:
Total space: 1.97 GB
Available: 257 MB
USB STORAGE
Total space: 11.50 GB
Available: 7.34 GB
Any support please?!
thanks
Mario
caesarchris said:
INTERNAL STORAGE:
Total space: 1.97 GB
Available: 257 MB
USB STORAGE
Total space: 11.50 GB
Available: 7.34 GBAny support please?!
Mario
Click to expand...
Click to collapse
Yes you have a lot of free space on phone
I think this is about cache free space available on phone do like this
Code:
adb devices
adb shell df
post screenshot
here it is my storage LOG
C:\android-sdk\platform-tools>adb devices
List of devices attached
00194ac11e966e device
C:\android-sdk\platform-tools>adb shell df
Filesystem Size Used Free Blksize
/dev 415M 32K 415M 4096
/mnt/asec 415M 0K 415M 4096
/mnt/obb 415M 0K 415M 4096
/system 503M 486M 17M 4096
/cache 98M 4M 94M 4096
/efs 19M 8M 11M 4096
/data 1G 1G 248M 4096
/mnt/.lfs: Function not implemented
/mnt/sdcard 11G 3G 7G 32768
thanks!
Mario
caesarchris said:
here it is my storage LOG
C:\android-sdk\platform-tools>adb devices
List of devices attached
00194ac11e966e device
C:\android-sdk\platform-tools>adb shell df
Filesystem Size Used Free Blksize
/dev 415M 32K 415M 4096
/mnt/asec 415M 0K 415M 4096
/mnt/obb 415M 0K 415M 4096
/system 503M 486M 17M 4096
/cache 98M 4M 94M 4096
/efs 19M 8M 11M 4096
/data 1G 1G 248M 4096
/mnt/.lfs: Function not implemented
/mnt/sdcard 11G 3G 7G 32768
thanks!
Mario
Click to expand...
Click to collapse
It seems your cache size is ok you have 94MB free on /cache part !
but I see something that I don't like here you have 32MB swap on sdcard
for future when formatting sdcard choose 0MB for swap size
but how to solve your problem
1.try to purge Dalvik-cache here is how to
I don't know if your phone is rooted or have CWM recovery installed
if so it's easy to purge Dalvik from adb or CWM recovery menu
when restarting will take a few minutes for system to reconstruct Dalvik-cache- just wait !
2. try to replace sdcard if you have another one just to see where is that problem
how it looks with new sdcard can you move apps to sdcard ?
If you don't mind reinstalling all your apps, you could also try a hard reset.
The same problem. Still cannot solve it.
sercherry said:
The same problem. Still cannot solve it.
Click to expand...
Click to collapse
i just found a solution which worked for me.
Here is the process i used to fix the problem :
In Terminal emulator i've cleared the log files:
su
cd /data/log
rm *.log
exit
And next was to clear the Dalvik and cache with a specific app (quick terminal) (because in CWM the location of the Dalvik couldn't be found)
After the reboot my phone was working perfectly again.
Some info:
Code:
Phone: Huawei P8 Lite (ALE-L21) - 1 SIM
So, i've been rooting my device and got it working after probably 12 hours of downloading Firmwares that were corrupted and had slow download speed and flashing up to 12 updates.
I got it working, still not rooted but i can live with that. TWRP is enough.
The problem is, I've downloaded some apps, and some updates were applied from Google Play.
What I've encountered is that the memory is just 2G big!
That's so strange, because I've already had a bigger storage size before flashing.
I'll show you what's the problem:
As i've found out, mmcblk0 is the internal NAND memory.
So, we fetch the partition table which is stored in mmcblk0
Code:
/data # fdisk -l /dev/block/mmcblk0
Found valid GPT with protective MBR; using GPT
Disk /dev/block/mmcblk0: 30785536 sectors, 2744M
Logical sector size: 512
Disk identifier (GUID): f9f21fff-a8d4-5f0e-9746-594869aec34e
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 30785535
Number Start (sector) End (sector) Size Code Name
...
40 8118272 30785535 [U][COLOR="Red"]10.8G[/COLOR][/U] 0700 userdata
Ok, so now we have this information,
Partition is 10.8G big
The partition name in the /dev/block is mmcblk0p40 (as mmcblk0 is the main internal disk and "/data" partition is the 40th partition)
Ok, It's least 10G big, so, what's the problem?
We see the partition is 10.8G big. BUT...
If we use "df" we can see the real deal
Code:
/data # df -h
Filesystem Size Used Available Use% Mounted on
/dev/block/mmcblk0p10
11.7M 7.3M 4.1M 64% /mnvm1:0
tmpfs 917.2M 16.0K 917.2M 0% /dev
tmpfs 917.2M 16.0K 917.2M 0% /tmp
/dev/block/mmcblk0p40
[U][COLOR="Red"]2.4G[/COLOR][/U] 2.4G 50.6M 98% /data
My mom's phone, that is the same phone as mine.
i(dot)imgur(dot)com(slash)dZcD1ME(dot)png
Mine instead
i(dot)imgur(dot)com(slash)Z9aybBu(dot)png
Anyone knows what's going on?
Do i need to wipe partition?
Do i need to resize fs?
Thanks beforehand
Solution:
If you have TWRP:
Wipe -> Advanced Wipe -> Select "Data" and press "Repair or Change File System" -> Resize -> Swipe to Resize
If you dont have TWRP:
Use resize2fs command