yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] LucidREM:
we can only work off the assumption that you partitioned the card properly .. which would not make sense since the rest of us have not had this problem

1. create the primary partition as FAT32

2. create the primary partition as EXT2

they are both primary partitions .. they are both formatted properly .. the FAT32 is listed first .. the EXT2 is listed second

can you verify that all of this is true? if so, move to the next step of verifying that they are mounted properly on your phone
[G1 Android Development] theanswriz42:
I notice that the free apps I downloaded are no longer in the database under "my downloads" in the market though the paid ones are. Is there possibly a symlink missing somewhere?

cheers
[G1 Android Development] new_guy:
ok i think i finally got it, installing apps and browsing the net doesn't increase the storage. however, i get random market crashes and when i view my contacts, i get crashes as well. does anyone get this? this only happens after the phone restarts.
[G1 Android Development] tampabuc2004:
ok i followed everything step by step. i partitioned my sd card with paragon with 1g to each partition. i then installed the update, when i went to do the scripts it wasnt able to make the dirs but it was able to move the files. After running the scripts i wasnt able to access any of the apps i kept getting a force close. i just did a wipe but i am not sure what to do, or how to know if i did it right
[G1 Android Development] tampabuc2004:
double post
[G1 Android Development] Lakers3408:
Home and Power

Alt+w

Alt+s

Home and Back

Run script(s)
[G1 Android Development] tampabuc2004:
ok i redid everything but when i ran the scripts this is what came out

