Problem Freeing Up Space In /system

Discussion in 'Android Hacks and Help' started by phaze3131, Feb 25, 2010.

  1. phaze3131

    phaze3131 Member

    Joined:
    Oct 28, 2009
    Messages:
    290
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    Hey guy I am having problems with space in my /system folder and I need some help :(

    I am trying to patch a new framework-res.apk but it is 5mb and in Root Explorer it says my system is using 137.78MB and has free 2.59MB.

    Does anyone know why or what could be here that is taking up so much room. I know I put a facebook.apk and pandora.apk in the /system/app folder because I wanted the skinned but many people have done this without trouble.

    Thanks for the help.
     
  2. mjones1052

    mjones1052 Member

    Joined:
    Dec 21, 2009
    Messages:
    343
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Philly
    Ratings:
    +0
    We were emailing, but yea, this is really weird. Normally Droid's should have 261 mb, at least that's what mine says. Try maybe pushing it with ADB as opposed to copying through root explorer?
     
  3. phaze3131

    phaze3131 Member

    Joined:
    Oct 28, 2009
    Messages:
    290
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    but why does root explorer show a wrong amount? Now I just wanna fix this problem before I go installing themes :( sucks.
     
  4. mmitchell816

    mmitchell816 Member

    Joined:
    Dec 27, 2009
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    Ratings:
    +0
    Sizes

    If you go into a terminal on your phone and type df it will pull up all of the blocks and where they are mounted and how much space is left.

    its like if you were to take a windows computer and a hdd with lots of small partitions and put the
    windows on partition a,
    programs on partition b,
    user data on partition c,
    and temp files on partition d.

    even if the whole hdd has 20gigs free that doesn't mean that any of the partitions can use it. once your /system directory is full its full

    the /system has a total of 140MB usable before any system files are placed on it
    /data has 260MB
    /cache has 94MB
    /config has 1.5MB

    try moving some apps that aren't required in the /system/app directory into the /data/app directory
     
  5. SANhacker

    SANhacker Member

    Joined:
    Jan 7, 2010
    Messages:
    352
    Likes Received:
    7
    Trophy Points:
    18
    Location:
    Arizona
    Ratings:
    +7
    So we can look at /system /data /sdcard /... as partitions with limits to each.
    Thanks for the great explanation and analogy.
     
  6. mmitchell816

    mmitchell816 Member

    Joined:
    Dec 27, 2009
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    Ratings:
    +0
    Yep

    Yes you can and like i said use the df command(need busybox installed) but yeah from any where just type df and enter and presto each "partition" as you could put it and the space used and space left.

    And programs can go in either the /system/app or /data/app

    different roms use different amounts of space like the droidmod 1.0 leaves me with ... last time i checked i think 30MB free on the system block

    while Simpply Stunning v100(2.1android) left me with like 1-2MB on the system block after i got my apps on it
     
  7. SANhacker

    SANhacker Member

    Joined:
    Jan 7, 2010
    Messages:
    352
    Likes Received:
    7
    Trophy Points:
    18
    Location:
    Arizona
    Ratings:
    +7
    Ahh. So since /system/app and /data/app are in my path it doesn't matter where I put the app. I also see it is "block" not "partition" in the UNIX world.

    I need to go grab my "UNIX for Dummies" book. I've worked on a lot of operating systems through the years, "cough" pre-DOS "cough", and had been trying to avoid UNIX. Thanks again.
     
  8. mmitchell816

    mmitchell816 Member

    Joined:
    Dec 27, 2009
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    Ratings:
    +0
    Lol

    yeah i know what you mean.

    Im no unix/linux expert but i do work on many linux servers every day (all command based, no GUI) and am starting to like it. and there are partitions in unix/linux. Like windows uses fat32,ntfs, etc linux uses ext2,ext3,etc

    the reason i was saying blocks is because of how they are mounted on the phone as a mtdblock

    unix/linux can be a lot of fun once you get used to it. Especially the terminals. lol i cant stand linux gui. idk why but i keep using windows for that reason! lol
     
  9. phaze3131

    phaze3131 Member

    Joined:
    Oct 28, 2009
    Messages:
    290
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    Ok but my system/data doesn't have any large files at all, the only 2 I added were pandora and facebook and they are not large. So what files should I move around I'm really scared to mess something up.

    How can I breakdown what each folder size is then maybe i could narrow down the problem...

    Just frustrating I don't get how I am the only one with this problem of only 2MB free I'm using BB 2.1

    Edit: just did a new install of BB 2.1 v0.5 and system has 4.36MB free, but the framework-res.apk is over 5MB so is this the problem?

    Editx2: removed live wallpapers and now I have 8.5MB free, but I tried MM again but still have stock notification images :( this sucks why me :( I gotta be doing something wrong but I keep following the directions.
     
    Last edited: Feb 26, 2010
  10. mmitchell816

    mmitchell816 Member

    Joined:
    Dec 27, 2009
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    Ratings:
    +0
    Sorry man

    I sorry man the first thing i would do is boot in to sprecovery and wipe the system. maybe there are some stale files that aren't getting erased.

    and if you have busybox installed you can go into any directory and type ls -al and you will get a print out of the size, permisions, last time edited, and file name.
     
  11. Se7enLC

    Se7enLC Active Member

    Joined:
    Nov 16, 2009
    Messages:
    1,262
    Likes Received:
    0
    Trophy Points:
    36
    Ratings:
    +0
    If you're willing to do a bit of work, here's a good way to figure out where your space is going. Requires busybox.

    Open up Terminal Emulator and run this command:
    Code:
    busybox df -h
    This will give you a nice human-readable display of your filesystems and what is being used. Output will look something like this:

    Code:
    Filesystem           Size   Used   Available Use% Mounted on
    /dev/block/mtdblock4 140.4M 107.6M 32.8M     77%  /system
    /dev/block/mtdblock6 261.8M 235.3M 26.4M     90%  /data
    ...
    
    If either your /system or /data partitions are getting full, you can figure out who the culprits are.

    Code:
    busybox du -d 1 -h /system
    which will give you something like:
    Code:
    518.5K /system/etc
    684.5K /system/xbin
    5.9M   /system/tts
    8.1M   /system/media
    2.1M   /system/libskia
    5.9M   /system/bin
    8.5M   /system/framework
    2.1M   /system/usr
    39.6M  /system/lib
    26.9M  /system/app
    4.1M   /system/fonts
    2.0K   /system/lost+found
    104.6M /system
    
    From there you can identify the "big spenders" and look at them more closely. Lets look at my system apps:

    Code:
    busybox du -h /system/app/*
    Lots of files here, but there are only a couple that are > 1MB:
    Code:
    1.2M /system/app/CorpCal.apk
    2.1M /system/app/Dock.apk
    2.8M /system/app/Launcher.apk
    2.4M /system/app/QuickOffice.apk
    1.0M /system/app/Settings.apk
    3.1M /system/app/VoiceSearchWithKeyboard.apk
    
    Aha! Why do I still have CorpCal.apk on here? That's 1.2MB right there. Hmm, QuickOffice. I wonder if that can run from /data/app? (I have no idea if it can, but I'm curious now)

    You can do the same thing with the /data directory to see what apps are being hogs.

    Be careful deleting stuff if you don't know what it does. You should always be able to go back in using adb shell from recovery, but be careful and keep backups of anything you change. Good luck and enjoy!
     
  12. mmitchell816

    mmitchell816 Member

    Joined:
    Dec 27, 2009
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    Ratings:
    +0
    yeah most any app that you can download from the market to my knowledge can be moved to /data/app

    easy to try mv /system/app/appname.apk /data/app/

    if the app nolonger works just move it back

    mv /data/app/appname.apk /system/app/
     
  13. Se7enLC

    Se7enLC Active Member

    Joined:
    Nov 16, 2009
    Messages:
    1,262
    Likes Received:
    0
    Trophy Points:
    36
    Ratings:
    +0
    Apps that you download from the market don't install in /system/app, though. I guess if it's an app that comes with the Droid, but CAN be installed from the market can be moved, since assumedly it works fine from /data/app on other devices.
     
  14. PhontomF

    PhontomF Member

    Joined:
    Nov 27, 2009
    Messages:
    212
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    Se7enLC, following your instructions I found a directory in my data partition that is called /data/dalvik-cache and it contains 63megs. Is this just temp cache files I can delete to free up space or is it required? Would be nice to free up that much space for more apps. :)
     
  15. Se7enLC

    Se7enLC Active Member

    Joined:
    Nov 16, 2009
    Messages:
    1,262
    Likes Received:
    0
    Trophy Points:
    36
    Ratings:
    +0
    <sarcasm>Sure, go ahead and delete it!</sarcasm>

    I have no idea if you can or not. It looks like it's just cache, and that directory has files named after each app. It's probably ok to delete them, but there's a chance that it keeps track of cache files in another place and deleting them could cause things to crash.

    It's also possible (likely) that the cache will just be recreated again (possibly on reboot). If you don't have enough space to cache, it might run slowly or have other problems.

    If you decide to delete it, let us know what happens (do they get regenerated, do things run slower, etc)
     
Search tags for this page
0mb on system android
,

amount of free space in system 0kb

,
android free up system space
,
android system 0kb
,
android system partition full
,
busybox amount of free space in /system 0kb
,
free up android system space
,
free up space system android
,
how to fee the space of lib. in system android
,
how to free up system space on android