yashsingh1/xdaforums huggingface dataset:
[Galaxy S I9000 Android Development] weaseltt:
Cannot add files to SD card

Hi all, I hope I am posting in the right place. I am running CM9 nightly 20120504 with kernel version 3.0.8-g4577fdf pinky-ghost@cyanogenmod #4. I got the low storage message after running this rom for about 20 days. I decided to try this solution but when I connect my phone to my PC, it says that there is no room on my internal sd card. How can I get around this problem? I appreciate any help you may provide.

Weasel
[Galaxy S I9000 Android Development] Jesterdtm:
is there a need to re-flash this after flashing a nightly, or other ROM? or just flash as needed?

It worked great, notification is gone! thank you for your work.
[Galaxy S I9000 Android Development] weaseltt:
Evernote storage issue

Hello, I did eventually manage to get this flashed and it solved my problem. Thanks OP.

However, after flashing it I now get the following message from Evernote:

"Insufficient phone space. There is not enough space on the phone"

This notification pops up at intervals throughout the day and whenever I try to create a new note. I am on CM9 nightly build 20120610. Thanks in advance for any help you may provide.
[Galaxy S I9000 Android Development] RootTheMachine:
Please use the new version. http://xdaforums.com/showthread.php?t=1665742
[Galaxy S I9000 Android Development] Bejda:
For evernote when it comes to low memory space warning for me it's about sdcard... :)
[Galaxy S I9000 Android Development] Sidneymac:
How do I delete it?
[Galaxy S I9000 Android Development] upichie:
This thread is outdated. Please move on to the new thread.
[Galaxy S I9000 Android Development] aphecs:
It worked!! Thanks man!!! :)
[Galaxy S I9000 Android Development] Vertron:
For some reason it won't let me post in the new thread so I'll post it here instead.

I've installed Max Payne and Nova 3 recently and gone from 100mb to just under 40mb of free space on /datadata.

Does the latest version of the datafix released on the 7th of June work with the devil kernel + elite 1.4.1 rom?

Is just under 40mb enough free space to run the script?
[Galaxy S I9000 Android Development] bacha_13:
i had an error no space error. i followed the instructions in the first thread, did the the titanium part as well then flashed the script. it fixed it

today i decided to do titanium back up and my titanium showed me 0 back for everything... but i had back up. not sure what to do.

I am sure i missed something.. any advice guys?
[Galaxy S I9000 Android Development] Bejda:
If titanium is saying it can't find any saves it's probably that it can't find the path to the folder where they're located.

If you didn't formated your sd it should find at least something, check on options/preferences and point manually the path to your backups folder if it's a wrong one.

Maybe you flashed something that got your sdcards inverted ..
[Galaxy S I9000 Android Development] bacha_13:
i checked that and i can see the files in sdcard/titanium backup when it says use this folder i clicked on it and when i go into batch back up/restore everything it shows is 0. also i flashed the script in first post and it moved some of the files to data/data...
[Galaxy S I9000 Android Development] imyp:
screen unresponsive

I flashed the April build, but my screen will not turn on. The LED buttons (menu, home, back and search) light up when touched, but the screen will not turn on.

I am running cm7.2

Any help would be appreciated.
[Galaxy S I9000 Android Development] upichie:
The script moves app data. It does not do anything with your Titanium Backup files. So this is wholly unrelated, but nonetheless, the other guy pretty much said what it could be.

