Insufficient storage - Hero, G2 Touch General

I try reboot but wont help. I have this rom for 2 months and this problem appears about week ago. Settings - SD and phone storage shows 64MB available space on internal phone storage, DiskUsage also shows 64MB. Smart Monitor shows 10MB free on /system, 3MB /cache, 63 /data and 328 on /sdcard. I dont use apps2sd or dalvik cache.
chown system.system /data/app
chmod 0771 /data/app
wont help
edit:i have villainrom 12

Related

Insufficient Space Available

Ok, so I was rocking Thedude's 1.1a and new a2sd method on a 1 gig SD card. I recieved my 16 gig card in the mail yesterday, so I backed up my /system/sd/app and /system/sd/app-private, rebooted the phone with the new card in, partitioned it (500MB ext2), copied the directories back over to the SD and everything worked dandy.
Until, that is, I needed to install an application. First, it was LatinIME.apk. The app was acting goofy for my beforehand, but I was waiting until I got the new SD card to try fixing it. I removed the apk from /system/sd/app but the app still worked, so I had to uninstall it from the settings menu. I then tried installing it from the apk using appsintaller, but got the error message:
"Android Keyboard could not be installed on this phone."
Great.. I tried reboot etc, but nothing. So I try to ADB install it:
"INSUFFICIENT_SPACE_AVAILABLE" (or something to that extent, didn't write it down)
Alright, whatever. I physically copied the apk into /system/sd/app and it worked out beautifully.
Now, when I try to install an app from the market, I get an error:
"Installation error: Insufficient storage available"
which is complete BS because I can (using adb shell) put any file I want into /system/sd/app and there's 470 MB remaining.
I searched for this problem, but all I found were people with the same problem on A2SD old method, and they had to symlink app-private to their SD card too. I have app-private and app in /system/sd, so I'm not too sure what the problem is. When I remove my new card and use the old card, same problem. When I remove my card and try to have it install to /system/intmem, same problem. Does anyone have any ideas?
Ooglez said:
Ok, so I was rocking Thedude's 1.1a and new a2sd method on a 1 gig SD card. I recieved my 16 gig card in the mail yesterday, so I backed up my /system/sd/app and /system/sd/app-private, rebooted the phone with the new card in, partitioned it (500MB ext2), copied the directories back over to the SD and everything worked dandy.
Until, that is, I needed to install an application. First, it was LatinIME.apk. The app was acting goofy for my beforehand, but I was waiting until I got the new SD card to try fixing it. I removed the apk from /system/sd/app but the app still worked, so I had to uninstall it from the settings menu. I then tried installing it from the apk using appsintaller, but got the error message:
"Android Keyboard could not be installed on this phone."
Great.. I tried reboot etc, but nothing. So I try to ADB install it:
"INSUFFICIENT_SPACE_AVAILABLE" (or something to that extent, didn't write it down)
Alright, whatever. I physically copied the apk into /system/sd/app and it worked out beautifully.
Now, when I try to install an app from the market, I get an error:
"Installation error: Insufficient storage available"
which is complete BS because I can (using adb shell) put any file I want into /system/sd/app and there's 470 MB remaining.
I searched for this problem, but all I found were people with the same problem on A2SD old method, and they had to symlink app-private to their SD card too. I have app-private and app in /system/sd, so I'm not too sure what the problem is. When I remove my new card and use the old card, same problem. When I remove my card and try to have it install to /system/intmem, same problem. Does anyone have any ideas?
Click to expand...
Click to collapse
I hate to be devil's advocate here but do you know how much space is available on /system/sd/intmem? Could be that it's seeing that there isn't enough space there and so won't let you install.
[email protected] said:
I hate to be devil's advocate here but do you know how much space is available on /system/sd/intmem? Could be that it's seeing that there isn't enough space there and so won't let you install.
Click to expand...
Click to collapse
busybox df -h: (or at least the relevant parts)
Code:
Filesystem Size Used Available Use% Mounted on
/dev/block/mtdblock5 74.8M 28.6M 46.2M 38% /system/intmem
/dev/block/mmcblk0p2 535.5M 27.8M 480.4M 5% /system/sd/
unionfs 535.5M 27.8M 480.4M 5% /data/app
unionfs 535.5M 27.8M 480.4M 5% /data/app-private
Also, I have tried wiping and reflashing the phone, then reinstalling the latest a2sd method (replacing both init.rc and a2sd.sh).. so I'm really at a loss :-/
i think there might be two explanations
one is that there is some other file system error, but the app installer is not designed to cope with that, so it mistakenly reports no space.
or the installer is hardcoded to check the /data partition instead of the mount point /data/app is in.
billc.cn said:
i think there might be two explanations
one is that there is some other file system error, but the app installer is not designed to cope with that, so it mistakenly reports no space.
or the installer is hardcoded to check the /data partition instead of the mount point /data/app is in.
Click to expand...
Click to collapse
I think it may be the first one. When I connect my SDcard to the computer using the pull down menu and mount (which worked on the 1 gig,) upon disconnecting, the phone crashes trying to "prepare the SD card" and will reboot. What's goin on, eh?
For troubleshooting purposes, this is what I get from
busybox df -h:
Code:
Filesystem Size Used Available Use% Mounted on
tmpfs 48.2M 0 48.2M 0% /dev
tmpfs 4.0M 0 4.0M 0% /sqlite_stmt_journals
/dev/block/mtdblock3 90.0M 64.4M 25.6M 72% /system/
/dev/block/loop0 836.0K 836.0K 0 100% /system/modules
/dev/block/loop1 3.5M 3.5M 0 100% /system/xbin
/dev/block/mtdblock5 89.8M 29.8M 59.9M 33% /data
/dev/block/mtdblock4 30.0M 1.1M 28.9M 4% /cache
/dev/block//vold/179:1
7.4G 3.5G 3.9G 47% /sdcar
Using Dude's 1.2, I DO NOT want apps2sd, so do not have ext2 partition on my SD card. I like to just be able to install apps to internal memory.
Ooglez said:
I think it may be the first one. When I connect my SDcard to the computer using the pull down menu and mount (which worked on the 1 gig,) upon disconnecting, the phone crashes trying to "prepare the SD card" and will reboot. What's goin on, eh?
Click to expand...
Click to collapse
Sorry, wasn't concentrated enough the first time. I saw that using the unionfs method, you mounted the internal data partition on /system/intmem , so what is data now? Is it mounted at all? Because if it's not mounted, it is just a directory of the ramdisk image, which is read-only and indeed has no free space. Could you explain to my why it is necessary to mount mtdblock5 this way?
what is the output of :
ls -l /system/sd
It's a permission issue I think .
try
chown -r 1000:1000 /system/sd
chmod -r 755 /system/sd
I really do believe poeple need to read that sticky. Please people do a search before posting.
maybe the 2 100%'s in the chart?
Haven't tried ADB on my pc but trying to install from market gets me same from above, " insuffcient storage space available. This is what I get from busybox
$ busybox df -h
Filesystem Size Used Available Use% Mounted on
tmpfs 48.2M 0 48.2M 0% /dev
tmpfs 4.0M 0 4.0M 0% /sqlite_stmt_journals
/dev/block/mtdblock. 367.5M 64.4M 3.1M 95% /system
/dev/block/loop0 836.0K 836.0K 0 100% /system/modules
/dev/block/loop1 3.5M 3.5M 0 100% /system/xbin
/dev/block/mtdblock5 74.8M 34.3M 40.5M 46% /data
/dev/block/mtdblock4 67.5M 1.5M 66.0M 2% /cache
/dev/block//vold/179:1
3.8G 3.4G 412.7M 89% /sdcard
I do not have A2SD mainly because I don't care for it. I am well aware that 1.2 of dude's bill carries bugs and I would revert back to 1.1 or something of similar likes but being unable to install a file manager and not being able to access a pc has left me with an eternally stock g1...
reverted to dude 1.1
That solved it now I'm on cyanogen's build works great. I'm ditching dude till he fixes it...
What DID WORK on the other hand was removing the entire app directory under /data/data.
So for instance for "Network Discovery" app that would not update due to
"insufficient storage available" i did:
cd /data/data
rm -rf info.lamatricexiste.network
The app would then install from Market as usuall.
apider said:
cd /data/data
rm -rf info.lamatricexiste.network
Click to expand...
Click to collapse
That's strange, I have this issue from time to time, developing from eclipse, when pushing update of my app to the device (N1).
Network Discovery does not have any special thing that could end to this behavior, using only the sdk..
Let me know martindjr88 if you are using "Network Discovery" too.

Apps2SD works but I'm losing Internal Memory too?

Hello,
I thought that Apps2SD wasn't working on my Modaco 2.9 ROM. I was fairly certain that this could be down to a formatting error on my SD. I formatted the SD card again on my computer and the apps still remained in the phone's memory. Or at least the internal memory displayed a reduced figure each time I installed an app.
So what I did next was to install Amon Ra's recovery (version 1.3.2).
Once I'd done that I wiped my Dalvic Cache and rebooted.
Once I'd done that I repaired my EXT Cache and upgraged it to EXT4.
Once I'd done that (and with still no memory change)
I backed up my SD Card and then partitioned it again using the option in the Recovery menu.
I boot the phone and all my apps and shortcuts are gone, as if they were installed on the SD card (which had just been partioned). When I checked the phone's memory it was STILL saying I had 73mb internal memory.
I don't get it! What's happened?!
(also posted at Modaco)
Well the thing that I found out about internal memory after numerous formatting and whatnot...is that Gmail storage takes up space using your INTERNAL memory. Meaning, whenever your Gmail is synced, it'll save those emails on your internal memory. Don't trust me? Take a look at your internal memory, then go to applications > gmail storage > clear data and you'll see that your internal memory has gone up.
To confirm that A2SD is working, open a terminal (such as Better Terminal Emulator):
To confirm whether A2SD is working properly from a terminal / ADB Shell type:
busybox df -h
You should see something along these lines below:
/dev/block/mccblk0p2 532.9M 67.1M 438.7M 13% /system/sd
The key is that you see one of the entries as /system/sd
This means that the phone is picked up your Ext2 partition.
Next if you see the above you can check that you setup the symlinks properly.
To do this type these cmds:
cd /data/app
pwd
The terminal returns /system/sd/app which means that the apps are now being saved onto the Ext2 Partition since the /system/sd = your Ext2 partition.
If it returns /data/app then the apps are still being installed onto the phone's internal rom.
Hope this helps, let me know if not.
Click to expand...
Click to collapse
Taken from somewhere, I forgot. All credit goes to that poster. Oh and Ext2 can also be 3 or 4 depending on what you have.

A2SD - Can someone point me to a how-to?

Fairly new to custom ROMs... Started with Damage 2.0.2 and been updating all the way through to 2.0.7.2, but never attempted the A2SD. Can someone point me to a good how to guide on setting this up for the first time. I have found a few forum how-to's on switching SD cards with A2SD, but most things i am finding with searches are assuming it is already setup.
Please attach links or paste in a simple how-to for me. Thanks.
Also, will I be able to keep this ROM intact, (i know i will have to backup the SD card to repartition it...), but will i have to wipe the ROM as well after the ext is built to reinstall the ROM?
Make a copy of your SD card to your computer.
Reboot into recovery.
Partition Your SD card, I used 0 swap and 380 something for the ext.
Toggle MS through recovery and copy your SD card files back to your card.
Reboot.
Get Quick System Info from the market.(It shows how much memory is left on your partition, basically an easy way to tell if it worked)
durandetto said:
Make a copy of your SD card to your computer.
Reboot into recovery.
Partition Your SD card, I used 0 swap and 380 something for the ext.
Toggle MS through recovery and copy your SD card files back to your card.
Reboot.
Get Quick System Info from the market.(It shows how much memory is left on your partition, basically an easy way to tell if it worked)
Click to expand...
Click to collapse
What do you mean by toggle MS through recovery?
It's an option in recovery it allows you to view your SD card on you computer. MS stands for Mass Storage.
durandetto said:
It's an option in recovery it allows you to view your SD card on you computer. MS stands for Mass Storage.
Click to expand...
Click to collapse
So how do I move the current apps over to the SD card once it is partitioned and up and running?
http://geekfor.me/faq/apps2sd/
This link mentions some other methods to check if it's running. However, it's for fresh rom. Maybe others can chime in to say if the information is the same for damage control roms. As far as I know, the main trick is just partitioning the sdcard using the recovery tool as durandetto mentioned. If the rom sees an ext partition, a2sd will automatically start working. I too am using dc2.0.7.2.
For me, quick system info shows a2sd working, but my internal storage is much less than I thought it would be. I understand that app data is still stored on the internal storage, but can anyone tell me if my numbers are normal or not?
A2SD Storage: 0.89GB, Free 790MB
Internal Storage: 160MB, Free 33.33MB
I probably have under 50 apps installed.
jonesdana said:
So how do I move the current apps over to the SD card once it is partitioned and up and running?
Click to expand...
Click to collapse
Your apps will automatically be installed on your sd card, at least mine were.
e30user said:
http://geekfor.me/faq/apps2sd/
This link mentions some other methods to check if it's running. However, it's for fresh rom. Maybe others can chime in to say if the information is the same for damage control roms. As far as I know, the main trick is just partitioning the sdcard using the recovery tool as durandetto mentioned. If the rom sees an ext partition, a2sd will automatically start working. I too am using dc2.0.7.2.
For me, quick system info shows a2sd working, but my internal storage is much less than I thought it would be. I understand that app data is still stored on the internal storage, but can anyone tell me if my numbers are normal or not?
A2SD Storage: 0.89GB, Free 790MB
Internal Storage: 160MB, Free 33.33MB
I probably have under 50 apps installed.
Click to expand...
Click to collapse
I have around the same amount of apps and I usually have almost 80mb after I clear my cache.
Does it matter if the apps were downloaded from the market or from another source? Because I have about 35MB of internal storage left as well but my A2SD appears to be working as well. I might have 25 apps.
durandetto said:
I have around the same amount of apps and I usually have almost 80mb after I clear my cache.
Click to expand...
Click to collapse
I recently cleared my dalvik cache to fix some market apps not showing up. However, I just did it again so I can compare results to the numbers posted earlier.
Before:
A2SD Storage: 0.89GB, Free 790MB
Internal Storage: 160MB, Free 33.33MB
After wipe of dalvik cache:
A2SD Storage: 0.89GB, Free 790MB
Internal Storage: 160MB, Free 33.24MB
Is the dalvik cache the cache you're talking about?
Jonesdana - it might help if you mention what size sdcard you have if you're curious about typical partition sizes. I know that's one of the things I was curious about when figuring this stuff out. I have an 8gb card and set the ext3 partion for 1 gig(overkill, I know), swap 128, fat for the rest.
Deleted...
e30user said:
I recently cleared my dalvik cache to fix some market apps not showing up. However, I just did it again so I can compare results to the numbers posted earlier.
Before:
A2SD Storage: 0.89GB, Free 790MB
Internal Storage: 160MB, Free 33.33MB
After wipe of dalvik cache:
A2SD Storage: 0.89GB, Free 790MB
Internal Storage: 160MB, Free 33.24MB
Is the dalvik cache the cache you're talking about?
Jonesdana - it might help if you mention what size sdcard you have if you're curious about typical partition sizes. I know that's one of the things I was curious about when figuring this stuff out. I have an 8gb card and set the ext3 partion for 1 gig(overkill, I know), swap 128, fat for the rest.
Click to expand...
Click to collapse
Settings>applications>manage applications Sort by size and check the Browser, market, albums and others that you use regularly and clear cache. I doubt you'll gain 50mb, but you should gain something.
Isn't the point of this to not have to do that stuff? I don't see the benefit of a2sd from this thread.
Apps2SD
EDIT: Removed the original instructions because of errors. If you want to install A2SD version 2.5, follow these instructions on this thread:
http://forum.xda-developers.com/showthread.php?t=666420
My apologies for any issues the original instructions may have caused.
Now, for a bonus. If you installed A2SD verison 2.5, you can also move your dalvik-cache to your sd card. This will free up more space on your internal storage. This is completely optional and does not affect the operation of A2SD. Simply enter the phone's console via adb shell, then type /system/bin/a2sd cache. The dalvik-cache will be relocated to /system/sd/dalvik-cache. If you do this, make sure the phone is fully booted.
You can move your dalvik-cache manually without version 2.5.
In the adb shell, type the following commands:
mkdir /system/sd/dalvik-cache
chown 777 /system/sd/dalvik-cache
cp /data/dalvik-cache/* /system/sd/dalvik-cache
rm /data/dalvik-cache
ln -s /system/sd/dalvik-cache /data/dalvik-cache
And that's it.
tkirton said:
Okay...here's the breakdown of how to activate A2SD (a.k.a. Apps2SD)
1. (Optional) Download A2SD version 2.5: http://www.darktremor.com/files/misc/a2sd-2.5-signed.zip. Save the file to your SD card. If you don't want to download this version, skip this step.
2. Reboot the phone into recovery mode.
3. Partition the SD card by selecting Partition SD Card -> Partition SD.
4. Once you have partitioned it, press the back button to go to the main recovery menu.
5. If you downloaded the A2SD version 2.5, flash the program by selecting Flash zip from scard -> a2sd-2.5-signed.zip. Otherwise, skip this step.
6. Reboot the phone. A2SD will start when the program boots and will automatically move your programs located in /data/app and /data/app-private.
7. To validate, go into the console of the phone by typing adb shell and press ENTER. Type ls -l /data and press ENTER. Look for the entries app and app-private. Check to see if entries look like the following:
app -> /system/sd/app
app-private -> /system/sd/app-private
If you see this, then A2SD is working.
Now, for a bonus. If you installed A2SD verison 2.5, you can also move your dalvik-cache to your sd card. This will free up more space on your internal storage. This is completely optional and does not affect the operation of A2SD. Simply enter the phone's console via adb shell, then type /system/bin/a2sd cache. The dalvik-cache will be relocated to /system/sd/dalvik-cache. If you do this, make sure the phone is fully booted.
You can move your dalvik-cache manually without version 2.5.
In the adb shell, type the following commands:
mkdir /system/sd/dalvik-cache
chown 777 /system/sd/dalvik-cache
cp /data/dalvik-cache/* /system/sd/dalvik-cache
rm /data/dalvik-cache
ln -s /system/sd/dalvik-cache /data/dalvik-cache
And that's it.
Click to expand...
Click to collapse
Using just the aps2sd 2.5 zip I always start with about 153 meg out of 159 meg and after all my apps are back using titanium backup (about 60 apps) I still have over 135 meg free. I never had this before I used this zip. I did not run the dalvik cache command either. After checking however my dalvik-cache is being moved to /system/sd/dalvik-cache. I see no diff in the phone than before I moved this to the SD either. It just frees up lots of space and lets you load many many more apps
so what exactly does one gain from doing this? just more space? i can't imagine there would be any increase in speed, and wouldn't this have a tiny negative impact on power usage? (small but theoretically still there)
I've never tried this either...
So, if your sdcard dies, could you just reflash the rom over itself and everything would be gravy?
-edit-
After you've installed a new card and formatted it properly, of course.
Can you flash the 2.5 over existing a2sd? or would you have to redo everything when done?
redram38 said:
Using just the aps2sd 2.5 zip I always start with about 153 meg out of 159 meg and after all my apps are back using titanium backup (about 60 apps) I still have over 135 meg free. I never had this before I used this zip. I did not run the dalvik cache command either. After checking however my dalvik-cache is being moved to /system/sd/dalvik-cache. I see no diff in the phone than before I moved this to the SD either. It just frees up lots of space and lets you load many many more apps
Click to expand...
Click to collapse
bbv203 said:
Can you flash the 2.5 over existing a2sd? or would you have to redo everything when done?
Click to expand...
Click to collapse
You can flash the 2.5 over the existing a2sd! I am not sure if you have to wipe the Davlik Cache, but I would recommend it. You will probably have a lengthy boot time as the Davlik Cache is written.
hmmmm...one way to find out I guess!
mjweisberg said:
You can flash the 2.5 over the existing a2sd! I am not sure if you have to wipe the Davlik Cache, but I would recommend it. You will probably have a lengthy boot time as the Davlik Cache is written.
Click to expand...
Click to collapse

Any way to increase the /system partition in ICS??

Since when I have updated to official ICS I get now & then warning messages telling me there's not enough space left (i.e. 'ROM is full', '/system has not enough space left', etc., etc.) and this with the same apps installed as before and with plenty of room left in both the internal and external SD.
Running dp /system I get:
Code:
[email protected]:/ $ export PATH=/data/local/bin:$PATH
[email protected]:/ $ df /system
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/block/mmcblk0p9 858724 857736 988 100% /system
ics is probably heavier on apps and system settings than gingerbread, if you have root access you can always remove some app that arent used to gain more space
I had an issue on GB where the media scanner was eating up ~1GB of the system partition. Force close and clear cache sorted it.
No idea if it could be the same issue for you but worth checking...
Maskell said:
I had an issue on GB where the media scanner was eating up ~1GB of the system partition. Force close and clear cache sorted it.
No idea if it could be the same issue for you but worth checking...
Click to expand...
Click to collapse
impossible, the system partition is only 1gb in size for the rom, unless you mean the 2gb data partition for apps
Yep, you're right. My bad

Ad2sdx(ICS & JB)

Ok guys,not sure if anyone else has seen this,but i noticed this hasnt been added to any ICS or JB roms yet,i'm too buisy with school and work or i'd do it,but this script is freaking awesome,it switches your internal storage with the external storage,for instance,i have a 32GB sd card for my ex and of course 1GB for int,i installed the script and rebooted,when i checked my storage space in settings,i now have 8GB of internal.
This mod will move all Internal Memory (data) into sd-ext, "but not like data2ext", this mod will maintain the performance, because it still place dalvik-cache and system application data in Internal Memory.
•Move Mounting Internal Memory (/data) Into /sd-ext
•Mount SDCard-Ext (mmcblk0p2) partition into /data
•Create dalvik-cache directory in Internal Memory data (/sd-ext), and symlink it to mmcblk0p2 (/data)
•Create data directory in mmcblk0p2 (/data) And symlink it into Internal Memory data (/sd-ext)
•Create symlink of app, app-private, app_s and lib_s from mmcblk0p2 (/data) to Internal memory data (/sd-ext)
•Create symlink for all non-symllink of Internal Memory data (/sd-ext) into mmcblk0p2 (/data)
•Create data_s in Internal Memory data (/sd-ext)
•Move All mmcblk0p2(/data)/data/com.htc* and com.android* into Internal Memory data(/sd-ext)/data_s
•Create symlink all files/directory from Internal Memory data (/sd-ext)/data_s/* into mmcblk0p2(/data)/data/ So the System Application Data still read into Internal memory, but rest Application Data will read Into SDCard.
Click to expand...
Click to collapse
Amarullz is the master,i bow to him.
http://forum.xda-developers.com/showthread.php?t=1310309
I take it everyones heard of this,alrighty then,on to the next.
Diablo67 said:
I take it everyones heard of this,alrighty then,on to the next.
Click to expand...
Click to collapse
Just a quick question.. does this require an sd-ext?(I'm assuming it does) If so how did you get a 28 GB partition?
If I'm running evervolv (or any CM10-based ROM I bet), I can get all these benefits with the built-in a2sd feature, can I not? Specifically, during a2sd install, if I do *not * move dalvik to sd-ext and I *do* move /data/data to sd-ext , I get the scenario shown on the right hand side of the graphic in the OP of the thread you linked.
Basically: I am already doing this- why do I need something new?
Sent from my PC36100 using xda app-developers app
bilgerryan said:
Just a quick question.. does this require an sd-ext?(I'm assuming it does) If so how did you get a 28 GB partition?
Click to expand...
Click to collapse
Yea,i actually meant 8GB,sorry and yes it has to be with ext.4.

Categories

Resources