yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] LucidREM:
i just can't figure out what you're trying to "fix" here .. your available space will always drop .. moving things to the SD just slows it down so you don't lose as much space
[G1 Android Development] kingblind:
I am trying to make the G1 NOT use any internal storage.. I want all apps and cache running on an external source.

If I don't I run out of internal storage very quickly. Seems like alot of people are this forum are trying to fix the g1's shortcomings. Don't you think?
[G1 Android Development] bestwebs:
Hi,

I have 52 apps and caches installed on sdcard and 61 megs free phone space.

I followed the instructions is this post including optional step 13.

http://xdaforums.com/showthread.php?t=468959

Using a 16gb kingston card now.

:)
[G1 Android Development] kingblind:
I am running at 53mb free and everything seems fine.. Is there some reason I shouldn't be doing this?

again, like you can see in the post above this.. Alot of folks seem to be doing it. (In fact some of these instructions seems to come from you.. LucidREM).. I don't want to come across as rude.. I am just trying to understand the disadvantages of it.

Thanks ..
[G1 Android Development] bestwebs:
Hi,

The only disadvantage that I have found is a slight slower response.

That doesn't bother me.

I much rather have the extra phone space.

So it works for me.

:)
[G1 Android Development] Ryanmo5:
Well we all want something in life, its gonna use some storage no matter what you do. If you are running out of storage that fast then stop installing 5,000 apps. I have apps and caches to sdcard and have never run out of storage.
[G1 Android Development] blackknightavalon:
Was having the same problem. All I did was clear both the Browser and Maps cache from the standard Settings menu and I went from 52MB free to 56MB. I try to use the standard methods before resorting to Terminal Emulator.
[G1 Android Development] andonnguyen:
So I just moved the dalvik-cache and my free space went up to 68mb! Lol, and its running just as fast, if it starts to crash ill just move it back haha

edit: its now at 70mb after a reset
[G1 Android Development] POTZY69:
isn't the benefit of having everything on the sdcard to prevent the phone from dyeing once the maximum number of write cycles is exceeded.

also if all apps are on sd could i use those apps if i mounted the phone ?
[G1 Android Development] andonnguyen:
Yes, the apps are still usable if you mount your phone to your computer via usb.
[G1 Android Development] Binary100100:
there was definitly something up with the dalvik-cache because I came here to look for a solution to my 7mb free problem. I figured that it had something to do with the 288 apps that I had stored to my sdcard... but I didn't think that it should be storing that much information on the phone itself. So I moved the dalvik-cache to /system/sd/ and I went from 7mb to 49mb!

Wow. Just wow.

Is there possibly a downfall to moving this file to sd?
[G1 Android Development] andonnguyen:
I haven't had any downfalls yet, I've ran every possible program and setting on this phone after migrating the dalvik-cache, and everything is running perfectly without any crashes. Hell, even neocore started working again lol. I'm not going to complain, my phone is just as fast as if I didn't have any programs installed, and I have 70MB free space with 170 apps.

EDIT: I have /data/data, /data/app , /data/app-private, and /data/dalvik-cache moved to my 8GB Class 6 microsdhc card.
[G1 Android Development] dwang:
I don't recommend moving /data/data to the sdcard as it will give u a higher chance of corrupting the flesystem. If the os happens to be writing data when the phone turns off, the fs will be corrupted. And then you'll have to boot up linux and repair it. There is no issue w apps to sdcard because the os isn't constantly writing to those directories.

I'm not sure about the dalvik cache. I don't know how often data is written there.

The internal flash is running the yaffs filesystem which seems to be more robust in this area than the ext2 fs that the sdcard partition is running. Afaik, I don't think its possible to format yaffs on the sdcard partition. Maybe somebody will come out with an app that lets you do it.
[G1 Android Development] kingblind:
I don't have 5000 apps installed.. I have like 15 to 18.. Everything is very stable now..
[G1 Android Development] LucidREM:
so maybe the dalvik-cache would be a good addition to my script file? as i have stated once before there's only one sure way to eliminate all loss of free space on the phone .. and that's "copy.sh all" .. which is highly unstable

ME: i went from 35M -> 48M by moving the dalvik-cache .. tho i was perfectly fine with 35M
[G1 Android Development] dwang:
The files in the dalvik-cache directory seems to be static and only generated when an app is installed so I think it would be fine to move them to the sdcard.

I'm running haykuro 4.5 and I gained 20 megs of free space when I moved the dalvik-cache t the sdcard!

