yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] MarcusMaximus04@gmail.com:
Ya, this happens occasionally. Kinda the way things go with hacks like this. I'd recommend trying again and make sure you A: have a good/steady internet connection before partitioning(has to download a script), B: are patient and don't click force close if it asks you to C: press reboot when the button comes up. If the button doesn't come up and the phone just completely freezes(for > 10 minutes) you're probably gonna have to reflash the ROM(no wipe needed) and try again, something went wrong.

Any time that it hangs at the G1 logo with this, just reflashing the ROM without a wipe should fix any problems.
[G1 Android Development] TheMan42:
Marcus, quick question for ya:

I used your unionfs method and it went flawlessly, so thank you for that and I did support you on the marketplace with your app. My question is in regards to JF 1.51 ADP

- If I upgrade to that build eventually (if I do), will I have to redo the unionfs method again or will the settings be transfered over?

-Also, I had my G1 theme'd with Aero before I did A2SD2, if I ever change my theme, will my phone get screwed up because I moved the Dalvik-cache to the SD card?
[G1 Android Development] xdavidn88:
Marcus, any ideas why? I would like to use this apps2sd method. Right now I am using the old fashioned way.
[G1 Android Development] firestrife23:
ok here what i've done so far,

1.) reflash JFv1.51 ROM & wiped (to be certain it's free of defects)

2.) install apps2sd.apk and ran partition setup while connected to wifi

3.) reboot when prompted and hanged at g1 logo

