[Solved] How to check available system space? - Galaxy S I9000 Q&A, Help & Troubleshooting

Hi,
I wanted to install Theft Aware to the system partition but it keeps saying there is not enough space on /system (Android 2.2.1 with rooted CF kernel).
I then realized I don't even know how to check the remaining space on /system, how do I do that? Do I need some kind of app?

wrong place to post this thread.
goto settings > sd card and phone storage

Damn, indeed I chose the wrong forum, sorry, can someone move this to Q&A please?
Btw, when checking there it said there is more than 1 GB free under "internal phone storage". Does the SGS really have that much system space? oO
edit:
ok apparently that isn't actually the free space of /system. After some googling I dared to try some terminal app on the phone and ran some df command or something which showed the /system space. It was at 0 so I removed some Samsung apps. Also found a list about what apps you can apparently safely remove from there:
http://ykkfive.blogspot.com/2011/02/minimal-set-of-apps-needed-for-galaxy.html

Related

Cripes, so confused about DarkTremor A2SD on CM7

I'm really surprised that there is no documentation on this thing that I can understand. I'm having major issues with CM7 with DT A2SD. Every one of my widgets is broken. I can't tell what's installed to EXT and what's not. If I go into Manage Applications, all of the widget apps are installed to phone. I have next to zero internal space left.
I need to know how I can differentiate what's on internal, what's on Froyo SD, and what's on DT A2SD - As well as how to move them and tell where each app is going.
i honestly wish i knew. this is on my list to do, but i didnt feel like formatting my memory card cause there's so much on it, so i am just hoping gingerbread improved method will give me enough space.
i wish there was a tutorial or wiki for DT A2SD. you prob should just read that whole thread and it is explained there somewhere.
Some quick commands executed from adb shell or even the terminal on the phone can give you some more information:
a2sd check will give you basic diagnostic information from the DT a2sd script - this will reveal what is running where (apps on /sd-ext, data location, etc).
ls -al /data will help you understand what a2sd actually does for you. If a2sd is set up correctly, you should see an entry similar to "app --> /sd-ext/app", which indicates your /data/app directory is symbolically-linked to your /sd-ext partition (the ext-formatted partition on your SD card). This makes Android see /sd-ext/app and /data/app as the exact same thing, and everything within that folder will actually reside on the /sd-ext partition. The same thing applies to the dalvik-cache.
You can find out more about using a2sd via the a2sd help command, which shows an easy-to-understand listing of the various a2sd commands available.
All the documentation is in DarkTremor's thread.
There is no choosing in A2SD. If it's installed - all apps that are shown as "internal" go to EXT partition. But the phone doesn't know it, and you won't see it in OS visually in any place.
You can choose if you're sending your app data and your Dalvik-cache to SD also, that you can do from the Terminal (command line).
I should probably mention that all apps that are installed to SD using stock Froyo method, remain there - and cause a waste of space. So using A2SD you should move ALL your apps to "internal memory" (substituted with EXT partition).
This is a handy link for Darktremor users...
http://www.facebook.com/note.php?note_id=158826790833326
Sent from my Nexus One using XDA App
Hmm.. maybe I should had included some more info.
If I use Root Explorer and check my sd-ext folder, it does have apps within, and from install date I can tell they're from my CM7 install (plus I wiped everything including SD-EXT before flashing anyway). The problem is that some of these apps are things I do NOT want on SD-FAT or SD-EXT, I need them on internal (basically anything that I use with widgets, and LauncherPro). Pretty sure having widgets on EXT is what's causing my home screens to **** the bed.
Checked Install Location, right now that's set to Automatic.
If I go to Manage Applications, these apps appear to be on internal (Move to SD card is available on the button). I've read the FB page and original thread, I still see no way to differentiate between Internal, SD-FAT and SD-EXT - or how to move them between with certainty.
/sd-ext is the same as internal for all intents and purposes. You don't choose what apps to run off of /sd-ext, they all do. This is not causing your widget issues.
If you use DT a2sd, "Internal" becomes synonymous with "sd-ext". They are one and the same.
You SHOULD, however, move all of your apps off of SD-FAT - that is the implementation of "apps to sd" that breaks widgets.
Ok, I moved all of my apps off of SD-FAT and back to internal.. seems to be going well so far. The only thing I'm curious about now is that I didn't really get any space back, I still only have 21MB free (cleared browser and market cache as well). I've obviously messed something up somewhere along the line. Any ideas? I'm such a n00b at this apparently.
I really appreciate the help thus far guys!
You shouldn't have. Your space doesn't change as a result of moving apps to SD and back anymore - because they're all either on EXT, or partially on EXT and partially on FAT32.
If you don't have enough space left on internal memory - which can happen, if you have a lot of apps and they use a lot of data - you can move app data to SD and also Dalvik-cache to SD. This is done using command line commands.
One of those is usually enough.
I prefer the Dalvik-cache on SD - it might be a bit slower (never noticed that), but at least system settings (that are stored in /data/data) remain on the phone's internal memory and aren't prone to corruption.
Jack_R1 said:
You shouldn't have. Your space doesn't change as a result of moving apps to SD and back anymore - because they're all either on EXT, or partially on EXT and partially on FAT32.
If you don't have enough space left on internal memory - which can happen, if you have a lot of apps and they use a lot of data - you can move app data to SD and also Dalvik-cache to SD. This is done using command line commands.
One of those is usually enough.
I prefer the Dalvik-cache on SD - it might be a bit slower (never noticed that), but at least system settings (that are stored in /data/data) remain on the phone's internal memory and aren't prone to corruption.
Click to expand...
Click to collapse
On that note, moving the dalvik-cache is generally a better idea than moving /data/data. Better stability and compatibility and whatnot. Only bother with moving /data/data if you really really need the space.
You can move the dalvik-cache to sd with the a2sd cachesd command in either the terminal or adb shell.
OH MAN THANK YOU! Moved dalvik to SD-EXT and that did it! 120MB free! Time for a downloading spree!
level5music said:
OH MAN THANK YOU! Moved dalvik to SD-EXT and that did it! 120MB free! Time for a downloading spree!
Click to expand...
Click to collapse
Glad to help