I did some reading on the dex files and basically the dex files are the executables that the dalvik java VM runs. So in theory moving them to a class 6 sdcard should make applications load up faster and switching between apps should be faster as well, since a class 6 sdcard is much faster than the internal flash.
[G1 Android Development] Binary100100:
Yeah and needless to saying that having anything less then a class 6 can have even more adverse effects. Personally I have a 8gb Class 4 and it seems sluggish at times. Moving the dalvik-cache didn't seem to help much. But I'll suffer with it for now until I can get a faster card. Anyone know of a good 16gb class 6? :D
[G1 Android Development] KidJethro:
Went from 57mb to 66mb with the dalvik cache move... :eek:
[G1 Android Development] KidJethro:
16gb class 6-

http://www.newegg.com/Product/Produ...1053325334&Description=micro sdhc&name=A-DATA
[G1 Android Development] cal3thousand:
For anyone wanting to move the dalvik-cache, make sure you copy the files and don't just do this like an your cache moves. I did this with good results (YMMV):

1) reboot and backup!

2) connect phone and don't mount

3) Command Prompt:

4) adb shell

5) #mkdir /system/sd/dalvik-cache

6) #busybox cp -a /data/dalvik-cache /system/sd/dalvik-cache

7) #rm -R /data/dalvik-cache

8) #ln -s /system/sd/dalvik-cache /data/dalvik-cache

9) #reboot
[G1 Android Development] andonnguyen:
yeah, moved dalvik-cache and I now have 70Mb free :D
[G1 Android Development] Ryanmo5:
Went from 38mb to 59mb with the move!!! :):):)
[G1 Android Development] cal3thousand:
I went from 35 to 60

This move needs to be included in the standard space saving SD moves.
[G1 Android Development] Ryanmo5:
Couldn't agree with you more, thanks for posting the script by the way! I just installed 20 apps and storage didn't go down AT ALL lol
[G1 Android Development] kingblind:
Well I am glad all my tinkering with the phone helped some folks.. I am digging the G1 alot now. (52 mb free) and holding.. ;)

Thanks to LUCID REM and all the other folks writing scripts.. what a time saver!
[G1 Android Development] Binary100100:
Sweet. Thanks!
[G1 Android Development] blackknightavalon:
"Device not found" is displayed on the Command Prompt when using the adb shell command. :|

------------------------------------------------------------------------

Never mind. Did the whole thing on Terminal Emulator. Went from 56MB to 62MB free.
[G1 Android Development] Mikey:
Then set it back :p
[G1 Android Development] LucidREM:
i'll add this into my script with the next update.zip

$su

#busybox cp -a /data/dalvik-cache /system/sd

#rm -r /data/dalvik-cache

#ln -s /system/sd/dalvik-cache /data/dalvik-cache

good alternative i think to moving /data/data
[G1 Android Development] a1t:
Quick Questions

Trying to run the Dalvik command to SD

system is complaining about read only...blah-blah

so i try:

busybox cp -a /data/dalvik-cache /system/sd/dalvik-cache

mount -o remount,rw /dev/block/mtdblock3 /system

rm -rf /data/dalvik-cache

ln -s /system/sd/dalvik-cache /data/dalvik-cache

reboot

It is fine with the mount as read/write command but it still shows as a read only file system after I attempt "rm -rf"...

Any ideas?
[G1 Android Development] All~G1:
73 apps, /data, apps, and now dalvik moved to sd:

60mb to 70mb... I love this forum!!!! I'm noticing a little more responsiveness and faster transitions from page to page. Thanks to all involved in this :D
[G1 Android Development] robstillholdin:
Apps on SD problems

Hello to everyone on this great forum.... searched my problem, a couple of topics came up but nothing that answered my questions completely, ok

I have noticed with apps on sd card that any app that has to access the sd or gather information from the fat partition of the sd force closes or errors....has this been discussed? is there a way that I can maybe move the few apps that i need working to the old /system/apps folder without confusing things? any help is greatly appreciated, thanks
[G1 Android Development] dashed:
Did you move the data to the SD also? I just recently moved my apps to the cache for the first time and I moved the data as well. I had so many force close issues so I wiped and just moved the apps. I dont have any force closes any more and still have 60+MB space on the phone with about 60 apps installed.
[G1 Android Development] robstillholdin:
no did a wipe and moved just apps.......have about 40 apps with 50+MB space on phone.......I am only having problems with few applications, mostly games that need access to files stored on sd simultaneously.......get a force close every time they try to fetch the files they need.....wasn't sure if the /system/apps folder is useless now, since link was created to the /system/sd/apps....????
[G1 Android Development] shafty023:
You were supposed to remove the /data/apps folder and create a symlink to /system/sd/apps

