yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] brixvibe:
Tales from the Crypt:

So I've had a lot of the same problems others have had on here. But I FINALLY HAVE IT WORKING!!!! Here are some tips that might help others.

#1 BACK UP YOUR CARD.

#2 Use Linux to Format your EXT2 partition

#3 Use Windows to Format your FAT32 partition

I did everything under the sun. First time install caused endless flashing droid screen. Had to perform a wipe and then install. Kept getting "read-only" message when running the copy.sh app script. even after first declaring SU, and allowing the user in the preceding screen to have this privilege.

Paragon Partition software would not perform any sort of format on my SD card when it was in my card reader. It can see it though, and what type of partition(s) are currently on it.

So I went and grabbed Ubuntu, and fired it up in a VMware console. Ran the Partition Editor in there, after giving it access to my USB card reader hub. Had problems with getting it to properly format the FAT32 partition, so I just used it to divide the partitions and format the EXT2 partition.

Then I went accessed the card from my Vista OS, and format the larger portion of my card as Fat32. Flashed the Update in this post. declared SU

and the terminal said permission denied even though I said Allow on the User Requesting Access screen. so I tried the old "Enter" "Enter" "SU" "Enter" and it brought up the User Access screen again, but with a different User ID, so I said allow again. Then I ran the copy.sh app script again, and it worked!

Needless to say, after I did this, I quickly rebooted into recovery mode and did a backup!!!!!!!!!!!! Because it took me 3 days of trying to properly format my 4GB Class 6 card...and then trying to get past that read-only message when trying to run the scripts.

The payoff is excellent though. I can download tons and tons of apps, even all of those heavy Comic Book apps and I still have over 50MB of phone mem left.

Keep trying at it everyone who is having problems. Also I would suggest only moving the apps folder to the card.
[G1 Android Development] cnote162008:
16 gb sd

Is the 16 gb card unable to be partitioned? I have tried numerous times and it keeps failing. Any ideas?
[G1 Android Development] theseas:
Hello LucidREM and thanx for the hack. i tried it and everything is perfect. but in the first time a made the mistake and made the ext2 partition bigger than 2gb and i got the "not enough storage" message when i tried to install apps. so i think, as another user has already mentioned, you should include in the instructions in your first post a suggestion to all of the users that will try your hack to make their ext2 partition 2gb or less. thanx again man.
[G1 Android Development] LucidREM:
1. what are you using to format the SD

2. you do NOT want to use 16G card for /data/app .. too much lag
[G1 Android Development] short/y:
Not to alarm anyone but I found that I was unable to access paid apps on the Market after installing LucidREM's image and doing a "copy.sh apps". Note that when I say "unable to access", I mean that I could see no paid apps in the Market nor did I see any updates to the paid apps I'd already purchased. And, oddly enough, any changes I'd made to profiles in the free app "ear" would disappear. On a hunch, I moved app-private back to /data from /system/sd and my paid apps are back! From Terminal, as root, I simply typed in the following lines (which are present in the "undoapp" section of copy.sh):

# rm /data/app-private
# busybox cp -a /system/sd/app-private /data

and after a reboot everything seems fine -- paid apps are back and ear is saving profile updates. Yes, ear is in app-private :)

EDIT: Note that losing access to paid apps is being discussed in other forums, both here on XDA and elsewhere, as well. Could someone please validate that they're seeing the same issues and that the "solution" I've posted does address it? Once that's done, please spread the word. My guess is we'll constantly be battling this until/unless Google finds another route to secure paid apps.
[G1 Android Development] LucidREM:
paid apps and regular apps all work just fine for me here .. anyone else having these troubles with APPS to SD??
[G1 Android Development] short/y:
I think Google may be phasing the updates across the user base. Remember how some people couldn't see any paid apps and then, over time, they became visible to more and more people? So, in this case, I don't know if they're actually updating the Market app on the phone so it ensures the phone's paid app repository is where it's supposed to be, driving the verification from their Market servers or a combination but there is no doubt in my mind that moving app-private back to /data "fixed" my paid apps -- quite literally. I couldn't see ANY paid apps so I executed those two commands, rebooted my phone and I could see paid apps once again. The whole process took less than 10 minutes.

