yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] m00b3rt:
after the wipe and reflash, and before you run the script:

type su, then at the root prompt type busybox df -h, look to see that you have the ext2 mounted to /system/sd, something like:

/dev/mmcblk0p2 1.0G 13.0K 984.8M 0% /system/sd

DO NOT proceed until you have verified this. It helps one feel better about the ease of the next step, which is to run the script command(s).

From muchasGracias.
[G1 Android Development] m00b3rt:
Dangit.

So, I got the modded rc. put it into the FAT32 part of the sdcard.

i named it update.zip,

recovery mode, wiped, etc.

went into terminal,

typed.

su

busybox df -h

blah blah,

everything looked fine.

then,

copy.sh app

i exited out,

checked my memory. 71.

downloaded bonsai blast,

checked my memory, 65.

Help.

EDIT:[B/]http://xdaforums.com/showpost.php?p=3141070&postcount=1

follow steps 11 on. IT WILL HELP.

I have done it.
[G1 Android Development] Mikey:
$ su
# ls -la /data

then i ran

ls /system/sd/app

i get a "stale NFS file handle"

is that normal??

Edit...Update:

ADP version

Everything looked right.

Once i reboot, it loops at startup.

Any ideas??

I am trying this with no apps or anything on the phone.
[G1 Android Development] m00b3rt:
Edit...Update:

ADP version

Everything looked right.

Once i reboot, it loops at startup.

Any ideas??

I am trying this with no apps or anything on the phone.[/QUOTE]

did you try

busybox df -h?

if you get a list of things showing memory, it means you probably have the ext2 partition.

as for the loop, i'm not sure. i had to wipe my phone when it looped.

and, try to enter these at the terminal after you do busybox df -h

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

(courtesy of dwang)

THEN reboot.

Good Luck.
[G1 Android Development] Mikey:
Im going to try and partition my ext2 with Ubuntu, after i get home from work later tonight.

Can someone please write the steps down for performing a format on linux system, since i am strictly Windows guy.

I have Ubuntu installed on my computer.

Thank you. :)
[G1 Android Development] skri11a:
If you've ever used any partition manager, you'll be fine.

Ubuntu has gparted already installed.

You can either open up a terminal and type gparted or you can go to System -> Administration and choose Partition Manager.

Oncer you're in there, resize your fat32 partition, create a new partition with the free space, format and voila... you should be done.
[G1 Android Development] free_man:
So u are saying that if I moved /data/data using copy.sh data I don't have to run this script right? Because after I installed steel browser I still got a steel folder on fat 32 with all kind of stuff in it. Is'nt this folder supose to be on ext2?

By the way my 16gb class6 card works perfect. 1.5gb ext2 14.5 fat32 with 11 apps on ext2 until now and no problems at all. Used ubuntu gparted to partition the card and it dit all the jobs with no problems.
[G1 Android Development] djwaz:
Ok so now I think I will try to partition in unbutu, I downloaded it rebooted my computer and at start up choose to boot to unbutu rather than win xp, so it boots up and then asks me for a username and password, now I might just be as thick as rhino hide, but I dont remember any username or password that was asked of me to set up for unbutu, can someone shed some light on this as now I have the program I would love to try it since it seems like paragon partition manager was just not working properly for me.
[G1 Android Development] BuntasConstellation:
Started from scratch with the DREMAIG.nbh, Root, Lucid Modified RC33, Radio update, EXT2/FAT32 Partition, copy app/private/data, and everything seems to be working fine except:

1. Getting a MyFaves/Force Close error message upon startup of phone (I dont have MyFaves?)

2. Error message/Force Close when opening contacts from the dialer

3. Inconsistent Market downloads, Downloads don't finish and get hung up (gets irritating when you want to play with some cool apps)

Anybody else having the same issues? Gurus?

Thanks

Thanks
[G1 Android Development] creid2352:
Ok, I'm currently using an SD card running apps and data from it. I have an 8G card that I want to upgrade to. What do I need to do to get my info from my 2G card to my 8G card since when I remove the 2G card, my phone locks up?
[G1 Android Development] Mikey:
Update:

I guess it's not meant for me to have apps on sd card?
[G1 Android Development] m00b3rt:
i tried the same thing on GParted,

it doesn't seem to work.

Use Paragon Partition Manager.

It works the best.

ALSO.

