yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] bestwebs:
Hi,

I had to do a wipe and reformat my ext2 partition after upgrading to jf1.41 rc33 to get it to work properly.

Then I followed all the steps at the beginning of this post including the 2nd 13th step.

I used adb to complete the process.

My sd card is sandisk 16gb

:)
[G1 Android Development] BlueBoar:
I just did this as well. Using adb to do everything before signing in to my google account. Checked the phone and it said 73mb free, damm near passed out. :)
[G1 Android Development] t1n0m3n:
I got all my apps installed/configured and now I have 59MB free at about 90 apps. Overall the phone is staying quite a bit snappier than before, and I have not run into a bug/force close yet.
[G1 Android Development] danguyf:
It's working for me now. Sweet.
[G1 Android Development] bigl34461:
confused?

Ok, I've upgraded to rc33, formatted my sd card, I have transcend 8gb class 6. Did everything using the terminal method including /data/data. Then I kept getting forclose messages. So then I did a wipe. No more foreclose messages. I downloaded about 10 apps my phone memory went from 71mb to 53mb. Do I have to move data/data again after doing a wipe? Will I see all these files on my sdcard when I hook it up to my pc? If not how do I know if I did everything right? I'm sorry guys for all the questions, but I'm new to all this
[G1 Android Development] phuthanvinh:
I have two questions:

1. I'm wondering if I have redo the whole procedure over again if I happen to wipe and install the new update?

2. Everytime I install the new apps, when the internal memory decreases, I want to move all the data into sd. So as advised, I repeat the 13th step from the tutorial:

mkdir /system/sd/data

cp -rp /data/data /system/sd

rm -r /data/data

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

but i got stuck at the second line (cp -rp /data/data /system/sd) << after this line, the # disappeared and I have to retype the first two commands again (or should I?), then it says /system/sd/data file exists. So without the # sign can i continue on the next two lines ? Please help me
[G1 Android Development] juangil:
just continue, when it says file exist it mean that was o'ready created successfully on previous attempts
[G1 Android Development] USNCorpsman:
mmkay... i've quite literally read through this entire thread starting last night, and i did finally get the /app and /app-private folders over and working fine just fine. however on the 13th step i am able to copy over the /data/data over to the SD card, however when i try to install apps after that from the market it's telling me there is no room, so i have to reverse it to be able to use market to download. a way i've thought of to circumvent this is just download the .apk files on the PC, copy them onto the FAT32 part of the SD card, and use AppsInstaller to install them... unless there's something i missed on how to move the /data/data to the SD card and still be able to download from market?
[G1 Android Development] LucidREM:
when you WIPE the phone you delete the /system and /data on the phone and start from the factory installed stuff .. so yes .. the link to the EXT2 has been deleted and must be redone
[G1 Android Development] prettyboy85712:
Is this procedure working with JF 1.42?
[G1 Android Development] .PaNiNi.:
If I install new apps or update old ones will they go directly to my sdcard or will I have to do the procedure again for the new apps?
[G1 Android Development] muttley06:
Can we get batch files or somthing else to make this process easier and less likely to mess it up? I know its only my second post but I have donated to a few ppl for there hard work and currently working on a theme to be released very shortly
[G1 Android Development] LucidREM:
there are a couple script/batch files out there .. i am including script files in a modified update.zip for JFv1.42_RC33 .. i'm going to test the scripts myself and then post them to my thread:

JFv1.41_RC33_MOD by LucidREM: APPS on SD

hopefully i'll have it done by the end of the week .. working more on it tonight after my 9-5 is done
[G1 Android Development] muttley06:
Thank you very much
[G1 Android Development] LucidREM:
no prob .. i would have been done by now .. but if you read my thread i wiped my SD .. coded the script wrong .. THAT was bad .. no worries .. if anyone's SD gets wiped it'll be mine
[G1 Android Development] Rafase282:
Should I go back to factory default and try all over again?
[G1 Android Development] Rafase282:
I have the 2 partitions, first one fat32, then a ext2. I check /system and /system/etc looking for those files but they are not there. If there were there I would be able to read my card.