EDIT: OK, I just checked the Market again and I can no longer see paid apps. So there's something else afoot. 90 minutes ago I could see all apps, paid and free and now I can only see free apps.

EDIT 2: I rebooted and checked again and paid apps are still missing so I went back into Terminal, su'ed, copied the rest of the apps back to /data and I can see paid apps once again. I'm not gonna leap to any conclusions like I did last time :) I'm gonna wait a little while and see what happens over the course of the next hour or so. I'll post my results soon.

EDIT 3: 10 minutes later and paid apps have disappeared again. Clearly this needs a more thorough investigation. No reboots, no changes -- the phone's sat idle. Correction: I disabled the GSM radio (I think that's what it is -- the radio over which you get phone calls and text messages) using an Anycut shortcut to "Phone info". My office is such that I get no GSM signal so I generally turn off the phone's radio and use Wifi. So, just for completeness, I turned the GSM radio back on and rebooted and guess what -- I can see paid apps again. I'll let it sit for a while again and report back.

EDIT 4: OK, I have no freaking idea what's causing this. Sometimes I can see the paid apps and sometimes I can't but once they're gone, it seems they stay gone until I reboot and then they may be visible or they may not. I've tried this with app-private on SD card and on the phone, with app on SD card and phone, with GSM radio off and GSM radio on and I have been unable to discern a specific cause which leads me to believe it's somewhat out of my control. I'm going to shut up now and let more reasoned minds address this. If anyone has a nondestructive experiment in mind, I'm happy to oblige.
[G1 Android Development] gottifour:
I can see the paid apps and have never lost them. I have apps only moved. Not data.
[G1 Android Development] vegaj02:
Android Process Media message

I was wondering if anybody could recommend a course of action. Until this afternoon everything was going ok. All of a sudden, I noticed an error message indicating "android.process.media has stopped unexpectidely.Please try again" then it force closes everything. I am not able to do much browser, pics, audio apps and sometimes not even the home page without getting the error message. I have ran the undo data script to see if it helped. I reset the phone multiple times but nothing seems to work. Any advise?
[G1 Android Development] xxkingpinxx:
Once I install a theme it seems that all my apps do not download to the ext2 partition anymore? Any work around so we can install themes?
[G1 Android Development] cchap07:
I can see all paid apps and always have been able to. I have just the apps on the sd card and it works just fine. Maybe those of you that are having problems should reinstall. Just a thought.
[G1 Android Development] jonnybueno:
I never see paid apps when i use my phone on Wifi only. Paid apps only show up when I have my sim card inserted and registered to T-Mobiles network. Its a great way to ensure I truly suffer in "fringe" edge coverage areas... damn gsm radio drains my battery switching back and forth from crappy at&t signal and crappy t-mobile signal... but what would i do if I didnt have my advanced task manager/bettercut???? oh woe is me!

Lucid: I had some bugs the last time i tried your mod.... i'm gonna try again, is it better to start fresh with no apps or should i just flash with all my paid apps already on there?
[G1 Android Development] im.l0ltn:
The problem for me is that i can't see protected apps once i move my apps to sd.
[G1 Android Development] h4ng0ver:
LucidREM, question!

Hey, I got your instruction on the other thread(started by dwang), got all my apps working with JF1.41, but since yesterday, my phone kept on rebooting and my suspicion was that the phone failed to read the apps from the SDCard.

Long story short, I did a ALT-W, but all my apps are still in the SDcard.

To get all the apps back, what should I do? Should I download your modified JF 1.42, run the commands, and all my apps would come back?

Thanks for your help
[G1 Android Development] cnote162008:
i tried to use paragon and it would fail everytime i tried to partition.
[G1 Android Development] IRIE4IPIER:
ok, i am having problems.

my phone has been working ok for about a week with this update, but a second ago, i rebboted my phone and now, out of no where, my phone gets past the t-mobile g1 boot logo, but when i get to the flashing andriod, it stays flashing for about 8-9 seconds and the screen goes black then the andriod starts flashing all over again. whats the problem and what do i need to do to get this fixed?
[G1 Android Development] im.l0ltn:
You might have to do a wipe. I was having this exact problem a moment ago, and a wipe fixed it.
[G1 Android Development] IRIE4IPIER:
now that will suck, this update has made me wipe twice, this will be my lat run @ it if i do have to wipe, anyone else gotta better solution?
[G1 Android Development] im.l0ltn:
Try reinstalling the update. You shouldn't lose any data. I chose to do a wipe because i also needed to get rid of some files.