Question : When your apps are on the sd card, why is something still taking up my memory?
[G1 Android Development] Mikey:
PManager will partition it but i get that stat error when trying to run copy.sh app

I am about too give up.

You will still use phone memory just not as much or fast.

APK's install there thing on the phone....
[G1 Android Development] blackknightavalon:
I managed to do this using a Class 4 card. Thanks for the build!
[G1 Android Development] :
Can't Figure Out How To Use The Program You Suggested Can You PM Me With More Detailed Instructions?
[G1 Android Development] dixxa:
If you're on windows == > http://www.paragon-software.com/home/pm-personal/download.html

If you're on linux you shouldn't ask xD
[G1 Android Development] blackknightavalon:
There is an option at the top called "Search this Forum." If you look around you can see that this process is in two parts: Partitioning the SD card and flashing the modified JFOS.

Looking at your question makes me want to write a letter to the Goodly and Much Loved folks back Home from the Wonderful Colony of Pennsylvania, in which we Hope and Pray that This Missive finds our Family Well and Just.
[G1 Android Development] LucidREM:
you can copy it to the phone and run it as a script .. i think Gscript would be the easiest way to run it .. otherwise you have to copy it to /system/bin or /data/local/bin and change permissions and run
[G1 Android Development] LucidREM:
correct .. since /data/data is already moved you don't need to mess with the cache files .. it will cause more problems for you .. if you encounter problems with the moving of all the data you can undo and then do just the cache files
[G1 Android Development] BuntasConstellation:
Anybody have this issue as well? Might try to undo, copy.sh data

Thanks
[G1 Android Development] LucidREM:
i've dealt with inconsistent downloads from the market .. as for the force close errors i've found it usually has to do with one of two things .. /data/data being moved to the SD and/or some app you installed the interferes with data

as for the market i just cancel and start the download over .. sometimes it's a data connection problem with google/tmo .. and this is something i've dealt with on the G1 even without modifying anything
[G1 Android Development] BuntasConstellation:
:D

So what about the MyFaves force close error when I first startup the phone? And the force close error when I open my contacts? Don't have my G1 with me so I can't further troubleshoot.

Thanks so much for the reply
[G1 Android Development] LucidREM:
well i couldn't say for sure .. those are both things that can be messed up with other apps .. my first thing would be to try "copy.sh undodata" to see if it continues happening .. maybe just move the cache files only
[G1 Android Development] BuntasConstellation:
Hmmm. Guess I will have to do some investigating when I get home. copy.sh undodata was the first thing I was going to try.

Just to make sure,

#copy.sh app - Moves apps to SD

#copy.sh data - Moves all user data and caches to SD

Thanks again for the replies
[G1 Android Development] m00b3rt:
Problems.

Ok,

I've been running into these issues, and have been forced to go back to JFv1.43 Holiday.

1. "Wifi Tether for Root Users" App will Not work.

2. Gmail force closes.

3. myFaves force closes, even though I do not have this plan.

4. Loops at Android screen everyso often.

5. When i wipe and enter

Copy.sh app.

my phone immediately reboots, and I get random apps in my menu.

Help.
[G1 Android Development] blacktortilla:
is this normal?

i installed the update and did a alt w so my internal memory was at 71mb

i did the the comands

su

copy.sh app

i got no errors

started installing apps and memory went down to 31mb wtf!

i tried doing the comands again and i got

[: =: argument expected

cp: cannot create '/system/sd/app' : File exists

MOVE /data/app DONE

cp: cannot create '/system/sd/app-private' : File exists

MOVE /data app-private DONE

it said move so i assumed the internal memory should have gotten cleared so i rebooted my phone and still i have 31 mb!!!! help!

the batch method used in the thread under rooting g1(page 8) worked great maybe ill have to resort to that again.
[G1 Android Development] BSDADON:
just did this about 10 minutes ago. works great so far
[G1 Android Development] dead2hill:
Two questions, I just wrote a better post but lost it somehow...

Comp won't pick up phone.... I seen answer somewhere my searches have failed me

I tried downloading a mp4@319mb and it says I ran out of room, I have 6.2fat32 1.3ext2 class6 sdhc 8gb. I deleted remains of file after stopping 75% now it won't even try to download a diff file

Also I do have apps/data to sd working fine first try

Ty!
[G1 Android Development] shaneaus:
Thanks for the script to move the cache!

For whatever reason I have had no issue with my apps on the ext2 partition. But, when I tried to move the data to the ext2 my phone would reboot and get stuck in the reboot cycle. So, I never moved the data to the ext2 partition of my sdcard.

But, I have been running the apps on the ext2 partition since you posted this thread.

Now, since running your script I also have my caches on the ext2 partition without issue. I don't even know how many apps I have on my phone (I constantly update/remove/add apps as I find ones I like/dislike). But, I normally have between 80 and 110 with no problem whatsoever.

Oh! I failed to mention I am only using a Class 2 SDcard.... I think that is why the data/data move was not successful.

Thanks!
[G1 Android Development] LucidREM:
the script only gets run once .. trying to run the script again will do nothing .. once you've done "copy.sh app" all apps will install to the EXT2 partition
[G1 Android Development] Mikey:
Update:

I partitioned my sd card on a different XP machine. Flawless.

i installed RC33Mod. Rebooted, i got homescreen :)

