yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] samysam05:
i got this working on my phone and whn i tried doing it for a friend, some of the apps were moved and the others said "Stale NFS File handle". so i tried unsinstalling them and no go, tried replacing em and i get a not enough memory message and finally i tried to remove them with the rm command and it says "Stale NFS file handle". Im out of ideas any1 help!
[G1 Android Development] T-McGill:
I got the same error after un-installing the app 'Caller Lookup' from the market. The stale NFS handle error caused all kinds of problems when I moved /data/data to sd. I think I need to use fsck to fix it however, I don't know how. Since I can't remove the corrupt file, I moved it out of /data/data. I moved /data/data back into sd and I don't have any problems.
[G1 Android Development] devildogg2001:
i did this exactly as it said to, and my device wont recognize the the sd card, but it says that i have 54mb internal memory left.. can someone help please before i mess something up....
[G1 Android Development] phuthanvinh:
I have installed 26 apps and the internal memory drops from 71 MB to 57 MB, tell me if i have done something wrong in the command things
[G1 Android Development] .PaNiNi.:
how do you know when your apps are installed properly on the sdcard?
[G1 Android Development] bearzeye:
Phone working alittle slow after SD card hack

ok guy i am not an expert or anything but i just noticed that after moving everything even the data/data to my sd card, performance does slow down a bit specially when you are install something from the market. but i have to say this, SD CARD HACK ROCKS (THANKS ALOT EVERYONE OVER HERE).

i have a 8GB class 8 sd card. have 61 applications and still have 54MB of memory free. anyways is it only me or did anyone else notice the delay when u are picking up the call. after pressing the send button it does take (sometimes) about 3 4 seconds.

yea can i ask a stupid question, i read too much about the radio in RC-33, (plz dont laugh) what is it :D
[G1 Android Development] ashshlay:
It has been said already but I'll say it again because nobody likes to read a long thread over all the way throughout it seems so hopefully this will help a few of you.

If you install apps after doing this procedure you will see your available memory on the device still go down because of the cache for apps that have been installed after the procedure is still growing when you install new apps. You can move the data/data cache to your sd card but some people are reporting issues. I have moved mine over both on jf1.31 and now on my jf 1.41 rc33 without issues other than the little bit of lag caused by my slower sd card.

If you want to keep your device memory free after installing apps to the sd and using this procedure you'll need to occasionally move the data/data file to your sd card as described in step 13.

If you have more than 20 apps and around 40megs or more of free system memory than you know the apps are on the sd card and everything should be working fine.

Thanks again to dwang, tempo, and everyone else who started putting this info out there for us all to use, complain about, and discuss. :)
[G1 Android Development] phuthanvinh:
Ashlay, thanks for clearing it up, so i know mine is working properly, i doubted because compare to other people who install like 90-100 apps and they still have more than 50 mb free space while mine contains 26 apps and it drops from 72 to 57 mb. But thanks anyways :) cheers
[G1 Android Development] ashshlay:
Radio is the part of the device that handles the communications for wifi, gsm, edge, bluetooth, etc. The radio is flashed with firmware and in this case was extracted so you can update it separately from the full rc33 update.
[G1 Android Development] evnldr:
After 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

I got a system/cd read-only Any ideas?
[G1 Android Development] Preech2003:
Possiable Answer to /data/data moving to SD Card performance issue

Ok, I have a theory. Ive noticed that some people have issues with moving Data/Data to the SD Card others have no problem at all.

OK...so the people that are not having problems, I've noticed are using a MicroSD card with a higher CLASS RATE (Transfer Rate) like "CLASS 6" & the people who are having any problems are using a microSD Card with a really slow transfer rate like "CLASS 4".

Example:

Just because there is no problems with looking at a Movies or Music Videos on a 16GB microSD CLASS 4 card dosent mean that there would not be a Transfer Speed problem with using a slow CLASS 4 Rating on a 16GBmicroSD card.

There is no 16GB MicroSD Card with a CLASS 6 Rating

available anywhere on-line as of now until TOSHIBA releases it in April:

http://www.toshiba.com/taec/news/press_releases/2008/memy_08_549.jsp