Edit: Just had this problem again and I'm pretty sure you're having the same problem.

Try the undoapp script or do it manually.

adb remount

adb shell

#rm -r /data/app #deleting the symbolic link to /system/sd

#mkdir /data/app #recreating /data/app

#rm -r /data/app-private #deleting the symbolic link to /system/sd

#mkdir /data/app-private #recreating /data/app-private

#reboot
[G1 Android Development] im.l0ltn:
He's correct. Once i moved app-private over the protected apps weren't listed anymore. Tested just now.
[G1 Android Development] Mikey:
This is funny in a way......i have rc-33 mod version of course.

My paid and free aps are installed in /data/app

i dont have a /data/app/app-private folder

although im waiting a bit to install this mod
[G1 Android Development] bommel0815:
any chance you use vista 64bit? had to use my 32bit XP laptop to succeed.
[G1 Android Development] LucidREM:
my mod just keeps the modified files so the G1 sees your EXT2 partition .. so if you already have apps on the SD you won't really need to flash my mod until JFs next release .. so long as the "ln -s" is still set in /data and you don't do "ALT+W" you should be fine
[G1 Android Development] naars90:
Okay, I wiped my phone..(just to be sure), flashed the mod and did the scripts...I see the folders for apps, app-private and data in my sd card via astro...but they're empty? Did I move my apps or did I do something wrong here? BTW, using a 16G sd card and partitioned with 2gigs of EXT2...oy...
[G1 Android Development] LucidREM:
astro and other file managers will NOT see the files .. they are only there if you go to Terminal:

$su

#ls -l /system/sd/app

#ls -l /system/sd/data

you can also just do:

#ls -l /data/app

#ls -l /data/data

because the "ln -s" redirects traffic to /system/sd
[G1 Android Development] h4ng0ver:
LucidREM

Hey, I have flashed your mod but it didn't work so I did a total wipe, to have the phone read the apps that I already have on the SDcard, do I have to reflash it with your mod and run the scripts? or should I just create the symbolic links for the apps/data?

Thanks
[G1 Android Development] LucidREM:
what didn't work?
[G1 Android Development] phuthanvinh:
I have two questions

1. Which commands do I use to put the new apps i just download to the sd? does it require repeating the whole process?

2. If I happen to wipe and restore my phone, how do I access to the all apps I put in the sd card?
[G1 Android Development] LucidREM:
if the script was run to put apps on the SD then new apps are on the SD automatically .. if you wipe then phone and use my modified JF Build you just need to insert the "ln -s" links again to the SD card .. should work
[G1 Android Development] naars90:
Dood! I could kiss you...but I wont...LOL
[G1 Android Development] LucidREM:
Google Blocks Paid Apps For Dev Phone

http://news.cnet.com/8301-1035_3-10173146-94.html
[G1 Android Development] Ryanmo5:
LucidREM

Just wanted to thank you for this, finally got mine up and running. Great stuff man you are appreciated!
[G1 Android Development] apfroggy0408:
Seems your the man to go to for using the g1 terminal for app to sd and such. I've already done apps to sd using your first written method and it worked fine however long ago it was. Now I want to move just one individual app back to the phone's ROM. I need to do that for wifi tethering because people are having trouble when the app is on the sd.
[G1 Android Development] bewerl:
My idea for this problem with tethering is to undodata and move the app from sd back to phone.

move /system/sd/app/android.tether.apk /system/app

copy.sh undodata

Why!

The data completly moved from phone to sd.

/data/data is sd

But progs are stroed in phone and on sd.

/system/app is phone

/data/app is sd

This works for me.
[G1 Android Development] cnote162008:
HELP!!!

Im about to hurt myself if I dont get help. Can someone/anyone please give me a walk through on how to format my sd from ntfs to ext2 on ubuntu. Please.
[G1 Android Development] xShadoWxDrifTx:
I used to have a crapload of problems with the moving apps and data to sd

Which caused me to have to wipe my phones multiple times because it got stuck on 2nd boot screen, but ever since I only moved apps and not data to my phone, Its worked

Only used copy.sh apps