# copy.sh app
[: =: argument expected
cp: cannot create directory '/system/sd/app': read-only file system
MOVE /data/app DONE
# copy.sh data
[: =: argument expected
cp: cannot create directory '/system/sd/data': read-only file system
MOVE /data/data DONE

So did i do it right, or is something wrong

Now its doing the force close again too
[G1 Android Development] Lakers3408:
My guess is your partion is not right... Post a screen shot of your sdcard

in paragon
[G1 Android Development] Lakers3408:
I see that you have one partitom as Fat16

It SHOULD be Fat32, change it to Fat32 see if that solves the issue.
[G1 Android Development] tampabuc2004:
i thought it was fat32, but i changed it to fat32 and i still got the same responses as before. and now i am in a looping andriod too
[G1 Android Development] Lakers3408:
I was having the same issue and had to redo the entire partioning as i was having issues with Paragon. I then used Ubutu had was good after that.

As for the loop just remove battery then

Home+Power

Alt+w
[G1 Android Development] tampabuc2004:
can i do it from a live cd, o do i actually have to install ubuntu
[G1 Android Development] LucidREM:
definitely appears the partition is not mounting to /system/sd for some reason .. double check in Terminal when you do this:

$busybox df

you should see a line like this somewhere:

/dev/mmcblk0p2 154096 76296 1393084 5% /system/sd

if not .. then in trying to create the folder under /system/sd you are actually trying to write to the phone
[G1 Android Development] Lakers3408:
Live cd should work just fine
[G1 Android Development] tampabuc2004:
ok i am going to try repratition the sd card in a bit but i tryed the busybox df and this is what i got for the sd /dev/block/mmcbblk0p1 1980112 4 1980108 0% /sdcard

so if i am reading it right the sdcard is being seen by th filesystem, so how would i go about making the files myself, sorry i am not really good with linux commands
[G1 Android Development] LucidREM:
if you do not see the mmcblk0p2 to the /system/sd then your second partition (EXT2) is not there .. only the first partition (FAT32)
[G1 Android Development] tampabuc2004:
Ok I tried repartitioning it inside ubuntu, but when I did the busybox I wqasnt able to see mmcblk0p2 could it be the sdcard or is it me doing something wrong
[G1 Android Development] LucidREM:
hard to say without more info .. without seeing each step etc .. make sure the partitions are both formatted? i don't know if some step is being missed .. when you format the partitions in ubuntu they automatically mount to the desktop .. and then you unmount them and put the card back into the phone
[G1 Android Development] Beast84:
Hey Lucid, now that you are here, I was hoping you could answer these since they were missed earlier

The second one referring to you saying you were gonna put the /data/dalvik-caches in your next update script
[G1 Android Development] LucidREM:
i might put the update.zip out before JF makes any changes (he's been quiet these days) .. but i've been hopeful to see some changes soon

as for stuff being left on the SD .. not sure why that would happen:

#rm -r /system/sd/data

that line will clear out the data from the EXT2 .. i thought i had that line running in the script .. i'll have to double check .. if that line doesn't do it then there's something else going on
[G1 Android Development] Beast84:
This is what I get when I run that command?

Also, would moving the dalvik-caches be a bad idea if I already have the cache's moved to /system/sd? Or should I remove the cache's first?
[G1 Android Development] LucidREM:
i was just thinking that i need to edit my script anyhow .. right now it tests to see if /system/sd exists .. but i'm thinking i should test to see if /system/sd/lost+found exists instead .. and if it doesn't then the script ends without doing anything .. seems some people have lost their apps because they did not have the partitions done correctly and so there was nothing to where to copy the files .. seems like such a silly little thing yet can have catastrophic results
[G1 Android Development] LucidREM:
cache's are under /data/data so moving /data/dalvik-cache should be fine

looks as tho you have some errors there that won't let you delete the data off the EXT2 .. could be related to previous problems that prevents you from having /data/data moved there
[G1 Android Development] Beast84:
So would reformatting my ext2 be the only way to correct the error?
[G1 Android Development] LucidREM:
not the only way .. but most definitely the easiest to explain - LOL - i'm not that familiar with linux stale handler stuff .. but i do recall someone else mentioning the similar thing in another thread .. of course the end result might have been to reformat
[G1 Android Development] Beast84:
Hmm... point taken. I'm not looking for a complicated answer anyway so I welcome the easiest way to explain lol thanks for the help
[G1 Android Development] tampabuc2004:
Hey I was able to get everything working, there ended up being a lost+found still on the sd card and once I deleted it everything worked
[G1 Android Development] jawash22:
Isn't it # busybox df -h?
[G1 Android Development] raukodur:
Simple question, if you have the time to answer:

I moved my apps to SD card, and started loving my G1 again. At the time I didnt move my data to SD card, since I figured that that continuously goes up, and I thought that the only way the phone managed that data, was to wipe it when the phone ran out of memory, so I thought that if I moved it to my SD card, it would just grow and grow...

Having said that (which may all be untrue, I am very ignorant of how the phone works), I have installed a ton of apps on my phone, and noticed that my internal memory is down to 8mb. I know the apps are installing to the SD card, so all the internal space must be being taken up by app data and caches.

So, is this anything to worry about? Is the data taking up all this internal memory going to auto clear when I try and install something too big? Or will it start limiting me in the same way I was experiencing before I had moved the apps to the SD card?

If it is the latter, than I would want to move the data folder to SD card, can I do that at this stage (i.e. after having installed lots of apps on the SD card), and if I do, will I lose any data? Will I have to reinstall anything? Will it cause any problems? Can it even be done?

And last but not least, am I right in thinking that the data folder contains caches as well as app data? And am I right in thinking the caches continue to grow until the G1 is stimulated to delete them due to running out of space, and so if on SD card, this will not happen, and the caches will continue to grow? If this is the case, what is the solution? How do you manually clear caches?

Sorry for all the questions, I believe these are questions many ignorant folk like me have, and would greatly appreciate and benefit by having someone who knows what they are talking about giving standard answers.

Many thanks and Kind regards.

Oh, and PS:

I found this on page 72 or roundabouts:

$su

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

#rm -r /data/dalvik-cache

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

Is this better than “c. #copy.sh data (OPTIONAL)”? And if so, in which way?

EDIT: I was just looking at my apps in the default g1 apps manager (the one which takes ages uninstalling anything because it recalculates sizes or whatever each time), and I was noticing that it shows both app size and data size. Would I be correct in thinking that if you have only transferred your apps to SD card, the app size is located on the SD card, but the data size is still on the phone? Thing is, going through the majority of my apps (especially some of the biggest ones), the total data size for most of them is very small, and doesnt account for the amount of memory my phone is 'missing'. Does this mean the rest of the space which is missing is taken up by caches? If so, that is reassuring in that I assume those the G1 will automatically clear, but if this is the case, is there any way to manually clear them, so I can be sure of what is going on?
[G1 Android Development] jgu71424:
will this affect the themes?
[G1 Android Development] jawash22:
I only see the first line with p2, not the p1 line. Do I need to partition still?
[G1 Android Development] LucidREM:
it doesn't really matter .. with this

#busybox df

you get the numbers like 1789234

with this

#busybox df -h

you get the numbers like 1.8G

same thing only different
[G1 Android Development] LucidREM:
is your SD mounted to your computer?? without the p1 that means your FAT32 partition is not mounted to the phone
[G1 Android Development] xShadoWxDrifTx:
Hey Lucid, I was wondering how you do a fsck check on the sd card from ubuntu, Sorry total noob at this!

Thanks
[G1 Android Development] Weees:
PLEASE HELPPP !!!!

I did all the steps and it seemed to work fine, except I wasnt sure that after I did the copy.sh app , the apps were actually moved or not, so I did it again, and then phone started behaving really wierd........so I restarted and now the phone gets stuck at the screen right after the Tmobile G1 . The one which says Android , it keeps retarting that screen indefenitly.

PLEASEEEE TELL ME THEIR IS A WAY TO FIX THIS :s
[G1 Android Development] raukodur:
Is this better than “c. #copy.sh data (OPTIONAL)”? And if so, in which way?
[G1 Android Development] LucidREM:
this has been found to be another big chunk of space on the mtdblock5 .. the reason moving /data/data is optional is that many people have experienced problems after moving this part to the SD .. so far no problems have been listed with dalvik-cache .. i gained 15M by moving it over to the SD .. quite a large chunk
[G1 Android Development] raukodur:
Hmm, ok, tried the first line:

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

Got the message: system/sd: permission denied

cp: cannot create directory 'dalvik-cache': read only file system

Why am I getting this message?
[G1 Android Development] LucidREM:
your EXT2 is not mounted to the phone
[G1 Android Development] raukodur:
Hmm, I was able to move the apps to the SD card, how come I cannot do this? Far as I know, nothing has happened in between.

And I am pretty sure the apps have moved to SD card, since i have installed way more than I was able to previously, and I was checking before and after to see if my available internal space was decreasing, which it wasnt.

So what could have caused the ext2 partition to 'unmount' and what can I do about it?

Hmm, and actually, if the ext2 partition was unmounted, and if it has the installed apps on it, how can I run any of them?

very confusing.

Could there be any other reason for tis message?
[G1 Android Development] wizern23:
Okay i'm getting po'd right now. i have paragon partition manager 9 full version and i'm trying to create the ext2 and fat32 partions and its not working. I get al the way through the process so to get a blank sdcard error message from my phone since it doesnt see the fat32 partition. I'm using these instructions to do it http://xdaforums.com/show...1&postcount=14. I don't have the sdcard adapter so im trying to do it through the usb cord. it worked when i just created the fat32 but when i creat the ext2 my sdcards stops working and it takes me forever to get it to work again. Any help is apreciated.
[G1 Android Development] LucidREM:
have you tried this:

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

i wouldn't try the USB method with the phone .. but first thing you have to make sure you unmount from the computer before trying to access on the phone .. the SD will not cannot to both at the same time .. you may need to reboot the phone before it will recognize
[G1 Android Development] LucidREM:
that's just my best guess .. the reason for the message is that you're trying to write to the /system folder .. when the EXT2 gets mounted to /system/sd then you are not actually writing to the /system any longer .. so somehow the connection between /system/sd and the EXT2 has been disrupted
[G1 Android Development] wizern23:
i keep getting www.theficks.name is a bad adress
[G1 Android Development] LucidREM:
maybe something got mistyped .. i just pulled the file up myself .. no problem

http://www.theficks.name/bin/lib/droid/sdsplit
[G1 Android Development] wizern23:
I just got it to work using the usb method and then i checked it using # fdisk /dev/block/mmcblk0 and both the fat32 and ext2 partitions showed up.
[G1 Android Development] jordiga:
Works like a charm. Thank you so much. I won't go to 1.5 until installing apps on SD is possible there.
[G1 Android Development] Dantehman:
***BUMP***

My 8GB card finally arrived :p so i need advice on copying etc
[G1 Android Development] Dantehman:
Ok well thats my 8GB card formatted and ready to roll, now how do i transfer my data from card to card?? or would it be easier to start fresh??
[G1 Android Development] Dantehman:
Scratch that fromatted my SD card wrong

D'oh!!
[G1 Android Development] LucidREM:
http://xdaforums.com/showthread.php?p=3522300#post3522300
[G1 Android Development] Seventynin9:
Phone will only boot with SD with Ext2

I used Paragon Partition Manager and a card reader to create Ext 2 partition. I loaded Lucid's update 1.42 and booted all the way to home screen. Everything looked good. I turned the phone off. Installed the SD card with Ext2 and booted all the way to home screen. I decided to turn off the phone. I also removed the SD card to check with the card reader once more before completing the final step to transfer apps to SD. All looked good. Ext2 had 1.5G of "free" space. Went outside to shoot hoops for a bit. Turn on the phone. I realized that I didn't have the SD card back in the phone. I waited... waited. Phone never got past G1 screen. No android.... It apparently locked up. Removed the battery. Put the SD card in. It boot all the way to home screen.

Folks, I am completely new to this process. Perhaps, I bit more than I can chew, however, I can follow instructions. Is there a reason why the phone will not boot without the SD card with EXT2? I've tried other SD cards, it won't boot. It will only boot with that particular SD. Please help me understand.

Edit: I went ahead to completed the final script to move the apps to SD. It worked. The problem I have is I can't see the apps I moved. How do I gain access to those apps?

Edit Edit: Rebooted. My apps are all there. Good stuff. I still have the question about the SD card. Please educated me.
[G1 Android Development] Dantehman:
Why Thank you my good sir! :D
[G1 Android Development] Razor1973:
Are you saying that command should fix me or to post the output for you to see/analyze in order to be able to help me undo?
[G1 Android Development] LucidREM:
that will let you see where the pieces go .. the output would show something like:

com.google.street -> /system/sd/data/com.google.street

if the link is not there it would need to be created for each app that was moved
[G1 Android Development] Razor1973:
OK, so here is the output of #ls -l /data:

And here is the first page of the output of #ls -l /data/data:

There's a total of 9 pages even after reducing the font size, but I don't want to clutter this thread with images, so I just posted the first one above and here are the remaining 8 as links in case you want to see them:

http://i40.tinypic.com/28hiwdd.jpg

http://i39.tinypic.com/zwev8.jpg

http://i42.tinypic.com/fbyogl.jpg

http://i44.tinypic.com/30i9e8y.jpg

http://i41.tinypic.com/111kydw.jpg

http://i43.tinypic.com/2h391yv.jpg

http://i44.tinypic.com/sbiybk.jpg

http://i39.tinypic.com/14noghs.jpg

Thank you again.
[G1 Android Development] Rafase282:
LucidREM, have you tried my script? So far the only problem I have with it is that it clears the screen too fast and don't let me read teh output.

Also, It have never give me trouble. I could even do a wipe and the scripts puts everythign in place. I hope you find it useful. If you see something is wrong with it please tell me so I can update it.
[G1 Android Development] LucidREM:
i'm a little stumped .. what is tombstones? looking at the screen i'm not sure there's any visible reason that it wouldn't be working

only suggestion i can give is try my cpundo .. take the cpundo.txt and put it on your SD:

#mkdir /data/local/bin

#cat /sdcard/cpundo.txt > /data/local/bin/cpundo.sh

#cpundo.sh

should reverse things back to before the script
[G1 Android Development] LucidREM:
i'm not having trouble on my end .. seems to work just fine .. i ran my script and everything's good here
[G1 Android Development] Razor1973:
*LOL* Probaby one of the games I recently installed.

cpundo.sh: permission denied :(
[G1 Android Development] LucidREM:
maybe it needs the

#chmod 0755 /data/local/bin/cpundo.sh
[G1 Android Development] Razor1973:
OK, this got Gmail working again, but still no contacts. When I open the Contacts app, the contact list is empty.
[G1 Android Development] Rafase282:
Try a manual sync?
[G1 Android Development] Razor1973:
That did it, except I had to delete my MyFaves icon from the desktop, since it wasn't working and add it again from the drawer. Strange.

I have a feeling I left a big mess in my SD card, though. Like stuff there that I don't need, etc.

Thanks for your help, guys.
[G1 Android Development] obe1:
JFv1.42 modded by lucid

Ok here's my questions/concerns. And first iam rooted and I have partiton the sd card but I don't have apps on sd card I tried and failed miserably so with this new one it only moves the data to the sd card or all the apps and should I even update with this one with out opening a can of worms and getting screwed. Cause the first page instructions seem pretty easy and straight forward but I'm confused is this only for ppl who have apps on sd already or to help ppl like me who couldn't do it in the first place to move them so can anyone clarify this for me please thank you in advance.
[G1 Android Development] LucidREM:
this is for anyone wanting to install apps on the SD or for those who already moved their apps to the SD
[G1 Android Development] LucidREM:
New Scripts

ok .. i'm eliminating the old script cpcache.sh and made a new one copy.sh .. it's very simple .. copies entire /data/data and /data/app and /data/app-private .. if you've already moved those over then you don't need to run the script

also .. had someone flash with my update.zip without the EXT2 .. so i added the original init.rc and mountd.conf so everything can be restored in the console .. i should have the new scripts uploaded by tomorrow morning
[G1 Android Development] muttley06:
good work lucid
[G1 Android Development] Rafase282:
LucidREM , Could you point me to a good guide to use the build environment or build a custom JF RC33 for me? I want to add the custom files and my script to it and delete the ringtoens and notifications, only leave the alarms.

I would prefer to learn how to do it myself so I can update it myself. However, I tried and didn't even know how to get started. Readed some files but didn't get them right.
[G1 Android Development] LucidREM:
i can add your scripts into my build if you'd like
[G1 Android Development] LucidREM:
ADP1.1

i put a modified ADP1.1 on the front of this forum .. anyone want to try it out??
[G1 Android Development] hawaiianboi:
hey is there a script to clear out the catch when you move it to the SD card
[G1 Android Development] MontAlbert:
sure- i'll give it a crack either tomorrow or day after- so basically its the same as JF 1.43ADP except it has the modified init and mountd files? So all i would have to do is create the links for the apps on sd again? And move caches again? this is as you said there is no script in with ADP....

so, if i am still on 1.42ADP i only flash yours or do i have to flash JF 1.43ADP first and then go straight onto flash yours without any wipes?

and then do following commands:

12. From the G1 shell run the following cmds to copy your app and app-private directories from the internal g1 storage to the sdcard.

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

rm -r /data/app

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

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

rm -r /data/app-private

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

13. Reboot, enjoy all the extra storage!
[G1 Android Development] kizer:
Great script

I had zero problems moving my apps over, but once I tried the data I started having tons of force.closer errors and I got stuck in a infinate loop on bootup and ended up doing a wipe and running the apps one again.

So with that can I assume that my phone for some reason doesn't like to have the cache moved over and I should just stick with it on the G1 internal memory? I'm watching the internal memory dwindle down, but I'm guessing thats expected with tons of cache useage?

Maybe a dumb question, but since I installed the Moded 33 on top of the JV33 version do I still need to update the radio when I did it earlier? Edit: Never mind I gave the radio thread a looksee and it points out that I currently have the radio installed so that answered my question. Baseband Version: 1.22.14.11
[G1 Android Development] Dantehman:
ive already got a partition mounted in /system/sd

is there anyway i can unmount it or get rid???

(as you may have guessed i did my partition wrong and didnt realise till it was done :( )
[G1 Android Development] bigballa:
i have one question

i tried to read through the thread but it was waay to large and long

if u do install apps to the sd card

when u install a newer rom on it does that mean the apps are automatically installed once again? i would like to do this because haykuro's roms are released once a week and i dont like reinstalling apps over and over again...
[G1 Android Development] kizer:
Ok I finally got the cache to move over. I think everything works fine, but when I tried to use the Market I get the following error.

Sorry

The application Market (process.com.vending) has stopped unexpectedly.

Please try again.

It worked fine before the cache move. I looked in the

/system/sd/data

Shows up as

drwxr-xr-x 6 10006 10006 1024 Apr 15 01:55 com.android.vending
[G1 Android Development] LucidREM:
i have no idea about haykuro's stuff .. this version is from JFs ROM that has been modified to retain the apps on SD .. you should probably ask him

if you use the JF ROM then my modified update.zip will not require you to reinstall anything