So everyone who has a 16GB MicroSD is using a "CLASS 4" Card.

If u think about it. It kinda makes sense cause the G1 needs Quick Direct access to the Data/Data Internal section for Apps to RUN RIGHT Period! Not just to run certain features in a App.

SO LETS DO A TEST!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

To Find out if my theory is correct because it will be a easy solution for eveyone just to PARTION a CLASS 6 SD Card (Example: A-Data 8GB MicroSD card Class 6)

SO EVERYONE WHO DID THE DATA/DATA/ MOVE TO THE SD CARD PLEASE LET ME KNOW IN THE NEXT POST IF YOUR PHONE HAD PROBLEMS WIT THE DATA/DATA MOVE OR NOT! & EVERYONE! EXPLAIN IF YOUR CARD WAS CLASS 4 OR CLASS 6??

**IF EVERYONE THAT HAD PROBLEMS WAS USING A "CLASS 4" SD CARD & EVERYONE THAT HAD NO PROBLEMS USING A "CLASS 6" SD CARD. THEN WE KNOW THE PROBLEM IS THE TRANSFER RATE (Transfer Speed)

I hope this is everyone's answer. Only time will tell. We'll just have to wait & see everyone's post's & find out.
[G1 Android Development] Zionator:
Dunno if this will work but try :

Open "DroidSans Tweak Tools in G1" u can get from market.

Select option 1. "Remount /system as Read/Write".

Tap "OK".

Click home key.

Now try ur command again properly won't work!!!
[G1 Android Development] pkmoazzam:
hi, i fellow your steps in the first post. all fine. app installed from the market works fine

after i fellow the above steps and when i installed app from the market, it says "sorry, there's not enough space to install this item"

here my results

adb shell

# busybox df -h

busybox df -h

Filesystem Size Used Available Use% Mounted on

tmpfs 48.4M 0 48.4M 0% /dev

tmpfs 4.0M 0 4.0M 0% /sqlite_stmt_journals

/dev/block/mtdblock3 67.5M 65.7M 1.8M 97% /system

/dev/block/loop0 1.5M 1.5M 0 100% /system/modules

/dev/block/loop1 3.1M 3.1M 0 100% /system/xbin

/dev/mmcblk0p2 3.9G 19.9M 3.7G 1% /system/sd

/dev/block/mtdblock5 74.8M 5.6M 69.1M 8% /data

/dev/block/mtdblock4 67.5M 1.1M 66.4M 2% /cache

/dev/block/mmcblk0p1 3.4G 95.6M 3.3G 3% /sdcard

# cd /data

cd /data

# ls -l

ls -l

drwxrwxrwx 1 1000 1000 2048 Feb 9 04:17 anr

lrwxrwxrwx 1 0 0 14 Feb 10 10:27 app -> /system/sd/app

lrwxrwxrwx 1 0 0 22 Feb 10 10:27 app-private -> /system/s

d/app-private

drwxrwx--x 1 1000 1000 2048 Feb 9 04:17 dalvik-cache

lrwxrwxrwx 1 0 0 15 Feb 10 10:32 data -> /system/sd/data

drwxrwx--x 1 2000 2000 2048 Feb 9 04:17 local

drwxrwx--- 1 0 0 2048 Feb 9 04:17 lost+found

drwxrwx--- 1 0 0 2048 Feb 9 04:17 lost+found

drwxrwx--t 1 1000 9998 2048 Feb 9 04:17 misc

drwx------ 1 0 0 2048 Feb 9 04:17 property

drwxrwxr-x 1 1000 1000 2048 Feb 9 04:17 system

#
[G1 Android Development] beagz:
I have a 8gb class 6 from transcend and the /data/data move is working properly.
[G1 Android Development] LucidREM:
did that really come up TWICE?
[G1 Android Development] danguyf:
I have an 8GB Class 6 and moving /data/data has borked things up every time. The first time I tried it I got constant force closes. The second time there were no errors, but every time I woke my phone the brighteness was reset to 0.
[G1 Android Development] danguyf:
Despite what others have said, a drop of 14 MB for 26 apps seems a bit extreme.