I performed: *adb shell*

Instead of copy.sh app

Worked!!! without errors.

Rebooted..............NO LOOPING :)

I ran all commands to see if everything was directing to the card, they were.

Although when i run:

ls /data/app *just to see if anything was left behind*

no it didnt

AFTER i install new apk's from the market:

they still show up in /data/app

So being curious i ran ls /system/sd/app

The apk WAS NOT in there

obviously the link never performed correctly, when i try to adb shell the link command, i get "link failed File exists".

Any ideas or is this normal, which i dont think cause what's the purpose of copying apps to card if it still keeps apk on main memory.
[G1 Android Development] LucidREM:
so if you "ls -l" on /data/app you will read from /system/sd/app .. if you "ls -l" on /data you should see something like:

/data/app -> /system/sd/app

if the link doesn't exist then not sure what to tell you .. you'd have to find out to where the files are being directed .. if the apps were never touched i would try the "copy.sh app" because it just automates the same process without typing everything out

oh and don't forget .. if you do this:

$ls /data

you may not see what you want .. if you do this:

#ls /data

you will see better .. the little "su" makes all the difference sometimes
[G1 Android Development] robbievman:
cant find apk files?!

Originally posted in wrong place i think...:rolleyes:

Hi,

I reflashed my phone with the RC9_MOD version and ran the script

a. $su

b. #copy.sh app

c. #copy.sh data (OPTIONAL)

I assume all is well but I can't find the files for my applications? There is no sdcard /apps and there is no \data\apps. There is however an system/app that contains the default apps (i think?) and none I downloaded from the Market?

There is also a system/sd app and data folders which are empty?

Does this mean that the script has not run it said it was expected when I ran it!

The reason I ask is I wanted to install Gscript and could not see it on the MArket so was going to try and copy onto my home from my PC. Any ideas?

Edit/Delete Message
[G1 Android Development] LucidREM:
sounds like you're trying to view /system/sd/app without Terminal .. go into Terminal and commence:

$su

#ls -l /system/sd/app

#ls -l /system/sd/data

#ls -l /data

that last one should show you the link:

/data/app -> /system/sd/app

/data/app-private -> /system/sd/app-private
[G1 Android Development] Mikey:
This is what i get:

Looks like app-private is fine but not app

Can i manually do anything for that alone??

Edit: I redid the steps and here is an update.
[G1 Android Development] LucidREM:
heheh .. caught me .. i quoted to reply at the instant you updated the post and i went back to re-read .. so everything good now i guess?
[G1 Android Development] Mikey:
I will tell you within 15 minutes, have to send this project.

I'll reboot my phone and check again
[G1 Android Development] Mikey:
Ok i get this after a reboot

Gonna try and install an app now and see where it gets installed.

I JUST INSTALLED "The splatting Lite"

So now it saves it in BOTH areas, better then before lol
[G1 Android Development] LucidREM:
actually not .. when you do "ls /data/app" the phone is reading "/system/sd/app" because of the link put in by the "ln -s" command
[G1 Android Development] Mikey:
I thought when you do a ls /data/app it should be empty

So im, good??
[G1 Android Development] joshtheitguy:
I had a problem with my phone and had to alt+w earlier today. I seem to be having some major issues with the sdcard's ext2 partition but I seem to be unable to remove these files due to "stale NSF handle".

If I could run fsck I might be able to correct this but this is what happens":

# cd /system/sd

cd /system/sd

# ls

ls

data lost+found

# cd data

cd data

# rm -r *

rm -r *