If Titanium Backup is looking in the right directory and still shows nothing (and you've confirmed that they are in fact still there), the only other thing I can think of is that your SD cards are inverted. Did you change ROMs or something? Check that.
[Galaxy S I9000 Android Development] upichie:
I really don't see what this has to do with the script... but nevertheless, could you provide more information? The script runs on boot, so do you mean that your phone doesn't boot? Or did you run it manually? You really haven't provided enough information.
[Galaxy S I9000 Android Development] upichie:
And to everyone: I would recommend using the new script. This is old and unsupported. You'll likely have both a better time and better support with the newer one. Get with the times, people. ;)
[Galaxy S I9000 Android Development] imyp:
Sorry. The phone seems to boot, but the screen never turns on during the process. The power button activates the touch buttons, but the screen does activate rendering the phone useless. I did a restore and everything was fine, tried to flash the script and reboot, but the same thing happened - no screen. :(

---------- Post added at 01:38 PM ---------- Previous post was at 01:27 PM ----------

Could you be so kind as to point me in that direction, sir?
[Galaxy S I9000 Android Development] bacha_13:
nah i didnt change rom or anything, didnt even flash anything else. I thought that was interesting why would titanium would do that when the files are still in the sd card. I ended up flashing my rom cleaned my whole phone and everything, will try to restore back up again from titanium backup.

if i end up having the low storage error again. Should i flash this new script you are talking about

http://xdaforums.com/showthread.php?t=1665742&highlight
[Galaxy S I9000 Android Development] upichie:
That doesn't sound right at all. Hmm. If you have troubles with the script, extract the actual script from the flashable zip and run it manually (I use Script Manager, but there are other apps). This will show you if the script encounters any errors.

The only problem I can see is if you ran out of space on /datadata. Try to have a decent amount of space there before applying the script. If need be, backup some apps with Titanium Backup and uninstall them. Then apply the scripts, restore them, and apply the script again.

Refer to the previous poster to get the link to the new thread. :)
[Galaxy S I9000 Android Development] upichie:
Not sure what happened with Titanium Backup there. You could always try uninstalling and reinstalling (check the option to automatically restore your settings; it saves a file on your sdcard and seamlessly reapplies them).

And yes, use the new script—but only if you need to. If you don't need it, then mine as well save you the trouble. Feel free to post in the other thread if you encounter any additional problems. There's some bright minds there that can help. :)

Good luck!
[Galaxy S I9000 Android Development] stam91:
Install button doesn't work

Flashed this datafix over AOKP Milestone 6, SGS GT-i9000. After second reboot - can't install any app - on installation screen Install button became dummy. Help me, I'm dying...

Solved! The reason was active Screen Filter app.
[Galaxy S I9000 Android Development] Pierfranc:
I have to restore my 450 apps...I wish this will not slow my phone

Inviato dal mio GT-I9000 con Tapatalk 2
[Galaxy S I9000 Android Development] Benny-Danny:
Hi!

I have Slim ICS and I use Titanium Backup.

What do I have to do? Flash only KagadarLinkFixer260312v1.zip? Flash KagadarLinkFixer260312v1.zip AND DataFix_11032012.zip? What is the first to flash? And about titanium? If I flash KagadarLinkFixer260312v1.zip will I have to do something on titanium?

Thanks in advance!
[Galaxy S I9000 Android Development] johnnyrichter:
This fix does not work for the "Can't install to external or internal" error on CM9 + Icy Glitch kernel.

After that I went to LANIGHT JB nodatadata which got rid of the error, and now I'm on CM10 JB nightlies which hopefully won't produce the error with that new CM10 partitioning. I have several more apps/games installed than I ever did on CM9 and it seems fine so far.
[Galaxy S I9000 Android Development] wawaweewa:
anyone tried it on infuse 4g?
[Galaxy S I9000 Android Development] tornadolf:
Flashed on Captivate with CM7.2 Nothing happened, warning is still there, datadata size unchanged.
[Galaxy S I9000 Android Development] radmik:
I instaled on my phone, but nothing is changed., warning is still here. can someone help me, or say, what I am doing wrong? First time I only instaled this script via CWM and Datfix from Market and all was OK, warning was away. But now I am trying the same again, and nothing...I tryid another rom, but warning ids still here. so, Has somebody solution, or help for me?
[Galaxy S I9000 Android Development] radmik:
so, nobody cann´t help me? I tryied to instal another roms(supernexus, xylon,tsunami) and i have still the same problem, solution from this topic can not help me
[Galaxy S I9000 Android Development] $0kr@t3$:
Does anyone have any suggestions to solve this problem?

Low Storage Notification

Please for any help, try to find a solution and can not :(
[Galaxy S I9000 Android Development] zingzing09:
i use rom slim 4.0.4, my storage 2gb while i use 220mb but my device notification '' low on sapce ''

can i flash it and use more apps on device ?
[Galaxy S I9000 Android Development] Helloworld294:
I have init.d lol im on semaphore 0.9.1
[Galaxy S I9000 Android Development] grifovunque:
cm9 build 17 - devil kernel 1.1.6

all works perfectly with this script...

before i have always use .nodatadata tips, now i use your script without problem...

thank you very much

;)
[Galaxy S I9000 Android Development] abitzsong:
CM9, semaphore 0.9.5b

I've been on this script for two days and it's working amazingly.

No noticeable lag nor low space messages.

This script should be tested for compatibility and stability and be integrated in all cyanogenmod based roms.
[Galaxy S I9000 Android Development] F1tty:
doesnt work on my newest miui with neo18+ kernel
[Galaxy S I9000 Android Development] tiwag:
AOKP [ROM][ICS][4.0.3][Milestone4]BLUE LIGHTNING- v1.1.0