maybe I should reset to factory default and just try again?
[G1 Android Development] dwang:
what command are you using to check the existence of those files? whats the output?
[G1 Android Development] Rafase282:
I used astro or another file manager. I'll try again with the terminal form teh phoen to look for them.

But why can't I acces the card? with an sd adaptor I can acces it from my laptop but not form the phone.
[G1 Android Development] Rafase282:
Okay I started over, I want to know. To be able to use adb comands it works only for the emulator or does it work with the device cause now that i try to run the commands wihtout the emulator runing it tells me there is nto device runin.
[G1 Android Development] dwang:
of course it works with the device itself...

why would i give instructions that explicitly use adb if it only works for the emulator.
[G1 Android Development] Rafase282:
Then I don't know what I did wrong since the files are not transfering to the /system. When I copy the files to my destop to check if they are the modified ones I discovered that there were the origianl, also when I try to busybox df -h it retunr and error about busybox not being there.

Let me ask, to run the adb commands I MUST have the emulator on? and if so when will the changes take effect?
[G1 Android Development] Perrosky:
I just did this nd everythink went just fine. not issues jut that after install about 6 programs the internal memory went down from 54 to 53 it will be good that somebody find a way to stop this and everything go to the sd.

thanks for the How to:D
[G1 Android Development] dwang:
You don't need the emulator on. I think you don't have the right device drivers installed on your desktop. Search this board for getting adb working properly.

do you even have jc v1.3 installed on your g1? they should all have busybox installed by default.
[G1 Android Development] Rafase282:
Yes I do have jc v1.3, and to install the abd I downloaded the sdk and added the /tools to the path in the was that I was told on the guide.
[G1 Android Development] dwang:
Like I mentioned in the original post, this only moves the apk files to the sdcard. So all the applications' database and cache files are still on the internal storage. So that means the internal storage will still be used up as you install more apps, but you still should have plenty of internal storage available.

you can also move the /data/data directory to the sdcard, but somebody tried that and that caused too much slowdown in the applications so I wouldn't recommend it. And thats why I didn't mention it in the original post.
[G1 Android Development] Rafase282:
I fianlly got it to work. Thanks for your help!!
[G1 Android Development] momo9999:
I tried this and it worked well. I now have 54 mb of free space when I have like 30 apps installed (previously at 20).

The one problem I do see is that the Market thinks I have nothing installed. I used to go back all the time just to see whether I need to update anything. I am redownloading some of the apps to see if it will change the status from "free" to "installed" and whether it will affect my memory usage. I am just thinking it will replace what's there and nothing should happen.
[G1 Android Development] dwang:
just reinstall the apps from the marketplace and it will remember them for the future.
[G1 Android Development] Smokuevo:
use atrackdog

also i did that

adb shell

cp -a /data/data /system/sd

rm -r /data/data

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

and my runs just as it did before. got 50 + apps and games and got 62 mb free
[G1 Android Development] :
question... does the fat partition have to be the first partition? can it be ext2 first and fat second?
[G1 Android Development] dwang:
What kind of micro sdcard do you have? Is it a class 6?

I have a class 6 8gb microsd card on order so once I get that, I may move the data directory over to the sdcard myself.
[G1 Android Development] dwang:
No.. fat has to be 1st and ext2 has to be 2nd.
[G1 Android Development] Smokuevo:
i got class 4... thinking if i go to class 6 for odd reason what do i do with whatever is on there right now.. put it back on internal switch mem card and do the whole process over??
[G1 Android Development] dwang:
yeah you gotta partition the new sdcard and copy everything over from the old card to the new one. You don't need to do the other steps.
[G1 Android Development] dizzy8t0:
EXT 2 partition.

Alright so I have read through alot of the posts and searched and can't seem to find an answer. I'm definately a noob here. I've got a G1 with a class 6, 4Gb memory card. Though it took some time I have made it through the root and am back up to RC33 using jf 1.41 rc33. Now I have questions that I am hoping someone will please help me get through. First question is how large do I make each partition? The bigger problem I have been unable to use Paragon Partition Manager. I am running Windows 2000 on my pc, the Paragon documentation says it should run on 2K however when I try to install it says that it is not compatible with this OS. If anyone could give me some suggestions on how to get this partition put together it would be greatly appreciated.