Do a "ls -l /data" in Terminal Emulator and you should see lines like:

lrwxrwxrwx 1 0 0 14 Feb 10 10:27 app -> /system/sd/app

lrwxrwxrwx 1 0 0 22 Feb 10 10:27 app-private -> /system/sd/app-private

If instead you see something like:

lrwxrwxrwx 1 0 0 14 Feb 10 10:27 app

lrwxrwxrwx 1 0 0 22 Feb 10 10:27 app-private

then your apps have not been moves to your sdcard.
[G1 Android Development] LucidREM:
still possible .. depends how much you use your phone .. my browser data is right now 16MB .. and the /data/data is on the phone so that cuts a big chunk from me right there .. other apps store data too so the more you use the apps the more they store .. i have so much in /data/data that my phone is at 26MB and i have over 100MB listed in the "Applications" under the menu
[G1 Android Development] evnldr:
Ok now i got " cannot preserve ownership of `/system/sd/app
[G1 Android Development] devildogg2001:
i tried this last night, and i think everything worked, but my phone wouldnt recognize that i had a card installed.. i am using the stock 1gb card that came with the phone, as i havent had time to go find another.. when i plugged into the computer it would say i was connected, but then when i safely removed from the computer, the phone would say please insert SD Card... can anyone help.. i ended up doing a wipe and formatting the card... to try to start from scratch..
[G1 Android Development] danguyf:
You're probably still okay. Which is to say, it worked and hopefully you won't experience any issues.
[G1 Android Development] speoples20:
I've noticed recently that if I go to the market under My Downloads it only shows a few programs. I have about 76 apps installed. Its not a big deal but I'm assuming its got something to do with the sd card hack. Anyone else have this issue?
[G1 Android Development] mmafighter077:
Thanks for this info. Yeah I just don't like to read through a long thread especially because I don't know what parts are outdated also I dont need to know 90% of what people are writing about. If I could search specifically one thread I would.

On top I have noticed apps crash a lot more but nothing I can't live with. I've noticed TASKMANAGER helps to speed up my phone. Now that I have more apps installed I noticed a lot more start up with the phone and automatically run in the background.
[G1 Android Development] phuthanvinh:
I'm wondering if I have redo all these steps over again if I happen to wipe and hard reset my phone.

Also, last time i tried the step 13th which moves all the app to the sd card

mkdir /system/sd/data

cp -rp /data/data /system/sd

rm -r /data/data

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

cp -rp /data/data /system/sd <<<<< after this command, the # disappeared and I have to retype the first two commands again, then it says /system/sd/data file exist. So without the # sign can i continue on the next two line or do I have to type "su" again?
[G1 Android Development] Preech2003:
Moving Data/Data To SD Card Solution Update

OK,So far it seems that people who are using a CLASS 6 SD Card arent having any problems. It is the people using a CLASS 4 SD Cards that are having the problems after moving data/data to the SD card.

I cant say for sure yet. I NEED MORE PEOPLE WHO HAVE DONE THE DATA DATA Move to the SD card to say if there having problems or not & what CLASS SD card are they using.

EVERYBODY POST THERE SD CARD CLASS & ISSUES WITH THE DATA MOVE!!

P.S. If u dont know the class of your SD card. Look at the brand name & model of your SD card & google it online. Most sites will state the CLASS rating of the SD card. Back in the day they never mentioned it cuz not alot of people understood or knew the class rating.
[G1 Android Development] Preech2003:
Hey Danguyf I think that your doing the procedure wrong. I dont think it had nothin to do with the SD Card. I think your doing it wrong from Terminal maybe.

LucidREM Im sorry to bother you but could you please post the directions

on how to do the Data/Data move to SD card strickly by using "Terminal" only. I know u havent done this on your G1 but i was hoping u did it in Terminal & then reversed it & left it alone.

AND maybe you could give the basic Terminal commands for moving caches when we want to do it ourselves. Im tying to learn the Terminal cmds so i can moves each and every app cache to the SD myself.

Here's the ADB Data/Data Directions For Quick Access:

EDIT: Would it be the exact same lines as above except for the # symbol infront of each line??
[G1 Android Development] pkmoazzam:
yeah, but i don't know what are these for. but you know these?
[G1 Android Development] apfroggy0408:
Since everyone is reporting well about the whole cache being moved to sd with class 6 cards I'm going to try it out. How do I go about returning the caches from my sd to the phone? I used modymygphone to install to sd if that matters.
[G1 Android Development] coolbho3000:
Any reason this won't work on ADP firmware?
[G1 Android Development] bigl34461:
is this really necessary?

You have to excuse me, but I'm new to this. I would like to have the option to save apps to my sd card, but i'm a little nervous. Right now i have an 8gb class 6 card. If i do this then I decide to upgrade to a 16gb will i mess up my phone if i take the card out? Will google ever come out with a official update so we don't have to do all these steps? :confused:
[G1 Android Development] Karolis:
Since I'm about to flash to JFv1.42_ADP1.1h, I second that question -- will it work?
[G1 Android Development] MontAlbert:
i just updated to 1.42 ADP JF but am having issues moving the tunewiki cache-

when i do the commands

cd /data/data/com.tunewiki.lyricplayer.android/cache

rm -R webviewCache

mkdir /sdcard/cache/tunewikiCache

ln -s /sdcard/cache/tunewikiCache webviewCache

it doesn't let me do the cd first bit. i have used to to make it create a cache. when i go into ls /data/data/com.tunewiki.lyricplayer.android there is no cache folder/file there.

anyone else having this issue?

thanks
[G1 Android Development] USNCorpsman:
so i followed all the steps fine just fine, the SD card is properly formatted, i'm using a class6 8gb card, however when i go to market and try to download an app, it's telling me there is not enough space? what did i screw up? running JF1.41 RC33

Microsoft Windows XP [Version 5.1.2600]