& semaphore 0.9.5b

works nicely !! thanks a lot !! finally got rid of low memory warning !!
[Galaxy S I9000 Android Development] naTrium:
I'm glad it has been working well so far. :)

Sorry for the lack of feedback on my part, I've been busy and I've not been able to update the main post.

I'm planning to list all the roms and kernels you have tested so far as soon as I get some free time.

Cheers.
[Galaxy S I9000 Android Development] DarknessWarrior:
i can confirm this, my external SD card pics are unable to load on gallery...
[Galaxy S I9000 Android Development] bhu1:
I never had low storage notifications but still, thus script indeed make my phone and rom butter.
[Galaxy S I9000 Android Development] abitzsong:
I don't have this problem.

What ROM and kernel are you guys using?
[Galaxy S I9000 Android Development] linkness:
Does any one notice settings for certain apps not sticking after installing this? This definitely freed up space from \datadata and after the reboots it became fast again but recently I noticed GoSMS not retaining my settings if its closed.

The only settings which are retained are the individual settings like theme. Other settings like receive settings and pop notification all go back to default once gosms closes. It only closes when I run "fast reboot" app or when the phone has been asleep for awhile. I wonder if it has to do with this script since it I'm not sure if its moving the preference file to \datadata and if it is in sync with the most recent settings?

I have tried uninstalling the app and clearing data on it. I even deleted preference file from \datadata and it still happens.

Anyone else seeing this issue?

Im on AOKP port from BHuvan goyal beta 2.1
[Galaxy S I9000 Android Development] DarknessWarrior:
i think my sig is very detailed about that, but in case you missed it:

ROM: Team ICSSGS RC 4.2

Kernel: Semaphore 0.9.5b
[Galaxy S I9000 Android Development] damianmb:
The corruption is not being able to see the pics in the gallery or means that I've lost my pics?
[Galaxy S I9000 Android Development] cocos2000:
thank you! works perfect! Great job, no more low memory problem!

(CM 7)
[Galaxy S I9000 Android Development] millerm:
All my apps work nicely without performance loss.

Only Chrome browser has become VERY slow after applying it. Could one make exceptions for certain apps?

Sent from my GT-i9000 using Slim ICS 2.8
[Galaxy S I9000 Android Development] Helloworld294:
its in my sig...

anyway im using AOKP mil 4 on semaphore 0.9.1
[Galaxy S I9000 Android Development] Adevem:
yes chrome is pissing me off, it even froze my phone once. I thought that's just me.
[Galaxy S I9000 Android Development] kathees:
Hmmm,

I don't know this is happens because of this script I'm having reboot once/twice a day atleast. I never had this issue for more than 2 months. I'm in ICSSGS 4.2 and Semaphore 0.9.1.

Just wanted to make sure why this happens!!! How do I revert the changes by this script?
[Galaxy S I9000 Android Development] Helloworld294:
delete the script from the init.d folder :)
[Galaxy S I9000 Android Development] rmms:
Thanks a lot! Worked great on AOKP-milestone4 ! No more low memory problem!
[Galaxy S I9000 Android Development] rulala:
thank you very much
[Galaxy S I9000 Android Development] DarknessWarrior:
someone said that deleting the script from init.d only deletes the script, doesn't revert the changes.
[Galaxy S I9000 Android Development] alcaprone:
good news!has anyone had success with AOKP m4? i would like to try but if i risk something i prefer the old .nodatdata method, even if it slows down everything a bit..
[Galaxy S I9000 Android Development] tiwag:
first it seemed to work fine on AOKP M4,

but after a day TitaniumBackup started to FC and wasn't usable anymore,

after a fresh install of TB, it works again, but no Marketlink can be backupped.

i'm not 100% shure if this is caused by this low storage script, but it was the only change i did ...

should be investigated in detail now.
[Galaxy S I9000 Android Development] ew:
I had a couple of questions - and I did not see (or understand) if these were covered earlier.

If I am flashing a new kernel, should I reflash this file (especially if I run a kernel cleaning script). My guess is that I will need to

Similarly, if I install a new ROM that does not require a wipe, should I relfash this fix?

If I flash a new ROM that requires a wip and I am going to restore from Titanium - at what point would I reflash this fix, before or after I restore my apps and data

Is there a situation that I would want to "reverse" the script, and if so, how would I do that

If there are questions that could benefit others, perhaps they could be added to the OP.