rm: cannot stat 'com.taito.android.arkanoid/shared_prefs': Stale NFS file handle

so I figure try a fsck:

# fsck /dev/mmcblk0p2

fsck /dev/mmcblk0p2

fsck (busybox 1.13.2, 2009-01-20 22:33:28 CST)

fsck: fsck.auto: No such file or directory

I might be missing something here but since I am at work w/o a card reader and mkfs was not compiled into busybox I don't know of any other way to remove this directory and start over and or format the sd ext2 partition. Any ideas?
[G1 Android Development] Mikey:
do you have a printer that has a built in reader?

till you get home you just need to get the rom flashed back to your phone prior to running the script??

how about in terminal:

copy.sh undoapp
[G1 Android Development] robbievman:
Looking good

Thanks LucidREM It looks like my apps are in the right place after all assuming

system/sd/app is my sd card?

Can you help with copying an .apk file from my pc onto phone also or am i pushing my luck!
[G1 Android Development] joshtheitguy:
I tried that and the folder just won't delete. Unfortunately I don't have a Micro to full size SD adapter and a printer with said reader.

Only two boring hours to go. I'll just load it up on my up on my ubuntu system and fsck it from there.
[G1 Android Development] Stryder5:
How do you check to see whether you have apps and cache moved to SD or not? I installed a theme but not sure if that ruined the links or not.
[G1 Android Development] khoaitaychienvn:
I tried to uninstall, like, 10 apps last night. And during that, I restart my device 4 times. After the 4th time of restarting, my device got stuck at the first start up image, not even get into the flashing android.

A wipe cant help. I'm about to install the firmware again.
[G1 Android Development] konzern:
ok so i put in the script in the terminal emulator and it said "complete" or something of that sort. but i just downloaded bonsai blast to make sure and it still brings my internal memory down

i did everything,

fat32/ext2 combo

updated radio

updated the rc version on here

did the terminal emulator

is there something i did wrong?
[G1 Android Development] konzern:
i just did this and it shows me that last link

so why is it still running down my internal memory?
[G1 Android Development] dixxa:
/data/data and /data/dalvik-cache

Mine looks like this:

# ls -la /data

drwxrwx--x 1 1000 1000 2048 Mar 11 06:45 .

drwxr-xr-x 12 0 0 0 Mar 26 10:03 ..

drwxrwxrwx 1 1000 1000 2048 Mar 11 06:45 anr

lrwxrwxrwx 1 0 0 14 Mar 13 19:05 app -> /system/sd/app

lrwxrwxrwx 1 0 0 22 Mar 13 19:06 app-private -> /system/sd/app-private

lrwxrwxrwx 1 0 0 23 Mar 13 11:38 dalvik-cache -> /system/sd/dalvik-cache

drwxrwx--x 1 1000 1000 2048 Mar 25 12:11 data -> /system/sd/data
[G1 Android Development] webgrafix:
Hey All!

I successfully installed Lucids mod to my G1 yesterday. Apps are on the SD card... everything "seemed" to be going OK.

All of a sudden I cannot access my "Call Log"... I am getting "The process android.process.acore has stopped unexpectedly. Please try again". I rebooted, battery pulled, try remounting the SD Card.... nothing is working.

Getting a similar error about the "My Favs Contact"....

"The application Contacts and myFaves storage (process com.tmobile.myfaves) has stopped unexpectedly. Please try again."

Any ideas?

Thanks!!!

Web
[G1 Android Development] konzern:
im missing that part in bold...the dalvik cache into system sd everything else for the most part looks the same
[G1 Android Development] shaneaus:
I had that error problem in the past. I can't remember what the issue was (sorry). But, I seem to remember it had something to do with moving my data file to the SDcard. Did you move the data to the SDcard or only the Apps? If you moved the data try flashing the LucidRem mod again and only moving the apps to the SDcard.

ALSO, before you do the above double check that your phone is using the correct APN settings. I am lucky in that I use AT and only have one APN setting (I deleted all of the other T-Mobile APN settings). If your phone for some network connection reason tries to use the wrong APN setting (if you are on T-mobile) I seem to remember that the Faves/Contacts might not display properly.
[G1 Android Development] carlitozway57:
I tried doing this without wiping and I kept constantly having everything force close on me. So I wiped (the phone that is) and then flashed (the phone that is) and things only seemed to get worse.