(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Naris>adb shell

# busybox df -h

busybox df -h

Filesystem Size Used Available Use% Mounted on

tmpfs 48.4M 0 48.4M 0% /dev

tmpfs 4.0M 0 4.0M 0% /sqlite_stmt_journals

/dev/block/mtdblock3 67.5M 67.2M 264.0K 100% /system

/dev/block/loop0 1.5M 1.5M 0 100% /system/modules

/dev/block/loop1 3.1M 3.1M 0 100% /system/xbin

/dev/mmcblk0p2 2.4G 14.6M 2.2G 1% /system/sd

/dev/block/mtdblock5 74.8M 6.7M 68.0M 9% /data

/dev/block/mtdblock4 67.5M 1.1M 66.4M 2% /cache

/dev/block/mmcblk0p1 5.0G 40.0K 5.0G 0% /sdcard

# cd /data

cd /data

# ls -l

ls -l

drwxrwxrwx 1 1000 1000 2048 Sep 13 12:54 anr

lrwxrwxrwx 1 0 0 14 Feb 11 12:00 app -> /system/sd/app

lrwxrwxrwx 1 0 0 22 Feb 11 12:02 app-private -> /system/s

d/app-private

drwxrwx--x 1 1000 1000 2048 Sep 13 12:53 dalvik-cache

lrwxrwxrwx 1 0 0 15 Feb 11 11:46 data -> /system/sd/data

drwxrwx--x 1 2000 2000 2048 Sep 13 12:53 local

drwxrwx--- 1 0 0 2048 Sep 13 12:53 lost+found

drwxrwx--t 1 1000 9998 2048 Sep 13 12:53 misc

drwx------ 1 0 0 2048 Sep 13 12:53 property

drwxrwxr-x 1 1000 1000 2048 Sep 13 12:54 system

#

# cd /system

cd /system

# ls -l

ls -l

drwxr-xr-x 1 0 0 2048 Aug 1 2008 app

drwxr-xr-x 1 0 2000 2048 Aug 1 2008 bin

-rw-r--r-- 1 0 0 1488 Aug 1 2008 build.prop

drwxr-xr-x 1 0 0 2048 Aug 1 2008 etc

drwxr-xr-x 1 0 0 2048 Aug 1 2008 fonts

drwxr-xr-x 1 0 0 2048 Aug 1 2008 framework

----rw-rw- 1 1000 1000 321 Jan 8 16:27 init.rc

drwxr-xr-x 1 0 0 2048 Aug 1 2008 lib

drwxr-xr-x 1 0 0 2048 Feb 9 16:02 lost+found

drwxr-xr-x 1 0 0 2048 Aug 1 2008 media

drwxr-xr-x 1 0 0 36 Jan 1 1970 modules

drwxr-xr-x 6 0 0 1024 Feb 11 11:38 sd

drwxr-xr-x 1 0 0 2048 Aug 1 2008 sounds

drwxr-xr-x 1 0 0 2048 Aug 1 2008 usr

drwxr-xr-x 1 0 0 948 Jan 1 1970 xbin
[G1 Android Development] LucidREM:
if you have the folder showing twice it tells me something's screwy with the card .. not really sure what exactly .. but the folder should only be listed there once
[G1 Android Development] LucidREM:
the way i would do it thru "Terminal" is:

$su

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

#rm -r /data/data

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

i actually do the first part "#busybox cp -a /data/data /system/sd" from week to week as pretty much a backup of my data .. and i may or may not create the link .. my data is starting to crowd the phone a little .. would be really nice i think if they made a class8 card .. probably eliminate everyone's issues with moving the data
[G1 Android Development] LucidREM:
is the "mkdir /system/sd/data" messing people up?? i'm wondering if the folder itself is causing problems with permissions etc .. if you do "busybox cp -a /data/data /system/sd" it creates the folder and copies the files
[G1 Android Development] .PaNiNi.:
thank you so very much! you are indeed the best!:D
[G1 Android Development] .PaNiNi.:
that was going to be my next question! you, my friend, are a genius :-) and i think i love you! lol
[G1 Android Development] LucidREM:
wow .. internet love - woohoo!! - heheh
[G1 Android Development] .PaNiNi.:
ummm sorry to bother but now since i did the /data/data alot of the apps wont open and force close :-/ is this something I did wrong?
[G1 Android Development] .PaNiNi.:
nevermind i just reversed the /data/data and they are working again!
[G1 Android Development] USNCorpsman:
bahhh... i read the whole forum and no one answers mah question!!! :( oh noes!

oh... paninniininnii my mom lives in kissimmee now, she moved there last year
[G1 Android Development] .PaNiNi.:
:-) i just moved here too!
[G1 Android Development] dwang:
I wouldn't recommend that people move /data/data to the sdcard. From my experience it causes file corruption problems, especially if you turn the phone off when /data/data is being written and then that causes all sorts of crashes with applications.
[G1 Android Development] .PaNiNi.:
thanks i wouldnt recommend it either especially with my experience I just had!
[G1 Android Development] LucidREM:
as stated there are mixed reviews about moving /data/data to the EXT2 partition .. one big thing is the class rating of the card you have .. you absolutely want to have class6 if you are going to attempt this move .. you can also try moving sections of /data/data instead of the entire thing at once
[G1 Android Development] .PaNiNi.:
i have no clue what class i have

also pacman still isnt working and meetme force closes but i noticed its not in the market anymore so could that have something to do with it?
[G1 Android Development] LucidREM:
i've been searching thru forums here .. seems a handful of people are experiencing this problem .. have we isolated something they have in common? fixed the error?
[G1 Android Development] LucidREM:
the MeetMe app has been pulled from the web completely .. not even on the developers site .. should probably be uninstalled

someone else mentioned that pacman is installed in app-private and has space recognition problems .. not sure all the details .. i have pacman and it's been running just fine
[G1 Android Development] spy_owl2:
Correct - I had originally moved just the app directory to SD card. This resulted in pacman refusing to install due to space error as stated above.