Thanks,
[Galaxy S I9000 Android Development] Handeman707:
Works this also on Aokp m4 rom "BlueLightning"?

ThanX Anyway!
[Galaxy S I9000 Android Development] kathees:
Hi,

All your instructions are very clear. But you haven't mention anywhere how do we uninstall? Is there any way to revert back?
[Galaxy S I9000 Android Development] naTrium:
Unfortunately, until I make a script to revert all the changes, the easiest way is to reflash the main rom. Sorry. :(
[Galaxy S I9000 Android Development] stfudude:
+1

i want to know about this too.
[Galaxy S I9000 Android Development] kathees:
Ok Thanks for the update and thanks for this wonderful script. It fixed all my low memory problem.

If you can please try to make a script to revert also. Flashing main memory means with data reset I think so it's involves more time consuming.

Thanks buddy for your wonderful work!!! :)
[Galaxy S I9000 Android Development] stevem99:
Thank you so much, a thousand times! This issue has been affecting me for quite-awhile and I had researched it in the past, but wasn't able to get anywhere. Like many others, I don't spend my life doing phone-modding, but I know quite a bit about how the android works. I like to try stuff, and I'm not stupid enough to ruin my phone.

I have been running CM7 for the longest time and the problem would either manifest as random force-closes, or if I was lucky the low disk space notification (that did not really help!).

Once I found out about the issue with /datadata but all I could ever do was try to jockey my applications around, but we all know that is still not reliable.