Thanks
[G1 Android Development] LucidREM:
run a liveCD of linux like Ubuntu8.10 .. create the partition there .. as for size you can set it to whatever you want .. the G1 has 71M available and i set my 8G card to have 1500M for the EXT2 .. more than 15x what G1 gave us to work with .. others have set 500M and found that to be quite sufficient
[G1 Android Development] dizzy8t0:
So if I download Ubuntu I don't have to install it to the system? I looked at it and the way I read it it was a full operating system for installation. What do the two partitions each handle? Sorry....I'm trying to understand all this stuff.
[G1 Android Development] savethechicken:
I have this running on JF 1.43 ADP1.1 and i did have it when i had installed RC33 1.42.

The only problems Im running into is that sometime i have to download an application 2 or 3 times to get it to install correctly. It iwll show up with the generic icon with the gear and will force close upon opening. Might just because im on Edge.
[G1 Android Development] LucidREM:
the Ubuntu liveCD can be run on your computer without installing .. or you can install it side-by-side with windows .. the partitions on the SD or for your normal SD stuff (FAT32) and then a second primary partition (EXT2) that gets mounted into the G1 under /system/sd/ .. when that is done you now have a linux EXT system instead of the windows FAT system in which to load apps and such .. a link is created to direct the phone to the new location and it's basically like throwing an extra HDD into your desktop .. more storage capacity

you cannot store the same files with FAT32 because of the permission settings with which you're dealing
[G1 Android Development] .PaNiNi.:
is there any way if you partition your sdcard to go back and repartition it? like if i want to change the size
[G1 Android Development] LucidREM:
oh yes .. most definitely .. Partition Editor in Ubuntu is nice and easy .. resize to your hearts content .. so if you find you need more/less space you can always change it later
[G1 Android Development] .PaNiNi.:
you said there is nothing to download? because it is telling me to download it :-/
[G1 Android Development] LucidREM:
download? Ubuntu: yes .. burn it to CD and you can run the linux platform from the CD without installing on your system .. otherwise install it side-by-side with windows (like me) .. it just requires a reboot into the other OS
[G1 Android Development] spy_owl2:
I didn't think you could move the beginning of the partition while preserving the filesystem with most (all?) partition editors, including parted. I thought you could only enlarge/shrink from/to the end of the partition.

Or have I missed any new developments in this area?

If the above still holds true, the best way to change the partition sizes in this case would probably be to:

- archive all files from each of the partitions, maintaining file permissions especially from the ext2 filesystem

- re-partition/re-format the SD card as desired

- restore the files from the archive along with their permissions

I'm not familiar with software on windows, but it should be relatively straightforward to do this on most Linux systems.
[G1 Android Development] LucidREM:
i don't know .. i've been resizing partitions in linux and windows just fine .. only thing is they can't be mounted .. so like in windows you can't play with your "C:\" because your system is running .. you have to boot from an external source like a CD in order to change the partition .. i believe vista now lets you change it but you have to reboot in order to continue the process
[G1 Android Development] maxdamage2122:
I updated to adp1.1h recently and just noticed the new market app update feature which i love. the only problem is since i have my apps located on the sd card this featue doesnt work unless i reinstall all my app (i have 40+ apps). i think the problem is my apps arent located in the markets "My downloads". Anyone know of a way to fix this?
[G1 Android Development] LucidREM:
i had this problem once before .. ended up having to install ALL the apps again .. i'm looking into the possibility that permission aren't getting set properly when things go to EXT2 .. should maybe do a command like

#chmod 0771 /system/sd/data

#chmod 0771 /system/sd/app

just a guess .. but that won't fix your troubles
[G1 Android Development] bigl34461:
ok there was a chomp update it. And it worked fine earlier today. I have everything moved over to the sd card. but just a few minutes ago, I tried to update the weather channel app, and a message popped up saying that i don't have anymore space. What is going on???
[G1 Android Development] Jakorf:
I don't know what would be causing this. possibly create a full backup image before and after reinstalling an app and then cross checking the changed files. I know the /data/system directory has a couple of package database files including some "syncmanager" something...