Now my phone is stable, the data memory is filled on my phone internal memory, but all apps are installed on my phone

So far only uses around 50% of phones internal memory, still better than having apps + data on phone memory

Now my phone is stable, thats all i want :)

I noticed steel is the one that uses most of the internal memory, still trying to figure out what else does
[G1 Android Development] robpet2:
LUCID - class 4 card is good to use for running apps off the sdcard, but class 6 is better....

havent had many problems with the class 4 card.
[G1 Android Development] robpet2:
you can use paragon partition manager to format the card.
[G1 Android Development] stonefurry:
Class 2 SD card

I only have a Class 2 SD card , is that alright to use?:confused:
[G1 Android Development] LucidREM:
this has potential to work for a limited number of apps .. depends on how big they are because /system has almost no space available .. to make more room however you could use the method for JFv1.42_LITE which i believe is to take out the media files from /system and put them on the SD .. this would give more space for apps under /system

don't forget to make /system writable:

#mount -o rw,remount /dev/block/mtdblock3 /system
[G1 Android Development] Binary100100:
If you do this it is a good idea to use your phone to connect the card to your computer and NOT an adapter. I read a few people (myself included) were having problems formating their cards properly. I have no idea why. So if you get stuck on not seeing the partition when you do dh -f then you probably need to partition it correctly. Otherwise it won't work.
[G1 Android Development] davil124:
hey i got two question and i would be happy if you guys could help me

1) Let say i accidentely wiped my phone (happend 2 me yesterdat =/) and i needed to install the OS again....wat command do i type on Terminal to bring all the applications that i had installed on the Ext2 partition back running normally without errors or errors messages ?!

2) Does the copy.sh data also transfer the cache and everything else from the Steel application ?!
[G1 Android Development] obe1:
you need to do this if you wiped installed the mod again and you had your apps on the sdcard and data

$su

#ls -l /system/sd/app

#ls -l /system/sd/data

and this will bring back the apps/data you had on sd card.
[G1 Android Development] juangil:
if you had jf_MOD when you wiped, you dont have to re-install it, just run the script

su

copy.sh app

reboot (from terminal)

and wait, it will take a little longer to boot up b/c is installing the apps during the reboot
[G1 Android Development] davil124:
oh alright ! thanks both of you
[G1 Android Development] bommel0815:
as I use the ADP built on my UK G1, I wonder if you, LucidREM, plan to support the RC9 release, ie built a custom image based on it, or if you plan to adapt a JF RC9 built, if JesusFreke releases one? Reason is I don't want to use the SMS to tmob sending RC33 in Europe :)

thanks for your work!

do you have a paypal link for donations?
[G1 Android Development] LucidREM:
my plan is to adapt the next JF Build for apps to SD .. RC9 i guess? and since you asked so nicely i guess i can put a paypal link :)
[G1 Android Development] Nitro212:
i have a question, for some odd reason, when ui copy all app to my ext2 partition the alarm app dont allow me to set the time to awake me.. i click on the time enter new tiem click set but old time still shows up i click again and the time i set appears.. but when i click set it dont take the changes and i save exit and go bacjk the old time appears eg: 8 am