BE AWARE, THE FOLLOWING COMMANDS ASSUME YOU HAVE ALREADY MOVED EVERYTHING OVER TO /SYSTEM/SD/APPS AND /SYSTEM/SD/APPS-PRIVATE. THEY WILL ERASE ALL OF YOUR APPS

rm -rf /data/apps

ln -s /system/sd/apps /data/apps

rm -rf /data/apps-private

ln -s /system/sd/apps-private /data/apps-private

then just reboot
[G1 Android Development] robstillholdin:
thanks, i have done these steps previously....

i guess my question is, is there anyway to install an .apk to the system and not the sd if i wanted to?
[G1 Android Development] kingblind:
the only remaining app so far that I still can't figure out how to move (it's cache that is) is Scoreboard. Anyone have any luck with that?
[G1 Android Development] shafty023:
You can't choose your install directory when installing an .apk file. If you wanted to do a workaround first thing that comes to mind is to unsymlink /data/apps , then create /data/apps directory. Then create a symlink for each application that you want in /system/sd/apps into /data/apps. That way when you install a new app it does in fact go into /data/apps and you can choose to move it to /system/sd/apps then create the symlink if you want.

EXAMPLE: (the "->" stands for a symlink)

/data/apps -> /system/sd/apps

rm -f /data/apps

mkdir /data/apps

Example contents of /system/sd/apps:

someapp.apk

anotherapp.apk

Let's say you want "someapp.apk" to remain in /system/sd/apps, then we need to create the symlink in /data/apps so the system can now see it.

ln -s /system/sd/apps/someapp.apk /data/apps/someapp.apk

Now let's say you want "anotherapp.apk" to actually be installed on the system and not SD card.

mv /system/sd/apps/anotherapp.apk /data/apps

That's it. Now you can pick and choose which apps you want on the SD card and which ones you want on the actual phone. Now I haven't tested this but I see absolutely no reason why it shouldn't work. In Linux we do this all the time and there's never an issue. If you try it out let us all know how it worked for you.
[G1 Android Development] LucidREM:
no cache folder .. there's databases:

/data/data/com.google.android.apps.scoreboard/databases/scoreboard.db
[G1 Android Development] kingblind:
Sorry to be so dumb.. but what would be the best way to move the database (to the SD that is.) .. Would you mind writing out the commands for me..

thanks so much.

Oh wait.. I guess it would be this (see below) wouldn't it.? (This would move ALL data over... Hmm I think I read that it could cause problems.. Correct?) Thanks everyone for your time and trouble in advance.

mkdir /system/sd/data

cp -rp /data/data /system/sd

rm -r /data/data

ln -s /system/sd/data /data/data

Update: Moved Data/data Now 67mb free.. LOL.. I think I need to stop now.. :) If I have any problems I will just do the reversal commands (listed below.)

(Restarted phone today.. Now have 72mb free.. super crazy. everything is totally stable so far.)

Reversal procedure:

rm /data/data

cp -rp /system/sd/data /data

UPDATE: Phone was getting REALLY slow.. I ran the reversal Procedure.. speed is back.. Guess moving Data/Data isn't that great of an idea.. Just fun to know that you can do it.
[G1 Android Development] wootroot:
ok so i went to do the move apps to sd cards, i flashed the update then typed in the commands in the terminal, thats when everything went south

several programs force closed all at once, then no programs worked, so i rebooted and got stuck on flashing android screen

i dont have a card reader, and my g1 wont let me access the sd card without mounting it

oh and im using windows vista incase that matters for the repair (and the worst news, i tried to use nandroid to do a backup before the flash... it wouldnt do a backup so i flashed anyway... but ive created backups before, so maybe i could revert back to that backup?)
[G1 Android Development] robstillholdin:
thanx bro...i will let u guys know whats up here after class when i try it out. appreciate it
[G1 Android Development] perdid0:
TO MOVE ONE APP TO INTERNAL MEMORY

1: figure out the folder your app is in on your sd (ie the tether app /system/sd/data/android.tether)

2: do the following commands inserting your folder where needed.

busybox cp -a /system/sd/data/android.tether /data/tether

rm -r system/sd/data/android.tether

ln -s /data/tether /system/sd/data/android.tether