the packages.xml file has a list of all installed packages, and I had to modify this to remove the com.amazon.mp3 crap after removing it from /system/app along with the odex file.

however, I have already moved the /data/system directory over and this did not affect market. I know the point is more space for installation, but has anyone bothered to just copy the whole /data directory over to the sdcard and link it?
[G1 Android Development] LucidREM:
might be a tad much .. my phone actually crashed once when trying to undo the move of just /data/data .. plus .. /data doesn't REALLy exist .. it's just /dev/block/mtdblock4 mounted .. so if you took a nice sized bite into the system i think you could move the mtdblock* files to the SD and mount them from there? i'm looking into this .. but without the SD the G1 would bite the BIG one .. added security measure?
[G1 Android Development] Jakorf:
as long as you keep the -a switch, there is no need for chmoding

I know it's alot of space for a normal use, but for the development of this mod it may be useful to look into copying as much as possible. how about copying all data from /data to sd card then just making the sd card the mount instead of mtdblock4?
[G1 Android Development] danguyf:
Yes. Once you've done a wipe then you have to move /data/data over again.
[G1 Android Development] big nu:
themes from sdcard to phone???

whats up peeps!! ive been to store diffrent themes on my sdcard, nut i cnat seem to apply them thru my astro file manager.. ive made a seperate themes folder and tryd changing the name to update.zip and reboot in to recovery mode, then atl-s and in tell me that no such directiory, failed aborted.. what do i need to do that im not.. some one please help a brother out....:confused:
[G1 Android Development] bigl34461:
so with this modified update you just posted....all i have to do is update. then i don't have to do anything else? I don't have to go into terminal and go through all these steps again? Only if I wiped my phone before hand right?
[G1 Android Development] LucidREM:
the modified update i did with JFs Build Environ means you don't have to mess with the init.rc or mountd.conf any longer .. once i perfect the scripts it'll just be a matter of one or two simple commands and it's done

but yes .. with a properly partitioned SD this update will do the mount work for you
[G1 Android Development] MontAlbert:
is all this easily ported to the ADP versions? hint hint :rolleyes:
[G1 Android Development] danguyf:
Yes.

You don't re-do the 13th step after installing new apps. Once you've done it then new apps are installing to your sdcard automatically -- that's why it says that the files already exist. You're essentially copying the files over onto themselves.
[G1 Android Development] Autarkis:
It's the power of the symlink. :)
[G1 Android Development] .PaNiNi.:
thanks, i asked this a few times but never got an answer!
[G1 Android Development] Perrosky:
When I get to this point busybox cp -a /data/app-private /system/sd/app-private I get the next error cp:cannot stat '/system/sd/app-private/app-private':Stale NFS handle

anyone now why and what can I do to fix this?

thanks
[G1 Android Development] Jakorf:
when copying a folder, it will create the folder.

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

that's what you will want then the data will be in /system/sd/app-private. You are telling it to copy into /system/sd/app-private/app-private when /system/sd/app-private doesn't exist, and so it has a "stale" handle.
[G1 Android Development] jdc4429:
If I were you I would try wiping the phone, doing the update right after and then reloading everything back from scratch. I think this would solve those issues. Those issues are not normal. I have everything running perfectly fine with an ADATA 8gb card with FAT32/EXT2 partition (7.5gb/500mb). I did notice that sometimes when I remove a program the /data/data directory for the program is not removed and that can cause problems. That's one of the reasons I recommend you start from scratch.

jdc4429
[G1 Android Development] jdc4429:
If your formated as FAT, you could try formating as FAT32. Might solve the issue. Seems some of the cards that came with the phone have problems. I would recommend just getting a new 8 gb card (ADATA 8gb class 6 from Newegg was pretty inexpensive.. that's what I'm running and have no problems)

http://www.newegg.com/Product/Product.aspx?Item=N82E16820211342

