yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] malaeus:
AHHH!! HELP!! i dont know what happened. i just booted back into android after doing a standard nandroid backup (JF 1.5). and i get hit with a wave of repeating force close windows. i cant even load up the home screen, what happened!! has anyone else had this issue before? what could have happened to cause this?
[G1 Android Development] craneo:
yes, Can't change the wallpaper until reboot, also, found NBA time can't be installed..it caused rebooting automatically..
[G1 Android Development] lbcoder:
There's at least a couple of different ext2 drivers for windoze, and since this can only be applied to a hacked or dev device, it is reasonable to assume that the majority of the users this would affect would have the technical competence to deal with ext2.

As for the location of the dalvik caches (and home directory in /data/data/), this would obviously require that full programs be kept together. Its too bad that the programs are split up like that, would be nice if the apk and the dalvik cache were kept in the program's home directory. No technical reason I can think of why they're not.
[G1 Android Development] lbcoder:
Actually, its because 'mv' is synonomous with 'rename'... it just works with the hardlinks and doesn't actually move anything.
[G1 Android Development] chicojd:
I have performance issues since this change. Especially in music player. Lots of stuttering. Also program force closes / waits. Going back to sym-links.
[G1 Android Development] Seca:
System UID's inconsistent after using this method

Long time reader, first time poster. ;p After digging through this thread and searching, I haven't found anyone else with this issue yet.

I'm running JF 1.5, with normal apps and dalvik to sd. Using the manual method, or the Apps2SD2 apk, I run into the same issue. All is well until I reboot, when i receive the "System UID's Inconsistent" wipe your data.. error. After pressing I'm feeling lucky, all apps begin force closing before anything loads, even acore, and it proceeds to spiral until it flips back to the Android loading screen, and repeats.

I've tried wiping, I performed the recommended rm/mkdir of the old appstosd folders, everything I can think of. Appreciate the help, and hope I can get this working!
[G1 Android Development] dwang:
I did notice slowdowns when I did this as well, so I went back to symlinks.
[G1 Android Development] wliu88:
thank you firerat

my G1 firmware version :1.6

baseband version : 62.505.20.17U_2.22.19.26I

kernel version: 2.6.29.6

pls help me once free
[G1 Android Development] Firerat:
:)

actually its the rom that you have that I need

for instance I'm using CaNNon's Complete Eclair
[G1 Android Development] santelm:
i have a new g1 firmware1.6 from t-mobile and the memory on this is sucks,i was reading the appstosd2 will it work on my phone and if so what do i need?
[G1 Android Development] imwwwy:
Hi! Can someone upload the "unionfs.ko" ? I'm going to do the "app2sd" based on the rooted stock firmware of Milestone 2.1. Many thanks!!!!
[G1 Android Development] bagayas:
Marcus, recently revived my aging G1. Rooted it and applied your apps. Now it's rocking and rolling. It took me a couple of passes but I got everything working well (only issue is the low memory notification, doesnt affect anything, just an annoyance). I'd like to donate to the cause. Can you pass me info on how to donate?
[G1 Android Development] Firerat:
hmm

very, very, very old.............

http://goo.gl/9Lsd

is where the good stuff is at

follow the NoneDanger link in my sig if your are nervous
[G1 Android Development] bagayas:
Thanks for the follow up. Just getting back into the Droid world after playing around with the iPhone for a while and figured I'd do some tinkering with my G1. As you can tell I went waaaay back, did the root bit and am progressing through the various iterations of ROM builds. I like what you've done and will look at taking that on as my next project. Mahalo!
[G1 Android Development] lisatovall73:
I'm a totally noob at this crap but I need to app. I don't know anyone that can do it for me and your instructions are in Chinese. Could you do a video tutorial please?
[G1 Android Development] odsamuels:
I am having the EXACT same issue and I noticed there has not been any response to your query. Please tell me that you eventually figured it out and if so could you share what was the problem? Thanks.
[G1 Android Development] Firerat:
Guys , when this was written it was 'new and improved' but this is well out of date now..

unless your using an ancient rom you do not need this

TBH It should be closed and marked as closed in OP
[G1 Android Development] odsamuels:
I'm using the R3-MCR ROM from Modaco for my Tattoo.

TBH I don't know if you would consider that ancient, but a lot of these newer ROMs don't work on the Tattoo.

Can you suggest how I can get the APPS2SD to work for my Tattoo then?
[G1 Android Development] Firerat:
ahh, ok

I'll d/l r3-mcr-tattoo-withadditions-signed.zip

and have a look