[Q] why internal storage size still decrease after app2ext enabled?

i know this has been asked a thousand times, but i can't find the answer after 2 days searching...
i'm using milestone 1, i flashed latest cm7 rom following a tutorial here, version number CyanogenMod 7.0.1 0.08-11.04.24 (Android 2.3.3) , yes i know that i need ext2/3/4 partition on my sdcard. so i createdd one fat32 5gig primary partition and one 2gig ext3 primary partition.
later i installed around 80 apps , if i open root explorer, i see in /sd-ext folder, 251mb used, 1.60g free , i know this indicates that app2ext is working (according to some reply in that really long cm7 thread)
but if i come to the manage applications menu which comes with android, on the downloaded tab, it stills shows that 96mb used, 101mb free for the internal storage. is this normal ? will i get the low storage space warning in the future if i install more apps ? ( all the apps are in internal storage, the on sdcard tab shows all app is not in sdcard. i set default installation path to internal storage in cw setting , some apps still install themself to sdcard however, but i manually move them back by pressing the move to phone button.)
oh and i saw some tutorials saying i need to type some mysterious command in console in OR, so i can move and link some folders to ext partition, say /data/dalvik_cache and some other folders. do i need to do this for cm7 mod i'm using?
thanks if someone could show me the correct direction. I'm totally confused by the massive amount tutorials.
oglop said:
i know this has been asked a thousand times, but i can't find the answer after 2 days searching...
i'm using milestone 1, i flashed latest cm7 rom following a tutorial here, version number CyanogenMod 7.0.1 0.08-11.04.24 (Android 2.3.3) , yes i know that i need ext2/3/4 partition on my sdcard. so i createdd one fat32 5gig primary partition and one 2gig ext3 primary partition.
later i installed around 80 apps , if i open root explorer, i see in /sd-ext folder, 251mb used, 1.60g free , i know this indicates that app2ext is working (according to some reply in that really long cm7 thread)
but if i come to the manage applications menu which comes with android, on the downloaded tab, it stills shows that 96mb used, 101mb free for the internal storage. is this normal ? will i get the low storage space warning in the future if i install more apps ? ( all the apps are in internal storage, the on sdcard tab shows all app is not in sdcard. i set default installation path to internal storage in cw setting , some apps still install themself to sdcard however, but i manually move them back by pressing the move to phone button.)
oh and i saw some tutorials saying i need to type some mysterious command in console in OR, so i can move and link some folders to ext partition, say /data/dalvik_cache and some other folders. do i need to do this for cm7 mod i'm using?
thanks if someone could show me the correct direction. I'm totally confused by the massive amount tutorials.
Click to expand...
Click to collapse
I believe that CM7 does not send the dalvik-cache of each app you install to the ext2 partition. So you still take up space on your phone, just much less.
Sent from my Milestone using XDA Premium App
I have this problem too. And after I cleaned chache and dalvik cache, my internal storage is almost full