$16.49 with free shipping last time I checked.. Hard to beat that...

jdc4429
[G1 Android Development] jdc4429:
That's because you deleted your Market cache...

jdc4429
[G1 Android Development] jdc4429:
I created some batch files which help automate the move using adb... They allow you to move things in 1-2 steps depending on what you want to move. ie. A batch file for each item. You can move just the caches, or move the cache, and then move the apps, or move the caches, then move the apps and the data/data directory.

See Post 72 under the tempo10 thread...

http://xdaforums.com/showthread.php?t=462882&page=8
[G1 Android Development] jdc4429:
If they did, it would be an encrypted filesystem and would not be compatible. You need to copy the files/partitions over to the new 16gb card if you want everything running business as usual.

jdc4429
[G1 Android Development] All~G1:
Hey guys having a problem... I've reformatted 3 times, with 1g set aside for EXT2. if I run ls /system I can "sd" listed, but once I run:

busybox df -h ... all i get is:

/system

/system/modules

/system/xbin

NO /system/sd and this doesnt exist either *dev/mmcblk0p2 1.2G 9.1M 1.1G 1% /system/sd *

?????? anyone??????
[G1 Android Development] jdc4429:
I think it's either the directory does not exist or the permissions are not set correctly. I would suggest installing adb and trying my batch files to make sure the commands are being run correctly before assuming there are issues running apps from the sd card. I have been running with EVERYTHING except dalvik moved to the sd card and have had no problems. I did notice sometimes doing an uninstall of an app is not removing the files in the /data/data directory which can cause force close issues but that is easily fixed by the rm -r :)

Anyone interested can find by batch files here at post #72

http://xdaforums.com/showthread.php?t=462882&page=8

jdc4429
[G1 Android Development] jdc4429:
You could probably move just the apk's. If you leave the caches and /data/data on the internal memory I don't think you will see much of a slowdown... Apk's should make almost no difference speed wise... but free up a good amount of space...

jdc4429
[G1 Android Development] jdc4429:
That would be me... You can find the batch files here...

http://xdaforums.com/showthread.php?t=462882&page=8

Post #72

jdc4429
[G1 Android Development] jdc4429:
I created some awhile ago... See post #72...

http://xdaforums.com/showthread.php?t=462882&page=8

jdc4429
[G1 Android Development] jdc4429:
You need to mount the partition... which requires copying new verisons of init.rc and mountd.conf... Try reading Post #72 here..

http://xdaforums.com/showthread.php?t=462882&page=8

Might make it easier for you...

jdc4429
[G1 Android Development] LucidREM:
the modified init.rc and mountd.conf are included in my JFv1.42_RC33_MOD.zip
[G1 Android Development] jdc4429:
Yes... Was helpful in preventing the manual copying of those files when updating to JFv1.41. Thanks! :)

jdc4429
[G1 Android Development] boostfedh22:
Hey LucidREM, I gotta question for you. I jus updated to JFv1.43h, will your sd storage mod work for me?
[G1 Android Development] All~G1:
Hey lucid I PM'd you, I konw your busy, but im stuck. Any help would be appreciated
[G1 Android Development] LucidREM:
i haven't done the MOD for ADP1.1 yet
[G1 Android Development] LucidREM:
you did? not sure i got it
[G1 Android Development] boostfedh22:
Be more than happy to be your guinea pig....;-) Lemme know wen u do get a chance, and we'll go from there.
[G1 Android Development] LucidREM:
Modified ADP1.1H!!!

ok

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

i modified the ADP .. i did NOT however add the scripts to auto move the apps and data .. that'll be next time .. still working out the bugs on RC33 with my scripts
[G1 Android Development] LucidREM:
EXT2 Partition

ok .. so i have a question .. how many people noticed the change when you copy apps over to the EXT2?? like having to re-install apps

if you do "ls -l" on /data and "ls -l" on /system/sd and compare the sizes don't match up .. where on the phone reads "1 2048" the EXT2 reads "2 4096"

could this be where things get screwed moving files off the phone? can we match the EXT2 partition better? or use a different kind or even create a yaffs2 block file to mount?