should be straight forward
[G1 Android Development] odsamuels:
Thanks, I greatly appreciate it, it's driving me crazy because everything else works but for some reason there seems to be something that just isn't happening with the APPS2SD part of it.
[G1 Android Development] Firerat:
ok, that rom uses run-parts, which will make it nice and easy

su
install -m 700 -D /sdcard/a2sd.sh /system/sd/userinit.d/03a2sd

assuming your sd card is partition as the script expects it should work next time you boot
[G1 Android Development] odsamuels:
OK, I will definitely give this a try!

Do I need to wipe and start over or just run it now using the terminal emulator or adb?

Also, do I need to know what some of that command mean? E.g. "03a2sd" or should I just not worry about any of that?
[G1 Android Development] Firerat:
no need to wipe

basically what happening is something called run-parts its running

it looks for scripts in a directory ( in this case /system/sd/userinit.d )

and executes them in order, the 03 is just to allow you to make a script run earlier than the a2sd script ( e.g. 01runMe1st )

install is a command which basically does a few things all in one

-m 700

this is setting the permissions to 700, XRW------ or

Owner Execute/Read/Write/

Group No permissions

Other No Permissions

-D

means that any missing destination directories will be created

long way to do it could be

su
mkdir /system/sd/userinit.d/
cp /sdcard/a2sd.sh /system/sd/userinit.d/03a2sd
chmod 700 /system/sd/userinit.d/03a2sd

;)
[G1 Android Development] odsamuels:
Aww man, no errors whatsoever, but it still just doesn't work. The available space is still 152MB. :(

Any other ideas?
[G1 Android Development] Firerat:
output of

ls /dev/block/

thats LS lowercase

would also like to see the a2sd.sh script you have ( link , pastebin , or rename to a2sd.txt and attach )
[G1 Android Development] odsamuels:
Here is the output:

C:\AndroidSDK\tools>adb shell
# ls /dev/block/
ls /dev/block/
←[1;35mloop0←[0m ←[1;35mloop3←[0m ←[1;35mloop6←[0m ←[1;35mmmcblk0
p1←[0m ←[1;35mmtdblock0←[0m ←[1;35mmtdblock3←[0m ←[1;34mvold←[0m
←[1;35mloop1←[0m ←[1;35mloop4←[0m ←[1;35mloop7←[0m ←[1;35mmmcblk0
p2←[0m ←[1;35mmtdblock1←[0m ←[1;35mmtdblock4←[0m
←[1;35mloop2←[0m ←[1;35mloop5←[0m ←[1;35mmmcblk0←[0m ←[1;35mmmcblk0
p3←[0m ←[1;35mmtdblock2←[0m ←[1;35mmtdblock5←[0m
#

I'm not sure why adb lists my output with the "←[1;35m" crap but aside from that the output is accurate.
[G1 Android Development] Firerat:
ok, that a2sd is very wrong

it is trying to load kernel modules which don't exist

it is waiting for sd to be mounted ( it isn't )

this is the reason why this thread should be closed, it is way way out of date

attached is a txt file, put that on your sd card and substitute that into the command I gave earlier

its basic but it will do what you want
[G1 Android Development] odsamuels:
Ok, let me give that try right now.

(I'm guessing I should rename the .txt part back to .sh).
[G1 Android Development] Firerat:
no need, you are just installing 03apps2sd.txt, not a2sd.sh ;)
[G1 Android Development] odsamuels:
Oh man... no errors, but still no increase in the available internal memory.

I noticed though that I have no /system/intmem/ folder is that normal?

Also, /system/sd/app/ and /data/app/ seem to be the same folder, is that ok?

# ls /system/sd/app
ls /system/sd/app
←[0;0mcom.androidapps.spare_parts.apk←[0m ←[0;0mcom.lindaandny.lindamanager.ap
k←[0m
←[0;0mcom.appstosd2.apk←[0m ←[0;0mjackpal.androidterm.apk←[0m
←[0;0mcom.google.android.apps.maps.apk←[0m ←[0;0mplaceholder←[0m
←[0;0mcom.keramidas.TitaniumBackup.apk←[0m
# ls /data/app
ls /data/app
←[0;0mcom.androidapps.spare_parts.apk←[0m ←[0;0mcom.lindaandny.lindamanager.ap
k←[0m
←[0;0mcom.appstosd2.apk←[0m ←[0;0mjackpal.androidterm.apk←[0m
←[0;0mcom.google.android.apps.maps.apk←[0m ←[0;0mplaceholder←[0m
←[0;0mcom.keramidas.TitaniumBackup.apk←[0m
#
[G1 Android Development] Firerat:
the script creates a symlink ( symbolic link ) between /data/app and /system/sd/app

so , yes in effect thay are the same folder, which means it worked

but, you know , you kind of have to ask yourself why having lots and lots of free internal memory is a good thing.

I mean if your not using it what do you gain?

G1's have very little internal memory, we are kind of forced to use the sdcard

edit:

Oh, hold on, its not worked

I just noticed placeholder

thats just a blank file to get the directory copied from the zip, your ext partition has not been mounted

your sd partition2 is formatted as ext2, ext3 or 4 ?
[G1 Android Development] odsamuels:
It's ext2 from what I know because I didn't bother to convert to ext3 given the problems I was already having. Does it make a difference?

I think when it works it should list the internal available memory as a lot more right?

Any additional info I can give you?
[G1 Android Development] Firerat:
yes, you will have more internal memory available, sitting there, doing nothing

did you reboot?
[G1 Android Development] odsamuels:
Oh I assure you that it won't be sitting there doing nothing :D I ran out before which is why I bought the card and am fight so hard to get this to work.

I rebooted though and still no luck.

Should this be this difficult?
[G1 Android Development] odsamuels:
Forgive me if this is a dumb question, but if we've tried everything else, is it possible to manually create symlinks from the internal memory to the sdcard?
[G1 Android Development] Firerat:
yes, but your sd partition2 is not mounted on /system/sd

I have no idea why not, did you reboot?
[G1 Android Development] odsamuels:
Yes, many many many times.

Is that why it's not working?
[G1 Android Development] Firerat:
no, that would be silly, the script runs each boot

maybe it is not formatted ext2

a logcat would probably tell you why its not working

search for "adb" if that makes no sense
[G1 Android Development] odsamuels:
I've dumoed it, how can I send that to you?

(as you can imagine, I have not clue how to read this :) )
[G1 Android Development] Firerat:
http://pastebin.com/

is a nice option ;)
[G1 Android Development] odsamuels:
Kewl.. very nice site -

http://pastebin.com/WndaCV4k
[G1 Android Development] Firerat:
ideally I need the logcat from the initial boot, be fore you get the android splash screen

but in that log I notice you have a app which is trying to do apps2sd

I doubt this is causing the problem ( as the apps2sd script does its thing before android starts )

but yeah, I need to see the initial boot up logcat
[G1 Android Development] odsamuels:
Ohh ok, I'm not so sure how to get it from boot... any pointers?

The app u see is probably the AppstoSD2.apk (attached), but it doesn't work for me.

Could there be something wrong with my partitions? Any thing looking out of place here?

# mount
mount
rootfs on / type rootfs (ro)
tmpfs on /dev type tmpfs (rw,mode=755)
devpts on /dev/pts type devpts (rw,mode=600)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
tmpfs on /sqlite_stmt_journals type tmpfs (rw,size=4096k)
/dev/block/mtdblock3 on /system type yaffs2 (ro)
/dev/block/mtdblock5 on /data type yaffs2 (rw,nosuid,nodev)
/dev/block/mtdblock4 on /cache type yaffs2 (rw,nosuid,nodev)
/dev/block/mmcblk0p2 on /system/sd type ext3 (rw,noatime,nodiratime,errors=conti
nue,data=ordered)
#

Also -

# df -h
df -h
Filesystem Size Used Available Use% Mounted on
tmpfs 92.7M 0 92.7M 0% /dev
tmpfs 4.0M 0 4.0M 0% /sqlite_stmt_journals
/dev/block/mtdblock3 150.0M 123.3M 26.7M 82% /system
/dev/block/mtdblock5 165.1M 19.0M 146.1M 11% /data
/dev/block/mtdblock4 150.0M 7.2M 142.8M 5% /cache
/dev/block/mmcblk0p2 1.2G 40.6M 1.1G 3% /system/sd

is "/system" supposed to be ro (read-only)?
[G1 Android Development] Firerat:
yes, system should be ro

looking at that a2sd is working

you have about 20mb (ish) apps on your sd ext partition

the 19mb on data is quite normal, its used for application databases and some files that they need

what does interest me is /cache , what the hell do you have in that :)

Oh, and system, you have next to nothing in it

I guess I just know nothing about the tattoo

here is a (not so) typical g1 with cm5.0.8 and lbcoders mtd partition mapping method

the bold is actually a bind mount to sdcard ( as we have no internal memory to speak of )

you should probably go back to thinking why you need to use the sdcard, you have lots and lots of internal memory

Oh my, what I could do with all that internal memory, I could have like a quad install ;)

Every 0.1s: adb shell df -h Thu Jun 24 05:43:48 2010

Filesystem Size Used Available Use% Mounted on
tmpfs 47.8M 0 47.8M 0% /dev
tmpfs 4.0M 0 4.0M 0% /sqlite_stmt_journals
/dev/block/mtdblock3 90.0M 82.5M 7.5M 92% /system
/dev/block/mtdblock5 114.8M 85.0M 29.7M 74% /data
/dev/block/loop0 1.0M 1.0M 0 100% /system/lib/modules
/dev/block/loop1 4.1M 4.1M 0 100% /system/xbin
[B]/dev/block/mtdblock4 457.4M 118.5M 314.4M 27% /cache[/B]
/dev/block/mmcblk0p2 457.4M 118.5M 314.4M 27% /sd-ext
[B]/dev/block/mmcblk0p2 457.4M 118.5M 314.4M 27% /cache[/B]
/dev/block//vold/179:1
7.0G 6.5G 526.7M 93% /sdcard

try and get some of the tattoo guys to pop over to http://goo.gl/qgOp

and see what we are doing with what we consider to be redundant ( cache )

basically you can double the size of data !
[G1 Android Development] odsamuels:
Hmm... I'm looking at this more closely now and realize that this is kinda working but there's a missing piece of the puzzle.

On the phone it says that the Internal memory available is 146MB which is the same as the free space on "/data/".

I notice however that "/system/sd/" is an ext3 partition with the size I had set for that. 40.6MB of that is used (I'm not sure by what), but it seems that it is mounted(???) to "/system/sd/".
[G1 Android Development] Firerat:
:)

in all honesty , you don't need a2sd it will only slow things down for you

we have g1's they have virtually no internal memory, we *have* to use sdcard for apps ( or not have very many )

but seriously, check lbcoder's thread and point it out to the tattoo cooks/devs you can make more use of the internal memory with that
[G1 Android Development] odsamuels:
Lots of internal memory?? Where what u talking about? It says 146MB available on the phone. The phone comes with about 256MB (http://www.htc.com/www/product/tattoo/specification.html). The 1.2GB is what I'm trying to get the Apps to save to.

Do you think it could be somehow using the SDCard and not reporting properly or maybe something is screwed up?

What is a bind mount? Is it something I can use to join "/data" with "/system/sd" so the available memory reported is a combination of both?

Also, why did you say it looks like it's working?
[G1 Android Development] Firerat:
:chuckle:

I'm sorry, but if you don't see it you are blind

you do not need a2sd, look at my internal memory, look at yours !!!
[G1 Android Development] odsamuels:
I feel a little silly asking, but are you referring to "/dev/block/mmcblk0p2"?
[G1 Android Development] Firerat:
no, thats external storage

I have a total of 220mb of internal storage.....

you have 465mb !!!!

YOU DO NOT NEED A2SD !!!!!!!!!!!!!!
[G1 Android Development] odsamuels:
...but I keep running out of space in now time... it seems it's already down to 146MB and I haven't started installing anything yet! :eek: This is fresh after a wipe and start over.

Unless maybe I don't fully understand the file system of the Android then, but that 146 disappears really quickly.

Do you think if I started over with the partition as ext2 it would work?
[G1 Android Development] Firerat:
I should have checked the Tattoo specs

you have wasted too much of my time, you need help, but its not help I can give.

http://goo.gl/vuv0

personally I don't think it works, but its worth a shot I guess.
[G1 Android Development] archat68:
Help a noob to install apps2sd to my Galaxy 5 (i5503)!!!
[G1 Android Development] vincent_smoox:
Yes me too, i have galaxy 5 and love it if you can hel to install app2sd on my phone
[G1 Android Development] Firerat:
this thread is dead
[G1 Android Development] petran7:
hi everyone,

i cannot copy the two file to /data/

i tried with terminal and file manager but nothing works

thefile manager says "cannot copy"

what must i do???
[G1 Android Development] Firerat:
be root user

in terminal type

su

Oh, take not of the past 20 posts, this thread is dead
[G1 Android Development] lyndel4:
Hi everyone I got a rooted G1 on 1.6 official firmware can this method work for my Device? and when I try the commands the terminal emulator keeps saying not found like this

su

cp /sdcard/init.rc /data/

not found

I keep trying over and over again but it wont any help plz thanks in advace
[G1 Android Development] biglo:
Did you format and partition your sdcard?
[G1 Android Development] samaral:
dont resurrect the dead (threads)
[G1 Android Development] MarcusMaximus04@gmail.com:
I've seen this somewhat as well, but only with the JF1.5 ROM(although it was slower than Haykuro's already so it might not be because of this method). I'm currently using a test build of the Dude's 0.95 and everything seems perfectly smooth and fast.

EDIT: for weatherbug force closing issues(ditto with chompsms, etc.) try fully uninstalling(not just installing again but actually uninstalling) and re-installing it. Weatherbug, and some other apps, for one reason or another do not like being moved around.

EDIT EDIT: Oh and I have the same issue with the wallpaper... no clue why that would happen.

EDIT EDIT EDIT: killing the Home process(com.android.acore) also works for updating the wallpaper. For some reason it just doesn't read the change right away anymore.
[G1 Android Development] smnnekho:
THX for your hard work. Trying this out was worth wiping and doing all from scratch again...

works perfect for me, no problems so far and 1 gig of "internal mem" (-; Great.

it could also be for some other reason, but everything is even faster now than before...
[G1 Android Development] MarcusMaximus04@gmail.com:
Alright, I think I have the whole wallpaper thing figured out. It seems as though my scripts perform the unionfs before the system checks for the existence of the /data/data directory. Because of this, a /system/sd/data directory is there no matter what. This wouldn't be a problem except that the home process(com.android.acore) seems to read which wallpaper to use directly off the device, rather than from the /data/data directory. Ironically, one way to fix this would probably be to make a symlink(oh no!) in /system/sd called data that points to /system/intmem/data. Of course, this symlink would be much more stable than the previous method's ones since it's from the sd card to the internal memory rather than the other way around.

Hmm cancel that, symlink doesn't fix it... odd... what the hell is going on...

EDIT: Gah! It deleted my symlink! What the heck!

Alright, I got the /system/sd/data directory removed(not sure why but it wasn't actually removing it before) and the wallpaper problem persists. I seriously can't figure out why this problem is happening.
[G1 Android Development] rasturn:
it works

i just moved my apps only not any of the caches, and it works great! i don't get it why people are putting the caches on the sd, the whole point of this, is that u will get all the space u need with just moving the apps. the internal memory is got to be better for writing and re-writing. you can still clear it up though the program i.e browser, or the app manger. except for the wallpaper mine runs better than ever!! fast super fast! on the JF1.5 on class 6 16gb card.

(i used the manual way, not apk apps 2 sd program it didnt work 4 me)
[G1 Android Development] MarcusMaximus04@gmail.com:
AppsToSD2 doesn't set this up, it just moves the apps over to the sd card once this has already been set up. The reason for this is that I'm getting the devs to include this process in their ROMs so there won't be any real setup required other than making a /system/sd/app directory.
[G1 Android Development] dead2hill:
ok, i can live with the wallpaper, thats not a big deal, but again this is my main problem, so you mean by fully uninstalling? by this you mean?!?!
[G1 Android Development] short/y:
Sometimes mv tries to be too smart for its own good.
[G1 Android Development] MarcusMaximus04@gmail.com:
I mean either go to market, search for weatherbug, and press uninstall(if there's just a button for install it's cause market forgot you had it installed so press the install button, wait for it to install and then go back and press uninstall) and then install again; or you can press menu at the home screen and do: settings->applications->manage applications->weatherbug->uninstall, and then go to the market and install it again. Either of these 2 ways will clear it out completely and it should work after that(I had the same problem and it worked for me)
[G1 Android Development] andonnguyen:
I haven't noticed any slowdowns or forcecloses. Maybe because I did everything fresh from a wipe? Anyways. Why am I awake this early?
[G1 Android Development] chicojd:
So... I simply deleted /system/sd/dalvik-cache and /system/sd/data and the stuttering in music and screen freezes seem to have stopped. I will let the system manage the memory and hopefull the caches wont fill up the intmem too soon... Stay Tuned.

EDIT: Well... scratch that... back to the beginning... reflash from RC29 upwards... here we gooooooooooooo....
[G1 Android Development] MarcusMaximus04@gmail.com:
great! Also, I haven't been having the problem with my dalvik-cache on the sd card so it might have just needed to get refreshed. I'd try making an empty dalvik-cache directory on /system/sd and seeing if the problem persists(this will actually just move any future app's dalvik-cache to the sdcard since the file will already exist in phone memory so it won't duplicate it. Isn't unionfs great?)

EDIT: By the way I'm looking into using aufs instead of unionfs since that appears to be better in several ways including that it has the ability to write files to the sub-filesystem with the most empty space; meaning that if your sdcard gets lower on free space than the internal memory, it will automatically start writing to the internal memory instead. Of course, this would require fairly major revisions for the ROM makers, so it might be a while but I already have JF's stamp of approval.
[G1 Android Development] raydekok:
nice easy way to get this to work.

all he maps set to sd and still everything is working.

the best thing is that the phone sees the sd as a internal memory and i got 380mb free.