what could be causng this?
[G1 Android Development] LucidREM:
not really sure .. but i use an alarm app .. "Night Clock" .. it works just fine for me
[G1 Android Development] Nitro212:
i need one that vibrates, i got "amarming!" and i experience the same issue as with the normal alarm app :( but ill try a different one.
[G1 Android Development] keatonreckard:
just a little problem i ran into..

after using the apps to sd rc33mod all was well for a few days...

then my battery died and my phone never rebooted past the flashing android screen..

so i wiped, still no boot.

then i applied regular jfrc33 and all was well..

then i attempted to format my 8gb sd card... wouldnt work.

and i still cant get and write access for some reason..

have tried another sd card reader/writer and osx/windows/gpartedlive/ubuntu
[G1 Android Development] jbomxda:
I've read the 32 pages of this thread, and I haven't found any posts on my issue, so here it goes. I setup the SD cards with both partitions, downloaded the MOD update.zip and flashed the phone, and did copy.sh app and copy.sh data. All my apps are working fine and the phone is performing very good, but my only problem is the Market whick keeps getting Force close. Nothing else is giving me this error. I tried copy.sh undodata, but that didn't solve the issue. I just tried copy.sh undoapp and that also doesn't work. Is my last resort to do a wipe, or is there anything i can do to just reset all Market data/settings/cache to see if it loads fresh?
[G1 Android Development] LucidREM:
sounds like the SD failed .. i haven't done all the research on those little things but apparently they only read/write a certain number of times .. which is why the EXT3 partition wouldn't work because of too much communication to the SD so you have to use EXT2
[G1 Android Development] LucidREM:
without knowing what else was on the phone i couldn't say for sure .. with everything on the phone it should be fine .. you can try clearing the market cache:

#rm -r /data/data/com.android.vending/cache/*

did you try moving the cache files to SD or anything? or just the scripts for app and data?
[G1 Android Development] jbomxda:
Now that you mention that, when I rooted the phone a couple of weeks ago, I did moved the market cache to /sdcard/cache/marketCache. Could this be my issue?
[G1 Android Development] LucidREM:
i would check that first and foremost .. you have to reverse the process .. moving files to /sdcard is never the best option as the permission settings don't exist on the FAT32 partition

#rm /data/data/com.android.vending/cache

this will let vending start over .. if there's an error you can take it further:

#mkdir /data/data/com.android.vending/cache

#chown 10025 10025 /data/data/com.android.vending/cache

#chmod 0771 /data/data/com.android.vending/cache

i don't know if the market will recreate cache automatically (i believe it will) .. so the extra instructions would just create the cache folder and set permissions (i think i marked that properly) .. i don't think the extra instructions are needed
[G1 Android Development] keatonreckard:
yeah that may be, but i just bought this sd card like...maybe 2 weeks ago...and this all happened like a week ago...so it was only functioning for about a week...so i dont think that it failed...sandisk is normally a decent brand
[G1 Android Development] LucidREM:
possibly just a minor corrupt spot .. repairing the partition could be one way to go .. my wife's laptop HDD crashed last month and wouldn't boot .. also couldn't load the drive externally to my desktop .. had to use recovery software to open the partition (which was actually still intact just unreadable by the system) and copy the files off so i could wipe the drive and start over .. there is no indication what corrupted the partition or MBR (if that's what it was)
[G1 Android Development] ddrum2000:
flashing android

This happened to me too. I put the sdcard in my desktop a fired up an ubuntu livecd to run fsck (file system check). It fixed the file system errors and my phone booted fine after replacing the repaired sdcard.
[G1 Android Development] mystica555:
Is there any e2fsck utility on any of the JF modded firmware? I'd honestly *love* to see this added at some point, recovery image if possible (so I don't have to mount anything, but I'm not averse to mounting a yaffs partition if needed) so I can just fsck the card on the go.

Ahh...Fscking all over the place...isn't it glorious... >.> :D
[G1 Android Development] DirtyDingo:
Is the host systems partition that first 4MB of unallocated space in the SD card?

What is it's importance and what if i did delete it? Will i run into any problems?

I tried googling and only found that it's sometimes used to save the state in VMWare.
[G1 Android Development] JokerGT:
"2. you created the FAT32 / EXT2 combo partitions"

Hi, sorry I don't understand how to get those, I have everything else except the FAT32 / EXT2 combo partitions. How do I creat them?

Thanks
[G1 Android Development] mystica555:
"Host systems partition" means the partition, on the physical hard drive running inside your computer. The LiveCD has access to all your computer's hardware. If you delete the partitions from your main harddrive, you will (effectively) lose ALL your data!

Make sure you partition only the proper 'sd' device allocated to the USB device(assuming USB memory card reader, and no, i dont recommend partitioning while the card is inside the phone)

Say for example you have 1 serial-ata harddrive, and 1 memory card. 'sda' would be the first sata harddrive, whereas 'sdb' would be the usb drive. This is a large simplification; if you have more than 1 harddrive or multiple usb devices, or even multiple types of sata vs IDE drives, then it could all come up as something different. If you don't quite know where to start, read up on Linux disk partitioning.

The blank 4 megs at the beginning of the card..I've never figured out what that's for, if anything. I delete the 1 FAT32 partition, create 2 new ones. (Incidentally, some tools such as cfdisk complain that the 1 FAT32 partition ends past the end of the drive, so I just delete and start fresh)