Anyway, your script did the trick. I did have some issues with the YAFFS partition containing corruption before I could get it to work though. There were numerous orphaned files (or something??). I would get errors saying CP couldn't stat file - file or directory doesn't exist. If I did an LS the files (obj####) really didn't exist in there (even an ls -la). However doing a find . -name BLAH would also show the same error.

I followed some advice and just did a full nandroid backup and restore which eliminated the corrupt entries (about a dozen in total).

I have about 120-150 apps and my datadata was basically always full due to some hogging apps (K9 mail, Dolphin browser, and others).

This script works REALLY great. Now my datadata sits at about half full.

Thank you so much!

-SteveM

P.S. I saw in another thread someone ripped on people for *****ing about this problem and saying people with the Captivate are a bunch of whiners. Well that is ridiculous. You, on the other hand, were very helpful and now my phone is running better than ever WITH all my stuff on it.

(I am a long-time lurker)
[Galaxy S I9000 Android Development] Kagadar:
If I may make a suggestion, I feel that it would make the phone significantly faster if you included cache as a directory that you link. Cache is kinda similar to the app databases in that it actually requires writing to disk. Even with a high number of apps, cache won't take up anywhere near enough space to warrant leaving off the flash partition. The difference that linking cache makes is most noticeable while listening to music and using/switching between apps. Lib is the one that uses all your space ;) leave that on the ext4 partition since it never gets written to.
[Galaxy S I9000 Android Development] x86-Dark:
Installed on "Dark Night 3", now /datadata partiotion has 134MB free.

Opening app seems faster, good job! :D
[Galaxy S I9000 Android Development] Wendigogo:
It depends of apps ...

In Mozilla firefox, it's "files" directory which is bigger and "lib" is really small (no "cache" partition).

In Humble Bundle, "cache" is a big part and leave it on datadata will not free so much space.

But if you wanna try this, you could diy in adding "cache" string in "dirs_to_move" variable in the init.d script.
[Galaxy S I9000 Android Development] Kagadar:
I'm more worried about the performance impact than saving space. Leaving cache on the ext4 partition seems to slow down the system quite a bit when another app is also reading from the SD card.

Take into account that writing to SD is significantly slower than reading. Static files (like lib, and most of the things found in "files") will only ever be read by their application, so leaving them behind won't have much of a performance impact. I've been testing for two days with cache included in the init.d script, and I can definitely say that it makes a difference. You're looking at roughly 25MB more space used, with ~135 apps (including Chrome and Maps).

I agree that sometimes apps have a large cache, but if you leave it behind you're really going to suffer while trying to use that application.
[Galaxy S I9000 Android Development] Wendigogo:
Interesting comment. :D

Did you measure the difference of space left between with/without cache included in script ?

EDIT : just looking at /datadata/*/lib size on my phone. It sums up to about 90Mo on 150Mo used. O_o

So maybe moving only those directories on /data/data would be sufficient/efficient ...
[Galaxy S I9000 Android Development] Wendigogo:
If someone wanna try this "modified" init script : DataFix_22032012.zip.

Only "dirs_to_move" is changed to include all subdirectories but "lib*". This way every subdirectory is moved back to /datadata (yaffs partition) except "lib*".

This implies a lot of symlinks are created. Dunno if there's a limit and if it could slowdown the system ...

Make a backup before applying, I didn't tested it myself.
[Galaxy S I9000 Android Development] naTrium:
By not moving the databases there would still be a lot of slowdowns. You can add the apps you want to keep on /datadata/ by adding it to the "skip these apps" section.
[Galaxy S I9000 Android Development] Wendigogo:
That's what @Kagadar said two days ago.

And according to him /lib are only read when used (so still fast on ext4) and cost a lot of space. It's wasted yaffs space imho so the best ratio of performance/space left is to move them out of /datadata. :D

And that's what I've done in the "modified" script (just changing "dirs_to_move" variable) : only the "lib" subdirectories are moved to /data. Everything else stays on /datadata.
[Galaxy S I9000 Android Development] Jordiharrison:
Low storage issues have been the bane of my phone with CM9 for the last month. I had to keep wiping and restoring /datadata, I never really lent myself the time to research a solution.

So far, this seems to work beautifully, went from 48k free (!) to 145MB. Initially apps seemed slow, but they have sped up.

Thanks so much for posting this fix :)
[Galaxy S I9000 Android Development] Wendigogo:
You've tried the fix in first post ?
[Galaxy S I9000 Android Development] Badger51:
thanks, newbie to CM7 on my Fascinate...

So far this is working like a charm....

Thanks again
[Galaxy S I9000 Android Development] Jordiharrison:
Just flashed your modified version. Things seem to be moving along smoothly.
[Galaxy S I9000 Android Development] naTrium:
Word of advice: I just screwed up most of my data going from CM9 back to CM7.2 by forgetting to tick the Titanium Backup fix. ALWAYS be careful with that. Good thing most of my important stuff is stored in the cloud. :)

You must tick it BEFORE backing up. Also, remember to increase your TB story by 5 or 10. It will help a lot in these situations.

I still have to find some time to do the 'undo' script and check out the "all but libs" implementation by Wendigogo. :)
[Galaxy S I9000 Android Development] jifeng:
I just tried the latest 30datafix, but got below messages.

Anyone know why?

root@android:/etc/init.d # sh 30datafix
sh 30datafix
: not found9]:
: not found2]:
: not found5]:
: not found5]:
: not found8]:
30datafix[81]: syntax error: 'do^M' unexpected
[Galaxy S I9000 Android Development] Adevem:
hey man I've tried your script by replacing the 30datafix script using root explorer myself because flashing it gave me an error.

hope that didn't messed things up because the apps are a little jumpy in performance.

anyone who tried it care to review as well?
[Galaxy S I9000 Android Development] finnsonc:
So I've been trying to get this to work. I'm on Slim ICS 2.9 with midnight kernel 0.7.4. I'm seeing this in the midnight kernel's log:

init.d
creating /system/etc/init.d...
starting init.d script execution...
Sat Mar 24 22:18:39 MDT 2012 USER EARLY INIT START from /system/etc/init.d
Sat Mar 24 22:18:39 MDT 2012 USER EARLY INIT DONE from /system/etc/init.d
Sat Mar 24 22:18:39 MDT 2012 USER INIT START from /system/etc/init.d
Sat Mar 24 22:18:39 MDT 2012 USER INIT DONE from /system/etc/init.d
Sat Mar 24 22:18:39 MDT 2012 USER INIT START from /system/etc/init.d
init.d: START '00banner'
init.d: EXIT '00banner' (0)
init.d: START '30datafix'
rm: can't remove '/data/data.new': No such file or directory
30datafix[75]: cp: not found
Error: failed moving /datadata to /data/data
init.d: EXIT '30datafix' (1)
Sat Mar 24 22:18:39 MDT 2012 USER INIT DONE from /system/etc/init.d

Any ideas?
[Galaxy S I9000 Android Development] Kagadar:
Go to terminal or ADB as root and type in the following lines:

mount -o remount,rw /system

ln /system/xbin/busybox /system/bin/cp

ln /system/xbin/busybox /system/bin/grep

ln /system/xbin/busybox /system/bin/tar

ln /system/xbin/busybox /system/bin/mv

Try and run the script again.
[Galaxy S I9000 Android Development] finnsonc:
Well that seems to work. Thank you. Only the move command was linked properly haha
[Galaxy S I9000 Android Development] MoooN:
thanks so much

you helped me fixing my system!