(insert program folder name here instead of android.tether here

NOTE: where i have data/tether u can make up any name u want for the folder as long as it is in data/. but it must be plugged into the equation twice. :)
[G1 Android Development] LucidREM:
aren't you missing this:

mkdir /data/tether

or is this done automatically?
[G1 Android Development] MarcusMaximus04@gmail.com:
LOL! I like it. It'll follow the symlink from /data to the sdcard and then back from the sdcard back to data. Seems like a funny way to do it but sounds like it'll work(it was the first thing I thought of too... with a chuckle)
[G1 Android Development] wootroot:
well, i wiped my phone and it works, but everything is gone (apps wise) :(
[G1 Android Development] robstillholdin:
quick question may be a retarted one, but should all my apps be listed in /data/app and also in /system/sd/app ????..........because both methods made the app disappear
[G1 Android Development] LvDisturbed1:
Issue after apps to sd!

I recently moved my apps to my sdcard, and now I can't install apps from my sdcard. Any attempt fails. Does anyone know why this is happening? I want to install sms bomber, but can't due to this issue. I think there is a way to install apps from the terminal emulator, because there is an install command...I just don't know how to use it (I'm not linux savvy). Any input would be appreciated!
[G1 Android Development] LucidREM:
if you move apps to /system/sd/app and create the link .. then it's one in the same .. these lines:

#ls -l /data/app

#ls -l /system/sd/app

will result in the same thing .. the link directs all traffic for /data/app to the new location
[G1 Android Development] robstillholdin:
correct. meaning that after link created. newly installed .apks should be only in /system/sd/app and not in /data/app ....right?