[Q] Delete system apps and use free memory for other apps

I searched the forums for quite a while but couldn't find an answer to this question, so here I go:
Is it possible to use the space freed up by deleting system apps (like Motonav) for installing own Apps (e.g. memory hogs like Swype or the Flash Player)?
Not 100% sure but I just downloaded titanium backup from the market backed up those unwanted apps then uninstalled. That should free up space for what you want be careful what you uninstall though.
Sent from my SGH-T959V using XDA App
Eiertschik said:
I searched the forums for quite a while but couldn't find an answer to this question, so here I go:
Is it possible to use the space freed up by deleting system apps (like Motonav) for installing own Apps (e.g. memory hogs like Swype or the Flash Player)?
Click to expand...
Click to collapse
THe partition where those system apps are installed is not the same partition where apps you download are installed, so, if you free some space there, it won't affect free space at all.
But, you can move applications from /data/app to /system/app (if you mount /system/app as read/write), just move them and reboot the phone, but, before moving, please make sure that there is enough free space on /system by typing on adb shell or a terminal emulator:
df /system
If there is enough space, just go ahead, move the apk to /system and save some space in /data, BUT, and there is always a BUT... Any updates to that application will occupy space in /data again, so, everytime the APP is updated, you should delete the old APK in /system, move the new apk from /data to /system and reboot.
I'm pretty sure that Titanium Backup has this kind of functionality built in, not sure if it is pro only or if it works in the free version, but, since it did not work well the first time I've tried, I just do it manually.
P.s.: It is highly recommended that, before moving thing in or out the /system folder, you do a full NANDROID BACKUP, so you can just revert back to working condition if something go wrong (i.e.: if you delete something essential, perhaps you won't be able to load Titanium Backup and restore that back).
Sure, I added a lot of apps in system/app partition
For example I added GoSMS and GoLauncher, deleting mms and adwlauncher.
I made it because they are the most-used apps so it's better running them from internal memory rather than ext2 partition, plus I can boot the phone without SD.
The only problem, as HinotoriBR said, is that when you update an app you should move it from data/app to system/app, delete the old app version (newly installed will have a different name) and reboot.
yosif yackson said:
Not 100% sure but I just downloaded titanium backup from the market backed up those unwanted apps then uninstalled. That should free up space for what you want be careful what you uninstall though.
Click to expand...
Click to collapse
You're right, that DOES free up space on /system partition, but it's not enough to use the free space for other apps
HinotoriBR said:
THe partition where those system apps are installed is not the same partition where apps you download are installed, so, if you free some space there, it won't affect free space at all.
But, you can move applications from /data/app to /system/app (if you mount /system/app as read/write), just move them and reboot the phone, but, before moving, please make sure that there is enough free space on /system by typing on adb shell or a terminal emulator:
df /system
If there is enough space, just go ahead, move the apk to /system and save some space in /data, BUT, and there is always a BUT... Any updates to that application will occupy space in /data again, so, everytime the APP is updated, you should delete the old APK in /system, move the new apk from /data to /system and reboot.
[...]
Click to expand...
Click to collapse
I installed Swype and moved com.swype.android.inputmethod-1.apk to /system/app using Root Explorer and it still worked without rebooting the phone.
Maybe because input methods are always active in the background so it didn't notice the moving?
I restarted anyway (because otherwise it doesn't update the free memory information in Settings) and et voila: more than 10MB extra space.
Now Swype is still listed in the "All Apps" tab of app management but with a mere 2MB.
I guess that's user settings, dalvik cache and other stuff - so I better not move it...
One last question:
How much free space should remain on /system partition?
Is it also used to cache stuff or can I fill it all the way to the top?
downloadman said:
Sure, I added a lot of apps in system/app partition
For example I added GoSMS and GoLauncher, deleting mms and adwlauncher.
I made it because they are the most-used apps so it's better running them from internal memory rather than ext2 partition, plus I can boot the phone without SD.
[...]
Click to expand...
Click to collapse
Since I'm not using an ext2 partition on my SD card it should make no difference if an app is in /system or /data when it comes to performance, shouldn't it?
THANKS TO EVERYONE
Eiertschik said:
Since I'm not using an ext2 partition on my SD card it should make no difference if an app is in /system or /data when it comes to performance, shouldn't it?
Click to expand...
Click to collapse
I suppose you're right. Or maybe SD speed is faster than internal memory, who knows... but surely reading internal memory uses less battery power than reading microsd.
An ext2 partition is really useful if you install a lot of apps.
As my SD card is only Class2 (was bundled with the phone) I doubt it would be faster than internal memory.
Up to now I was able to install all the apps I really needed without an ext2 partition - so I think the /system-trick will give me more space than I really need
But thanks anyway - I'll get back to it when I'm keen enough to use custom roms and ext partitions
Eiertschik said:
One last question:
How much free space should remain on /system partition?
Is it also used to cache stuff or can I fill it all the way to the top?
Click to expand...
Click to collapse
Since partition is mounted as read only usually, it means that partition is not used to cache or store any app data. All data and cache of /system applications goes to /data (which, as you observed, still has some space being used by the moved application). So, you should be able to fill /system (or get close to fill it) and have no issues.
If you don't use any modded rom, you can use Androidiani Open Recovery and use some space that is left for OTA transfers to store cache data (there is a specific partition with 100+ MB of free space used just for that, to store a firmware upgrade received OTA), it is known as "Memhack" and free up more space. As far as I know, many mods as CM7 already have this "Memhack" built-in.
HinotoriBR said:
Since partition is mounted as read only usually, it means that partition is not used to cache or store any app data.[...]
Click to expand...
Click to collapse
Maybe that was too obvious for me to figure out
HinotoriBR said:
[...]
If you don't use any modded rom, you can use Androidiani Open Recovery and use some space that is left for OTA transfers to store cache data (there is a specific partition with 100+ MB of free space used just for that, to store a firmware upgrade received OTA), it is known as "Memhack" and free up more space. As far as I know, many mods as CM7 already have this "Memhack" built-in.
Click to expand...
Click to collapse
I already use AOR to root my 2.2.1 stock ROM.
This memhack sounds very interesting... might consider it because I don't really expect any further Milestone update from Motorola.
Sounds more reliable than an ext2 partition on SD card - since I don't really trust my card...
If I do this Memhack and for whatever reason Moto will release an update - will I still be able to do it using a PC?
Eiertschik said:
Maybe that was too obvious for me to figure out
I already use AOR to root my 2.2.1 stock ROM.
This memhack sounds very interesting... might consider it because I don't really expect any further Milestone update from Motorola.
Sounds more reliable than an ext2 partition on SD card - since I don't really trust my card...
If I do this Memhack and for whatever reason Moto will release an update - will I still be able to do it using a PC?
Click to expand...
Click to collapse
The memhack will move the cache from the /data partition to that specific partition for OTA upgrades. So, as your cache grows larger, your /data (free internal memory) will not decrease. This saves internal memory space that would otherwise be used for cache (not sure if application data is moved there too).
As soon as you start hacking the stock rom, it is not recommended to try to update directly the phone, if Motorola ever releases a newer version, recommended steps:
- Titanium Backup all your Apps/Data
- Flash a stock SBF (2.0/2.1/2.2, doesn't matter) in your phone, wipe all data/cache
- Use Motorola Software Update to upgrade the software to the new revision
- Afterwards, as soon as update is done and phone boots, you can flash vulnerable recovery and then through Open Recovery or Androidiani Open Recovery hack the hell out of your phone again (ie.: root, memhack, overclock, etc)
- As soon as you get root, use Titanium Backup to restore your Apps/Data
Or, you could always wait for someone to release a Nandroid Backup of the new rom, as is usual in the Android Development section, and simply use that Nandroid Backup (alway Titanium Backup your apps/data b4), wipe everything after update, and then use Titanium Backup to restore your Apps/Data
HinotoriBR said:
P.s.: It is highly recommended that, before moving thing in or out the /system folder, you do a full NANDROID BACKUP, so you can just revert back to working condition if something go wrong (i.e.: if you delete something essential, perhaps you won't be able to load Titanium Backup and restore that back).
Click to expand...
Click to collapse
I wish I read that 5 minutes ago... lol !
skribzy said:
I wish I read that 5 minutes ago... lol !
Click to expand...
Click to collapse
Being a Motorola phone, you can always find the SBF related to your phone and use RSDLite to flash it. Milestone, to enter boot mode and then use RSDLite to send a SBF ( http://and-developers.com/sbf:milestone , if you are a Droid user, probably there is somewhere else to find it, if you are milestone user, try to use a version close to whatever you had), just power it down, hold dpad up, and with dpad up pressed you power the phone. You will see some writting about the boot loader, your phone is ready to be connected in our PC and you can flash it using RSD Lite.
HinotoriBR said:
Being a Motorola phone, you can always find the SBF related to your phone and use RSDLite to flash it. Milestone, to enter boot mode and then use RSDLite to send a SBF ( http://and-developers.com/sbf:milestone , if you are a Droid user, probably there is somewhere else to find it, if you are milestone user, try to use a version close to whatever you had), just power it down, hold dpad up, and with dpad up pressed you power the phone. You will see some writting about the boot loader, your phone is ready to be connected in our PC and you can flash it using RSD Lite.
Click to expand...
Click to collapse
Yea, cheers, it was a school boy error! I was thinking to myself must do a nandroid before I start tinkering and totally forgot! All back to normal and backed up now
I was seeing if I could swap out the stock dialer with dialer one in system/apps... Milestone didnt seem to like it at all! I assume apps like dialer one are dependant on the existance of core apps. I did manage to get rid of the 3D gallery and replace it with quickpic.
Theres loads in system/apps that I simply dont need like 'LiveWallpapersPicker.apk' which I assume I can just get rid of - I will give it a go and see what comes crashing down!
S

Storage space running out

For the past week, I have received an error message at my storage space is running out and some system functions may not work properly. I am also receiving repeated force close error messages, which I assume to be related to the storage space issue. The problem is, I have plenty of internal storage space and external storage space available. Below, I've attached screenshots of my current storage.
The error message first came up while using the AOSP 4.2 ROM compiled by pawitp. Before getting the message, I have been using this rom for a couple months with no problem. I reflashed the ROM several times to remedy the issue , but each time I would end up with force close issues after a day or two. Before flashing, I would perform a full wipe, wife cache/dalvik, and format system. Just to be sure, I have tried flashing 4.2 that was recently released by Collective, and the latest slim4.2. I am having these issues no matter what rom I am on.
Edit: cannot upload images from the xda app. Will upload as son as I'm at the computer.
Sent from my SGH-I897 using xda premium
Suggestion;
Go get SD maid, by darken, on Google play store. it does much more than clean the SD.
Try the free version, then buy the pro if you want to support the dev.
laughingT said:
Suggestion;
Go get SD maid, by darken, on Google play store. it does much more than clean the SD.
Try the free version, then buy the pro if you want to support the dev.
Click to expand...
Click to collapse
Unfortunately, I cannot download anything from the play store due to the storage issue...
Would uninstalling some apps allow you to install others. ? You can always reinstall them later.
Alternatively. Go into settings, apps, and start deleting app data. for example, gallery, which can take up much more space than it needs. Leave the app, jus clear the data. Maps, browser, etc.
Chances are that your data data partition is full of junk, near its 422mb limit. If you open terminal emulator, type su, then df, you will see which partition is causing the problem.
+1 for what laughingT said
Taking a look at the partitions is the best way to start on this as it is the most common cause, usually /data (/data/data) or /cache is full.
Due to the way android lumps the different partitions toegether in the system view, it might look like there is enough free space when in reality there are sub partitions that are full.
But:
"The insufficient storage" will also be (missleadingly) displayed if an app can not be installed because it's .odex file already exists (for whatever reason) from a previous install.
Thanks for input, Dark3n.
Correct me if I am wrong, but your SD Maid app can clean up stray odex, yes?
I have used SD Maid Pro to keep my phone 'clean'. I had 400 mb in datadata on cm10.0 at one point, and SD Maid helped me trim that down to 150 mb.
Dark3n said:
+1 for what laughingT said
Taking a look at the partitions is the best way to start on this as it is the most common cause, usually /data (/data/data) or /cache is full.
Due to the way android lumps the different partitions toegether in the system view, it might look like there is enough free space when in reality there are sub partitions that are full.
But:
"The insufficient storage" will also be (missleadingly) displayed if an app can not be installed because it's .odex file already exists (for whatever reason) from a previous install.
Click to expand...
Click to collapse
Thank you to everyone for the help so far. I wiped and reflashed the ROM so that I could have enough time to get into Titanium Backup before the launcher FCed on me. I restored SD Maid and see that my datadata partition is full (420 of 422). Can I move the system apps to the SD card with SD Maid? I thought that I had this option at one time, but I do not seem to get an option to move my system apps. I tried to convert them to user apps using link2sd (was able to get this installed from a flashable zip that I created before having this issue), but I am unable to do so.
What is odd is that my data data is basically full with only the standard system apps installed on slim and/or AOCP. I didn't even flash gapps.
Sent from my SGH-I897 using xda premium
Moving apps to SD, especially system apps, probably won't help you. Your data partition isn't full, right?
I'd use the app cleaner tab and system cleaner tabs in SD maid to selectively clear app and system data. Clean browsers, maps, galleries and photo apps, at least. this won't uninstall the apps which is good, but it should clear a lot of garbage out.
If that won't do for you, then go into manage apps under the settings menu and clear at the browser data and cache, the maps data and cache, and the gallery data and cache. I'll take a guess that that alone will free up 150 mb.
laughingT said:
Correct me if I am wrong, but your SD Maid app can clean up stray odex, yes?
Click to expand...
Click to collapse
jsingle3 said:
Can I move the system apps to the SD card with SD Maid?
Click to expand...
Click to collapse
Not yet, but both on the TODO list in that order. No time for coding SD Maid atm . Soon...
laughingT said:
Thanks for input, Dark3n.
Correct me if I am wrong, but your SD Maid app can clean up stray odex, yes?
I have used SD Maid Pro to keep my phone 'clean'. I had 400 mb in datadata on cm10.0 at one point, and SD Maid helped me trim that down to 150 mb.
Click to expand...
Click to collapse
I'm trying everything I can but I can't seem to find out what is taking up all my data data storage space. I've cleaned the cache and data for every app and it is still showing me around 400. Like I said before, I've got nothing installed other than what came on the slim 4.2 ROM (plus es file explorer and SD maid).
Sent from my SGH-I897 using xda premium
okay. try this
start terminal emulator and enter
su
du datadata > sdcard/du.txt
exit
exit
. . .
okay, now go open the text file named du.txt that is in your sdcard.
it should list every file in datadata along with the size of each one.
because the size is at the beginning of each line, you can also sort the info by file size, either on your phone with an app like quickoffice, or on your pc.
there is also a way to do that sorting in the shell in terminal emulator, or with a script, but I'm too rusty on linux commands to give you that long command line.
edit: du is going to show the file space used by each subdirectory. that should point you to the offending files and orphan directories.
Did not find any issues after running the datadata log. I did, however, notice several simlink errors after getting es file explorer installed. Flashed the zip referenced in the following link to see if it would fix my errors (http://forum.xda-developers.com/showthread.php?t=1541942). So far, so good. No storage notifications, I am able to install from play store, and can restore from T/B. I will report back in a day or two to confirm if this fixed my issue.
I'm not sure that fix script is useful for the jelly bean partition layout, which is different from ics , I think.
They are referencing CM9 and a 170mb datadata partition. As you know, we've got a 422mb datadata partition, and I beleive jb uses a different strategy to make use of the fast flash rom in captivate.
Sorry, wrong link. I meant to link the datafix app from the play store. By the way, still seems to be working well.
Sent from my A500 using xda app-developers app
Okay, I figured it out. I looked in my cwm log and noticed that I had a TON of bad blocks in my datadata partition. This effectively shrunk my partition down to about 50MB. No wonder I had storage warning issues as soon as I would flash any ROM (and why I needed datafix app to free up some space). Before using the phone as a paperweight, I decided I would reflash to stock kg3 to see if repartitioning and flashing back to cm 10.1 could fix it. After going back to stock and then getting back to 10.1, the bad datadata sectors appear to be fixed. I'll report back in a few days.
Any idea what caused the badblocks?
Dark3n said:
Any idea what caused the badblocks?
Click to expand...
Click to collapse
I'll hazard a guess..
if his card was actually using a vfat or non jounaling fs, like ext2 for datadata, then
nonjournaling file systems on SD cards under linux are known to become corrupted when power is lost or interrupted. killing apps through a task manager or power manager could do the same, if it didn't allow the write buffer to finish. also a weak sd card might misbehave, particularly if bus is overclocked as it can be in semaphore kernel.
if it isn't a journaling fs, then the blocks show up as either bad or used when they are actually empty and good. periodically running fsck might be a good strategy for him.
edit; fsck isn't included in android build or busybox, I guess. Dark3n, could you build the fsck module into your SD maid app?

[Q] error: not enough internal memory - but I have 90MB and app is 30MB

Hi Folks,
Executive summary:
I'm trying to install an app that is around 30MB. I have 90MB of internal memory available. It won't download and complains there is not enough memory.
Gory detail:
I have a 32 GB SD card partitioned into 10GB (ext2) and 20 (FAT32) and I use Link2SD to automatically install apps on the ext2 partition. That is working fine.
There is an app in Samsung Apps, issued by the education department, that I need for my son's upcoming spelling bee. The app is around 30MB. When I try to download it, it complains that there is not enough internal memory and that I should delete some files, make space, etc.
Relevant information:
1. There is 90MB available on the internal memory and the app is 30MB.
2. The app should automatically be installed on the SD card anyway, and so not be concerned about the internal memory in the first place.
3. Other, smaller apps from Samsung Apps install without complaint directly onto the SD card.
The figure of 90MB is from Settings > Applications > Manage Applications and also from Link2SD > Settings > Storage Info. Same number.
The phone is rooted and running Gingerbread 2.3.6.
Thanks in advance.
2ways said:
Hi Folks,
Executive summary:
I'm trying to install an app that is around 30MB. I have 90MB of internal memory available. It won't download and complains there is not enough memory.
Gory detail:
I have a 32 GB SD card partitioned into 10GB (ext2) and 20 (FAT32) and I use Link2SD to automatically install apps on the ext2 partition. That is working fine.
There is an app in Samsung Apps, issued by the education department, that I need for my son's upcoming spelling bee. The app is around 30MB. When I try to download it, it complains that there is not enough internal memory and that I should delete some files, make space, etc.
Relevant information:
1. There is 90MB available on the internal memory and the app is 30MB.
2. The app should automatically be installed on the SD card anyway, and so not be concerned about the internal memory in the first place.
3. Other, smaller apps from Samsung Apps install without complaint directly onto the SD card.
The figure of 90MB is from Settings > Applications > Manage Applications and also from Link2SD > Settings > Storage Info. Same number.
The phone is rooted and running Gingerbread 2.3.6.
Thanks in advance.
Click to expand...
Click to collapse
Did you move the dalvik-cache partition?
Dalvik-cache needs space too to install and run the app so clean it and then try to install this app again
Viper The Ripper said:
Did you move the dalvik-cache partition?
Dalvik-cache needs space too to install and run the app so clean it and then try to install this app again
Click to expand...
Click to collapse
Thanks for getting back to me.
In setting up Link2SD, a new dalvik-cache folder was set up on the 2nd partition on the SD card and the default action for all new apps is to put dalvik-cache files there. There is still the old dalvik-cache folder on /data.
I used Link2SD to clear all the cache folders and got another 10 MB free of internal memory.
Running df in a terminal I get:
/data size-180MB, used-76MB, free-104MB
Which should mean that the 'old' dalvik-cache folder has plenty of room to expand and shouldn't be stopping the installation of a single new app. Again, of course, any new apps should have their dalvik-cache files added to the SD partition anyway, rather than the original one.
Is their something I'm not understanding about the dalvik-cache?
Thanks for the help.
2ways said:
Thanks for getting back to me.
In setting up Link2SD, a new dalvik-cache folder was set up on the 2nd partition on the SD card and the default action for all new apps is to put dalvik-cache files there. There is still the old dalvik-cache folder on /data.
I used Link2SD to clear all the cache folders and got another 10 MB free of internal memory.
Running df in a terminal I get:
/data size-180MB, used-76MB, free-104MB
Which should mean that the 'old' dalvik-cache folder has plenty of room to expand and shouldn't be stopping the installation of a single new app. Again, of course, any new apps should have their dalvik-cache files added to the SD partition anyway, rather than the original one.
Is their something I'm not understanding about the dalvik-cache?
Thanks for the help.
Click to expand...
Click to collapse
You're right, smply I thought that your dalvik-cache partition was full and it was the reason you couldn't install anything, but it's weird :S :S :S
For this and many other reasons I don't like to use link2sd, I prefer int2ext+ script; safe, simple, fast, doesn't touch the dalvik-cache partition and keep /data in /data place
AFAIK Link2sd don't move "apps" strictly, It link apps to sd-ext partition, so a part of apps are installed in /data (internal memory) and the rest (the heaviest) in your sd-ext partition
It could be helpful
http://forum.xda-developers.com/showthread.php?t=2313327&highlight=about+link2sd
BTW you can wait for the replies from fellows better informed on such issues
Thanks for your help.
It's my wife's phone and I'll be away from home now until next week, so can't pursue the solution any further just now, but I haven't given up!
I'll be back on this thread come Monday, and I'll definitely have a look at int2ext.
Thanks again.
Viper The Ripper said:
You're right, smply I thought that your dalvik-cache partition was full and it was the reason you couldn't install anything, but it's weird :S :S :S
For this and many other reasons I don't like to use link2sd, I prefer int2ext+ script; safe, simple, fast, doesn't touch the dalvik-cache partition and keep /data in /data place
AFAIK Link2sd don't move "apps" strictly, It link apps to sd-ext partition, so a part of apps are installed in /data (internal memory) and the rest (the heaviest) in your sd-ext partition
It could be helpful
http://forum.xda-developers.com/showthread.php?t=2313327&highlight=about+link2sd
BTW you can wait for the replies from fellows better informed on such issues
Click to expand...
Click to collapse
Sorry for the Off-Topic, but my battery drained faster with int2sd.. do you faced the same problems?
Sent from my GT-S5830 using xda app-developers app
Blackbox421 said:
Sorry for the Off-Topic, but my battery drained faster with int2sd.. do you faced the same problems?
Sent from my GT-S5830 using xda app-developers app
Click to expand...
Click to collapse
It's normal I suppose due to Read/Write cycles, but it's better (less cycles) than swap partition (reduce your sdcard's life drastically)
Couldn't Install on USB Storage or SD Card
If, while installing your app, its showing "Couldn't Install on USB Storage or SD Card", then I've got just the solution. You could either fix it permanently,temporarily or do a method each time before you install your app.
Permanent Method
1) If your device is running on 2.2.1 or 2.3.6 android version, upgrade it to 3.4.5 ICS or 4.1.1 Jellybean. If the problem is solved then, don't worry, your problem has been permanently fixed.
Temporary Method
1) Backup your SD Card files and format it. Don't worry, it won't affect your partitions. I cannot guarantee you that this thing won't come up again. It may not but there is still a chance.
2) Before installing your apps, Go to Settings>Storage Info>Unmount SD Card. Select this each time before you install anything. Your app will be installed on to your Phone memory. After installing, Go to Settings again and Mount your SD Card. And of course, you could then Link your app to your partition or whatsoever...
I'll recommend Temporary Method 2 as it is would be easy for you if you're a newbie...Hope that this helped...Thanks:highfive:

Categories

Resources