Moving data makes the phone loop at the flashing android screen. When I was able to get past that, the market wouldn't install anything.

Wiped & flashed again, only moved the app's this time, and I still get force closes all the time on random app's. Also, all my old app's returned, even after the wipe, once I ran the command to move app's to the sd card. I'm guessing they are there from the first time I ran the command. Not a complaint but just an observation.

The transition to the SD card seems to have been successful in terms of freeing up storage but had I been aware that the phone would turn to **** from doing this I wouldn't have.

Is this experience the norm or am I doing something wrong or...what? Thanks.
[G1 Android Development] shaneaus:
@carlitozway57 - When you ran the Lucidrom the first time and executed the commands to move the apps and data to the ext2 partition of the SDcard they were moved.

Then when you wiped they were not deleted. The wipe only wipes the data on the phone - not the SDcard. That is one of the benefits to using this process. I can wipe my phone and tinker with it all I want... When I re-flash with this mod... My apps are still there waiting on me. No need to re-install.

In my experience (probably because I don't have a class 6 SDcard) I haven't been able to move the data and have a working phone. However! I have had worry free operation with just moving the apps and the caches. I have had the apps on the ext2 partition for... well, a long time. I moved the caches to the ext2 partition last week. NO PROBLEMS.

It won't turn your phone to crap or make it run slower with just the apps moved. It will run better and you'll have more memory.

If you use a backup program for your apps like ASTRO or My Backup consider this: Since you wiped and re-installed - your apps might be on the SDcard, but that doesn't mean they are "installed" into the Android OS. Try Uninstalling your apps that are giving you problems and re-installing from back up.

ON A SIDE NOTE!

LUCID - (or anyone else that can answer) - what would be the terminal cmd/script to wipe the ext2 partition of the SDcard. Just in case someone is having problems and wants to completely start over by wiping the phone and the card (without having to pull the card and reformat it on the PC)?
[G1 Android Development] LucidREM:
if you do:

ls -l /system/sd

this will tell you the list of folders/files on there .. then just do something like:

rm -r /system/sd/app

rm -r /system/sd/app-private

rm -r /system/sd/data

to delete the folders and sub-folders contained there .. obviously only do this if you don't want the files any longer .. like after wiping the phone
[G1 Android Development] LucidREM:
your phone memory will drop when things are installed .. the programs spread information out in /data beyond just /data/app or even /data/data .. it's nothing to worry about .. but if you are so inclined you can move more stuff over to the SD like /data/dalvik-cache

the difference is your memory won't drop as quickly
[G1 Android Development] konzern:
yeah i kinda did the math last night on the apps and i figured it was around half of the true space it takes. so if the apps are supposed to take up 40mb im at about 20mb is that about right?
[G1 Android Development] xdavidn88:
if i uninstall a app, does it uninstall from my ext2 partition too?
[G1 Android Development] a1t:
Backup directories from Ext2 part to sdcard

Does anyone have the commands to backup a directory from the ext2 partition to the sdcard with the symbolic links already established?

I was using:

cp -r /SomedironEXT2Partition /sdcard/My Folder Name

But because of the symbolic link(s) I cannot copy. Any help would be appreciated.

Thanks!
[G1 Android Development] LucidREM:
it actually has nothing to do with the links .. it has to do with permissions .. not to mention there's no reason to "backup" from the EXT2 to the FAT32 as you cannot put things back the way they were .. all permissions would be removed
[G1 Android Development] bassbox:
Whats the easiest way to get all apps and especially cache back to internal rom? what do i have to type into my terminal emulator?

(i know if future programs shell be saved in internal as well i have to reflash original js rom^^)
[G1 Android Development] dead2hill:
Ok..I need a hand and if somebody would like to be my buddy add me on AIM I can help u with stuff if u help with this..plz!...I have done apps and data to sd(the only way I can download more apps from market is if I undodata(thanx for the script very useful)then redo data to sd and it's fine) my prob is the usb..comp won't recognize the phone..I can fastboot but I'm not sure how to push and pull through the adb.... my question is will someone please I'm and post/or post the cmd lines to push pull music and other files without having to put sd in a external reader. Ur time is more than appreciated..! AIM = dead2hill
[G1 Android Development] Exegence:
how does one get the apps to show up in the my downloads section of the marketplace?

i moved the apps to the sd/ext2 and all it shows under my downloads are apps i've purchased and the ones i downloaded recently. none of the old apps at all.