twice in a row, any idea why? :(

EDIT: I got it working, I forgot to copy init.rc and a2sd.sh to /data/ folder, but other than that it's running flawless on JFv1.51 US. Since I gave up on apps2sd.apk to setup partition and I ended up using partedmagic live cd to create two partitions, then finally I can move apps to sd with apps2sd.apk just fine.

When I enabled dalvik-cache and every single applications force close... good thing I did nandroid backup and save me hassle.
[G1 Android Development] djlucklu:
anyone solved the apps2sd2 problem. i did the following steps

1.wipe, then flash JF1.5

2.su

cp /sdcard/init.rc /data/

cp /sdcard/a2sd.sh /data/

reboot

but now im stuck at a never ending loop

phone only stopps looping when i remove my sdcard.
[G1 Android Development] kevo:
My apps are on my SD card and everything is working OK (Data and cache still on phone).

But when I receive a phone call the phone vibrates well before it starts to ring and well before caller ID is displayed (sometimes it doesnt even get as far as displaying the caller idea before the call gets diverted to voicemail! (30 seconds I think)). I dont recall having this problem before rooting and apps2sd'ing?!

I was trying to move my ringtone from the SD card to the internal memory. But on first try moving to /system/media/audio/ringtones I recieve a not enough memory error. So I then remove all other ringtones from that folder (I only need the one) and it then copied ok.

But on further investigation when looking at ringtones via "android system" all the defaults still show and my ringtone does not - does apps2sd move them elsewhere?

also -

busybox df -h

shows "/dev/block/mtdblock3 67.5M 67.1M 416.0K 99% /system"

Does that mean if I didnt have my apps on my SD card I actually wouldnt have any space to install apps?!

How do I go about making some space in the system folder?
[G1 Android Development] Thats BS:
This might be a stupid question, but.. You had the init.rc and a2sd.sh files still on your card right? After the wipe? I forgot them once and got stuck in the loop. Also, when I fixed it, I re-flashed THEN wiped. I don't know if that will help but thought I'd try.
[G1 Android Development] djlucklu:
yes still had them on the card
[G1 Android Development] tip6226:
same thing happened to me but how do i get out of the g1 logo screen? when i try reinstalling jf 1.5 us it says there is no such file or directory what do i do?
[G1 Android Development] djlucklu:
any1 want to help still in loop
[G1 Android Development] Denkai:
Crap I think I missed a step. I ran up the appstosd2 program off the market and it went to restart after partitioning the SD card, and now my phone wont boot up.
[G1 Android Development] tip6226:
same here still stuck on g1 screen
[G1 Android Development] tip6226:
Anyone figured out the g1 screen hang up?
[G1 Android Development] Thats BS:
Have you flashed again? You mean you can't even re-flash? Or, it keeps looping after trying the apps2sd apk?
[G1 Android Development] tip6226:
i couldnt even reflash it would get stuck on g1 screen and when i tried reflashing it would say no such directory. i now got it to work by copying the recovery test keys, hard spl, and jf 1.5 and i am now back to normal but i still cannot get my apps to sd. i think i now have 2 partitions but when i type cp /sdcard/init.rc /data/ it says no such file directory
[G1 Android Development] Thats BS:
If it says "no such file" init.rc needs to be put on your card again.I would see if you can reformat the sd with your phone. If that option is grayed out, use a card reader and remove the partition(s). When you put the card back in it should let you format it. Then start over, with Marcus's instructions, they work, it took me a few tries, but they work.
[G1 Android Development] Denkai:
when you say reflash rom do you mean reflash the jf 1.51 firmware?
[G1 Android Development] tip6226:
it wont let me remove the partitions either it will only let me remove the fat32 partition not the other which is unnamed for some reason
[G1 Android Development] tip6226:
i am unable to do anything with the second partition on the sd. it will not let me delete the second partition because its a removable disk
[G1 Android Development] Thats BS:
You did all this from a card reader, then put the sd back in your phone?
[G1 Android Development] tip6226:
by card reader you mean on a pc right?
[G1 Android Development] Thats BS:
Yes. Exactly.
[G1 Android Development] Thats BS:
Check your PM.
[G1 Android Development] tip6226:
my phone does not recognize the sd card however my pc does but when i try to reformat it from my pc it still does not delete the second partition
[G1 Android Development] Denkai:
okay figured it out! you should be specific in your walkthrough that you need to copy those 2 files onto your phone BEFORE running the appstosd2 application. after you copy the two files to your flash0, you'll be able to run the app succesfully.

okay, quick question though, does an app run from the flash0 work faster then a SD app?
[G1 Android Development] Denkai:
that's due to the fact windows does not reconize partitions itself. your format tool will only format the fat 32 and seeing as windows also doesn't reconize ext partitions for drives, instead of seeing 2 removable medias, you only see your fat32 media.

your disk is fine as it is, format your fat32 partition with windows, recopy your firmware you want, reflash it to your phone (home+power, alt-s) then reboot. after that, copy the two files attached to the first post to your flash0 (phones flash drive) as the directions indicate in the middle, and then reboot. afterwards you can run the appstosd2 app and have it copy your files to your sd card.
[G1 Android Development] mlevin:
So if I go to JF 1.51, do I start using the unionfs method? Keep using the symlink method? I'm a bit confused.
[G1 Android Development] Denkai:
Okay here is what I did to get it to work extactly.

1. installed appstosd2

2. ran up and partitioned sdcard

I got the g1 screen at this point after reboot so what you do:

3. reflash firmware (suggest a second chip for this) no whipe needed.

4. reboot

5. copied the 2 files in teh apps2sd.zip file to sdcard and ran these lines in termanal

su
cp /sdcard/init.rc /data/
cp /sdcard/a2sd.sh /data/

6. reboot

7. ran this line in terminal

su
mkdir /system/sd/app

8. reboot.

done.
[G1 Android Development] cal3thousand:
I have the unionfs method working with JF 1.5ADP and want to upgrade to JF 1.51ADP. I read over the changes to 1.51 and it said that he added a script called runme.sh that "attempts to mount the 2nd partition on the sdcard to /system/sd (apps to sdcard support)"

Does that mean that I should remove the a2sd.sh script before updating?

Is that the problem that most people are getting hung up on? (2 scripts trying to do the same thing)
[G1 Android Development] kevo:
Is this not an A2SD problem?

Where would I be best off looking?

Cheers.
[G1 Android Development] MarcusMaximus04@gmail.com:
I've experienced that without a2sd so I don't think it's an issue with it.
[G1 Android Development] MarcusMaximus04@gmail.com:
No, that script of his has been there since JF1.5. It just mounts the ext2 partition to /system/sd(my script relies on his script doing this)
[G1 Android Development] cal3thousand:
OK... thanks.

So one more question before I upgrade to this new ROM: Since I have half of my Dalvik-Cache on the intmem and the other half on SD, will I have to do the work again?

( I don't think it would have this effect, but I want to make sure ;))

Actually, I would like to get this new ROM 1.51 to work with the noatime parameter added to the runme.sh
[G1 Android Development] MarcusMaximus04@gmail.com:
If you don't do a wipe, then everything should be all set. If you do, you'll have to redo the steps for putting on my scripts, since his ROM doesn't have those built in(he doesn't want to build them in since he's not particularly fond of a2sd in general and doesn't want it to be built in to the ROM).
[G1 Android Development] Chahk:
Looking at Marcus' sig:

Hey buddy, is there something you wanna tell us? ;)
[G1 Android Development] MarcusMaximus04@gmail.com:
Hmm... nope. J/k, I have a test copy of 1.2 since one of the big changes was updating my script.
[G1 Android Development] Chahk:
Aaaaaand? Can you tell us more, or are you sworn to secrecy?
[G1 Android Development] MarcusMaximus04@gmail.com:
Well The Dude already said what it would be: "just some theme and script updates", so nothing huge.
[G1 Android Development] Vermithrax:
Hi kevo,