***edit.......nevermind thanks lucid. finally understand why they are being listed when i #ls data/app. its bc of the link......duh....
[G1 Android Development] tubaking182:
you could try using the comp adb install smsbomber.apk(i forgot what i actually named the apk in the zip but try it with the correct name) otherwise i believe the terminal emulator command is installd /sdcard/apps/smsbomber.apk(or whatever the directory is to the app

also you wanna make sure that you correctly did the ln -s /syste/sd/app /data/app otherwise things might not install properly from any source
[G1 Android Development] theanswriz42:
JFvMOD apps on SD issue

Long story short I had to wipe my phone and when I re flashed it with LucidREM's apps on SD ROM, I reran his scripts and just got the flashing android. So, I re-flashed the phone again though none of my apps are showing up in the menu however when I look at the file structure I get the following:

$ su
# df
/dev: 49520K total, 0K used, 49520K available (block size 4096)
/sqlite_stmt_journals: 4096K total, 0K used, 4096K available (block size 4096)
/system: 69120K total, 68804K used, 316K available (block size 4096)
/system/modules: 1532K total, 1532K used, 0K available (block size 4096)
/system/xbin: 3172K total, 3172K used, 0K available (block size 4096)
/system/sd: 1548096K total, 32944K used, 1515152K available (block size 4096)
/data: 76544K total, 4492K used, 72052K available (block size 4096)
/cache: 69120K total, 1160K used, 67960K available (block size 4096)
/sdcard: 6381356K total, 79368K used, 6301988K available (block size 4096)
# cd system/sd
# ls
app app-private data lost+found
# cd app
# ls
android.tether.apk
android.traffic.apk
com.acme.android.powermanagerpro.zip
com.android.traffic.apk
com.ap.CraigsListChecker.apk
com.ap.SnapPhoto.apk
com.appdroid.anycut.apk
com.biggu.shopsavvy.apk
com.bonfiremedia.android_ebay.apk
com.deafcode.android.Orienteer.apk
com.google.android.bistromath.apk
com.google.android.stardroid.apk
com.ixellence.ixmat.android.community.apk
com.jamesots.android.closeeverything.apk
com.meebo.apk
com.mobisystems.msdict.embedded.wireless.wordnet.apk
com.myspace.android.apk
com.nextmobileweb.fbook.apk
com.nextmobileweb.phoneflix.apk
com.nextmobileweb.quickpedia.apk
com.nitrodesk.nitroid.apk
com.nitrodesk.touchdownpro.zip
com.paxmodept.palringo.android.main.apk
com.shazam.android.apk
com.skwid.systemmonitor.apk
com.tmobile.selfhelp.apk
com.ulocate.apk
com.weather.Weather.apk
com.yellowbook.android2.apk
droidsans.android.DroidSansTweakToolsAll.apk
edu.mit.locale.apk
jfupdater.ui.apk
org.connectbot.apk
org.gmote.client.android.apk
#

Is there any way to get the phone to pick up the apps on the SD card?

cheers
[G1 Android Development] LucidREM:
first .. you're better off not starting a totally new thread for a topic that's already being talked about

second .. just reintroduce the link .. but there's a good chance if there's an error with one or more of the apps that it will keep happening

#rm -r /data/app

#ln -s /system/sd/app /data/app

#rm -r /data/app-private

#ln -s /system/sd/app-private /data/app-private

#rm -r /data/data

#ln -s /system/sd/data /data/data

that will reconnect the apps to the phone
[G1 Android Development] shafty023:
What kind of errors are you getting? are you positive that /system/sd is correctly mounted and that you created the symlink from /data/apps -> /system/sd/apps ?

Of course, you can create that symlink to wherever you want as long as you update that in /system/init.rc and /system/etc/mountd.conf
[G1 Android Development] theanswriz42:
Sorry about that, I thought this was a unique situation from the other one.

I'll give it a shot and let you know.

Cheers
[G1 Android Development] theanswriz42:
hmm looks like I removed /data/data and the device is back to the flashing android.
[G1 Android Development] LucidREM:
so if there's no problem with /data/app you can just do that part and then not link to the /data/data if there's some error there

#rm -r /system/sd/data

this line will delete the data from the SD .. this will however reset some settings (etc) from the apps
[G1 Android Development] theanswriz42:
Awesome, worked like a charm. Thanks man.
[G1 Android Development] jigdagod:
Need Help

http://xdaforums.com/showthread.php?t=494281

I tried to follow this tutorial posted and I'm not sure if it's because of what I did that my phone is acting this way or if it's something else but this is what happen. I tried to contact the person who posted the instructions but i haven't heard back from him. Just wondering if there was another way I could reset my phone back to default

When I ran this file it backed up my original 2 files and went through all the steps but I didn't see the last file it was asking for. After I couldn't get it to work I tried to mount my sd to my pc and it won't let me. I also had icon apps that I downloaded but they say they weren't there. Like linda file manager. So I tried to download it again and it also won't let me install any files from the market. After downloading a file and it tries to install my phone reboots everytime, is there a way for me to fix my phone. Since I can't access my sd through my pc or on my phone I couldn't flash my phone back to a different JF.

I can't even factory data reset, when I do that it sits at the G1 loading screen. My wifi isn't working either. I tried the nandroid restore and the only file that I can get to flash is boot.img. when i try data.img or system.img it just sits at reading and doesnt do anything. I waited 15 mins does it supposed to take that long?

Is there anything else I can do to get my phone back to normal? If you need clarification of soemthing I wrote please let me know. Thanks you for the help in advance.
[G1 Android Development] Dharkaron:
Well first of all, what type of sd card do you have? size and class?

Secondly, did you partition it into a fat32 and a ext2 partitions?
[G1 Android Development] tubaking182:
well, first you could try a wipe and reinstall a JF build to your phone or even the nbh file you used when you rooted yout phone. second you could try and manually go through each step without that little script(use the search function) and then you can see where it went wrong. from the looks of it you got messed up at the point where it symlinks the new location to the old location of your apps. try manually going through the entire process again(and please tell me you have a partitioned card with the first section FAT32 and the second ext2)
[G1 Android Development] jigdagod:
I don't know the class but I have a sandisk 1GB it came with my phone.

Yes it was partition to fat32 1st and ext2 second. I had it split 500 MB each.

How can I wipe my phone because it won't recognize my sd card at all. Where is the nbh file.

how do I I manually go through it. I deleted my partition card because I didn't think it had worked probably so am I at lost or can I do the manual thing still?
[G1 Android Development] tubaking182:
search apps to sd
[G1 Android Development] jigdagod:
is there a specific one I'm supposed to look at?
[G1 Android Development] tubaking182:
well, you learn by reading, read some of them and i bet you'll find the one that tells you how to manually move your apps rather than using a script
[G1 Android Development] jigdagod:
first i was wondering how I could get back to the point of where I could reset my phone because right now I can't do anything with my sd or install apps. I'm stuck right now.

I am searching though, can I do it through adb?
[G1 Android Development] LvDisturbed1:
I used LucidREM's modded jf rom and ran the built in script. It worked fine, as I currently have all my apps on the sdcard and they run just fine. I'm just having issues installing anysource apps from my sdcard. As for the error...it just says installation unsuccessful.
[G1 Android Development] jigdagod:
I did get my wifi, install apps from market and everything else that was wrong with my phone to work. now it still won't read my sd card. is there anything i can do to get it to read it?