I then moved both app-private and data/data to SD card and tried installing pacman again - it installed without any issues.
[G1 Android Development] .PaNiNi.:
thanks i am just going to uninstall and reinstall
[G1 Android Development] danguyf:
No. I know my way around the command line, and I've tried it a few different ways.
[G1 Android Development] LucidREM:
do you really have only 40k on your /sdcard?
[G1 Android Development] USNCorpsman:
aye... freshly formatted it
[G1 Android Development] oreoOozZz:
The first time i tried it, i downgraded to RC29 from RC33, got root, did the modified recovery img, did JF's 1.42 Update, did the apps to sdcard then went to install the BUUF theme and got stuck at the 2nd bootup screen with the flashing android...it just kept looping. I didnt know what to do so i went back to RC29 and started all over except this time i did RC29, root, recovery img, JF's V 1.41 RC33 Lite, BUUF Theme Install AND Finally applications to the sdcard...Everything worked out perfect this time. Thanks for the hardwork and great write-up.

:)
[G1 Android Development] samysam05:
I have a class 2 microSD, im not even going to try moving the data.
[G1 Android Development] Zionator:
Lol i have looked all over my 2 sdcards and can't find any class thingi so how do i find out about that???
[G1 Android Development] t1n0m3n:
Class ratings are for microSDHC (4GB to 32GB.) If you have a regular microSD (4MB to 4 GB) card you won't have a class rating... You might see a number like 66x, 133x or something instead. It is usually on the packaging (if at all), but not on the card.
[G1 Android Development] oreoOozZz:
No wonder why i was going nuts before looking for a class number for my MicroSD 2GB Card and i couldnt find nothing.

;)
[G1 Android Development] Preech2003:
Actually thats a very good theroy. I might have to test this. Did it work for you. When you did the commands: "busybox cp -a /data/data /system/sd"

& the folder was created & the files got copied, did u have any issues?

Did your "Data/Data" move without the "mkdir /system/sd/data" commands

work flawlessly for you??

Cause im going to go head & give this a try. Here's the Moddified Step 13. Is it still 4 steps or 3 steps now like below. Is this right??:
[G1 Android Development] Binary100100:
Hey if I update to JF v1.42 RC33 will I have to redo this process to run the apps off my sdcard? Should I even bother updating to v1.42?

Thanks!
[G1 Android Development] t1n0m3n:
Also, 4GB microSD cards are rare. The only manufacturer that I know of that recently made one is PNY. So it is likely that anyone with up to 2GB is microSD and 4GB and up is microSDHC.
[G1 Android Development] t1n0m3n:
I just upgraded to 1.42 and I had to redo the apps thing... So I wiped and switched to ADP1.1 JF1.42 instead. (Since I had lost the mount point anyway.)

Someone might come out with an edited mountd.conf and init.rc JF1.42 (like they did JF1.41) so it may be worth it to wait a bit.

Might keep an eye on http://xdaforums.com/showthread.php?t=480582 for an update.
[G1 Android Development] Binary100100:
Thank you so much! OMG I was just about to risk it. It was a pain in the butt to do it the first time. I thought I remember someone making a batch file to simply the process but I can't find them anymore.

I guess I'll just wait until a new RCxx version comes out unless it's absolutely necessary.

Thanks again.
[G1 Android Development] LucidREM:
i think a lot of problems are stemming from permissions or something .. not sure .. just my hunch on this .. could be way off tho
[G1 Android Development] samysam05:
i have a sandisk microSD 4 gig... had it for 2 years almost, ever since my wing. It said class 2 right on the back cover.
[G1 Android Development] apfroggy0408:
I keep getting force closes with my class 6 transcend 8 gig when I move the entire cache over. Sigh.
[G1 Android Development] t1n0m3n:
OK, I tried to move /data/data over to my SD card... I got force closes in the market. So I wiped and updated to JF1.43 ADP1.1 (cause I noticed it was out already.)

Then I followed your procedure including the /data/data part (notice that I did not do anything to the G1, not even log in with my gmail account.) Everything was done via ADB.

Once I got /data/app, /data/app-private, and /data/data moved over to the sd card, I then logged into the G1, let it sync, and then started installing apps.

It worked perfectly.
[G1 Android Development] t1n0m3n:
Also, I don't know if it was the 1.42 to 1.43 update or moving the /data/data over pre login, but my G1 seems about 2x faster than when I was on 1.42 and only had app and app-private moved to the SD card.