Not sure about the making space part, but as for the ringtone not showing up... Go to Music->Songs and find the song on your SD card. Long press and select "Use as phone ringtone". Just tried it with JF1.51 and it is still there. It should now appear in the "android system" ringtone list.

Not sure what will happen once you remove it from the SD card though...

Vermithrax
[G1 Android Development] miclaro:
appstosd2 doesn't work the partitioning

I installed un run appstosd2, chose the size of the partiton (522mb for ext2) and after a while (and multiple warnings that the application doesn't respond, I pressed continue) I got a message to reboot the phone. I did reboot, but the sd card is not partitioned.

Runing JF1.5
[G1 Android Development] Spyderlotus:
apps to sd

im having so much trouble now with this stupid SH*T. before i did it correctly twice and now i cant get it to work at all. i got some things to work, this is as far as i got before i had troubles

REQUIREMENTS:

1: This only works on JF(possibly only on 1.5, not sure about the others) and The Dude's v.1.0 or greater. The Dude's 1.0 or greater actually does the steps in this tutorial for you so you can just run appstosd2 and set it all up from there if you're using his ROM.

2: This still requires you to have 2 partitions set up, first FAT32 and second ext2. Although you can use the appstosd2 app attached to this post and available in the market for $0.99 which will partition the card for you.

3: If you want your apps to go to the sd card, you must have a directory "/system/sd/app" If you didn't have apps to sd before on the ext2 partition do the following in terminal emulator or run my appstosd2 app after finishing the tutorial:

Code:

su

mkdir /system/sd/app

If you want the private-apps, or dalvik-cache moved you can replace "app" in that code with ""app-private", or "dalvik-cache" respectively. Do not copy "data" to the sd card. My script will delete it on the next reboot.

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

Alright, first there's some files you need.

1: init.rc in .zip attached to this thread

2: a2sd.sh in .zip attached to this thread

All the above listed files should be put on your sd card(my tutorial will assume they are in the root directory of the sdcard(the topmost folder)

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

If you need to undo the normal apps to SD first do the following in the recovery terminal(it's not strictly necessary but I'd recommend it):

Code:

mount data

when i type that in it says " mount: Mounting /dev/block/mtdblock5 on /data failed: Device or resource busy.

ive created two patitions using gparted on ubuntu link. the first was fat32, and the 2nd was ext2. i had all that worked out before, and im still using jf's rom. please help me! the little notification came up saying i need more space, and this whole deal is pissing me off
[G1 Android Development] MarcusMaximus04@gmail.com:
Make sure you're doing that "mount data" in the recovery terminal, not in adb or terminal emulator.
[G1 Android Development] MarcusMaximus04@gmail.com:
How do you know the card isn't partitioned? It seems unlikely that my app would end up just doing nothing but if that's really the case, I'd suggest trying again later.(Only possible reason I could see is if MartinFick's website is down so it can't download the sdsplit script)
[G1 Android Development] linman:
not partitioned

Hi Marcus,

Thanks for your wonderful idea. Its working for me with JF 1.51.

However I can also confirm that your application did not partition my sd card. After I chose the appropriate sizes it took some time and then asked me to reboot. But my g1 hung at the initial logo screen.(I had not copied the scripts earlier like you mentioned). So I flashed my g1 again with JF 1.51 and checked in Ubuntu. SD card was not partitioned.

I then partitioned with gparted on my Ubuntu.

Once partitioned and ur scripts in place its working now.
[G1 Android Development] legaleye2005:
After doing this, I'm stuck at the T-Mobile G1 boot screen. PLEASE HELP.
[G1 Android Development] kusotare:
I'm stuck at the screen too. heres the major problem though:

I ran Appstosd2 on the dude's build (1.1, most current version).

Selected 500mb for my ext2 partition on the first run.

it asked me to reboot my phone then force closed.

continued to force close every time I attempted to run the app after that.

gave the phone a reboot. everything popped up normally.

mounted the SD card to check and make sure everything was still there, but the computer read my 8gb sd card as having a total capacity of 4KB.

unmounted the card and confirmed it on the phone.

thought, "hell, might as well dump the apps to the sd card then".

ran appstosd2 again, clicked "copy apps to sd", phone rebooted and is stuck on the g1 screen.

so, bottom line is that while I have a complete nandroid backup copied to my computer, I have no sd card to dump it to, and seeing as the stores are closed already, advice on a recovery solution would be much appreciated.

EDIT: I can still access the recovery screen and fastboot somehow.
[G1 Android Development] legaleye2005:
When/how do you run appstoSD2? I followed the direcitons on the first page and everything was either rm or cp, etc... I didn't see anything about running programs. I've done the volume hack, etc. This is really getting to me. PLEASE HELP.
[G1 Android Development] miclaro:
becouse I run the application again and it still says the card is not partitioned.

I ended runing the shell script in the terminal. I looked before in the log and it seems it tried to make a change in the rc.init and that failed.

Since I allready make the partitions by hand, I will continue with your instructions and report if I have any problems.
[G1 Android Development] m00b3rt:
so what else do i move to have the full 88-89mb from haykuro's spl?
[G1 Android Development] jinx10000:
Is there anyway to do a full backup of the G1 with the system internal memory and all apps on SDcard ext2 and all items on the fat partititions?
[G1 Android Development] kusotare:
you can do each one individually.

nandroid for the phone's internal memory.

standard copy to windows with a mounted sd card for the fat32

ubuntu copy for the ext2

as for my problem, i'm just going to flash and reinstall everything until someone gets the formatting problem solved.
[G1 Android Development] m00b3rt:
my phone loops after i do this.
[G1 Android Development] McBang2023:
so im having the issue where this just isnt working for me at all. i have followed all the directions to the T and still the app reports "Oops! looks like you need to go through the tutorial to set up apps to sd......" Whats the deal. ive been working on this for a while now and much help would be greatly appreciated.

(for the bashers in the house, yes, my phone is rooted with JF 1.5)
[G1 Android Development] jinx10000:
kusotare

Thanks for the help. I was really hoping for an all in one solution like an app with this purpose in mind. However, you have to do what you have to do.

McBang2023

First are you sure you have a properly formatted sd card. If you do, you should have a /system/sd directory.

Second have you placed the init.rc and a2sd.sh files in the root of your sd card fat partitition and typed all of the following into the terminal emulator.

su

mkdir /system/sd/app

cp /sdcard/init.rc /data/

cp /sdcard/a2sd.sh /data/

reboot
[G1 Android Development] McBang2023:
yep. as i said before. i followed everything to the T. still no dice.
[G1 Android Development] Unicornasaurus:
Did it on my G1 running the noatime modded JF1.51..working perfectly! One question though..Marcus has 1400MB free, whereas I only have around 890MB Free..I moved all the apps and deleted the old ones..and moved Dalvik cache. Any ideas?
[G1 Android Development] Thats BS:
The JF 1.51 by cyanogen?
[G1 Android Development] Thats BS:
Run the apps2sd apk after this:

su

cp /sdcard/init.rc /data/

cp /sdcard/a2sd.sh /data/

reboot
[G1 Android Development] Unicornasaurus:
Yeah that's the one.
[G1 Android Development] Thats BS:
Awesomeness! Was waiting for that news. That build is FAST! Thanx!
[G1 Android Development] tato22:
dude your app bricked my phone man it stuck on the g1 logo what do i do now
[G1 Android Development] dixxa:
BIG DISCLAIMER NOTE: This is a major hack of the phone and it is fully possible that it will break your phone(I've seen no permanently bricked phones but that doesn't make it impossible). Use this method, and my app along with it at your own risk.

From the first page !

Anyway you could be a bit more precise:

- What build ? for example.

Ps : People never read...
[G1 Android Development] jinx10000:
Try reformatting your SDCard.

Try performing a wipe of your phone.

I had problems before I did this as well. You don't need to run Apps2SD for apps to start moving over after you move the init.rc and a2sd.sh files over, everything defaults to install to the SDCard.
[G1 Android Development] firestrife23:
when I moved dalvik-cache via apps2sd, then my phone start force close on everything :O
[G1 Android Development] legaleye2005:
I think its working! I have the astro file viewer... Just wondering where to look to make sure apps from the market are being automatically installed to my sd... ? Thanks
[G1 Android Development] DarkFoxDK:
RTFM you newb!

If it boots to the G1 screen it's not bricked.

Go to the recovery console (hold home key when turning it on) and wipe the phone with alt+w
[G1 Android Development] dorbot:
everything force closes.

that happened to me but a reboot fixed it.

apsstosd2 seems to be working well for me but i dont know how to check. And also the idea of trawling through 88 pages of random forum does not appeal. Lol.

where do you go to check that the various folders have been duplicated/ moved/.

what commands do you type and what are you meant to see.

where is the ex2 partition mounted in the Os. what folder.

my command line skills are a lot rusty :~)

Long live Linux.
[G1 Android Development] Olivier34:
Can't see protected apps

Hi everybody,

I have a G1 with thedude 1.1a firmware.

I do the tutorial from the first post of this thread.

But I can't see protected apps in the market. Is there a way to do that ?
[G1 Android Development] MarcusMaximus04@gmail.com:
ext2 partition of the sd card is at /system/sd. Internal memory is at /system/intmem. To see the directories/files in either it's

ls -l (directory you want to list subdirectories and files of)

Also, if you use my appstosd2 app and go to "Manage Apps", it'll show which apps are on the internal memory/sd card and ditto with there dalvik-caches.
[G1 Android Development] MarcusMaximus04@gmail.com:
Can't use astro for this, it doesn't have permissions to see the files. You'll have to use the command line as root to look into the directory(/system/sd for sd card) or use my app's Manage Apps screen which displays where apps and their dalvik-caches are.
[G1 Android Development] MarcusMaximus04@gmail.com:
That's probably because your ext2 is somewhere around 890MB whereas mine is around 1400MB ;)
[G1 Android Development] innerlight:
Problem with downloading from market

A couple of the programs like Toggle Settings and WeatherBug were force closing when I turn on my phone, so I uninstalled them through settings and am trying to reinstall them, but where is says 'starting download...' nothing happens. It would be like this for even a hour and then I would give up. Also I am getting a Low Space error even though I did everything correctly, at least I thought. Should I wipe and try again? Thanks.
[G1 Android Development] dwelw:
auto rotate

for some reason, my phone does not auto rotate anymore after I input the codes. Please reply back asap if you know what did I do wrong or how should I fix the problem. Thanks in advance.
[G1 Android Development] MarcusMaximus04@gmail.com:
? It doesn't change any of the settings... go into settings and make sure "Orientation" under sounds & display is checked.
[G1 Android Development] dwelw:
thanks a million!!! by the way would you know how would I be able to check the data on the ext2 folder and would you be able to tell me why does my phone automatically download all of the previous programs from the market after I reinstall the new firmware?
[G1 Android Development] shaka5:
Attention Geek Squad.........

ok, this thread is not helping at all, is there any noob sites that can help, cause i dont wanna waste another memory card...every instruction is confusing as hell, we are not all nerds, nothing against nerds...but some of us are just getting into this stuff, these post on here are not really helpful at all.

I learned how to root and update my phone from a step by step video on youtube, would be real kool if someone would make a video on how to do this.
[G1 Android Development] ZINGZOOM:
the file is down :s
[G1 Android Development] TheGreenJester:
Thanks Marcus!

My 16GB Class 6 card finally arrived and your method works great! Thanks for the extra space :D
[G1 Android Development] jkoenig00:
AppstoSD 2 on the market

Hey I saw this app on the market for $0.99 and it claims to partition the SD card for you to successfully creat the fat/ext2 partitions. I have JFv1.51 ADP and was wondering if anyone has tried this program? There are mixed comments on the market but those people are retarded I kinda wanted to get some reviews from people who know what they r doing. Thanks.
[G1 Android Development] dixxa:
http://xdaforums.com/showthread.php?t=512743

you could get it for free here.

Pay or make donations if you like it.

Next time use:

http://xdaforums.com/search.php

this is very helpful