yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] androidmonkey:
when doing

#copy.sh app

#copy.sh data

is data the cache on the phone? If so, is it best to leave the cache on the phone for performance?

ALSO,

How can I verify the apps are being installed on my SD card?

EDIT:

Its late so I guess nobody has read my post. I am having some weird things happening, not sure if it’s the apps to sd.

1. I started customize my desktop, moving/creating icons, etc. I then tried to change my wallpaper. It would say "Setting wallpaper" but nothing happened. I then restarted the phone and the wallpaper showed up after restart. The icons that I moved and created were gone. I then tried changing my wallpaper and it changed in real time.

Any ideas why the icons didn’t save? A glitch for that and the wallpaper?

2. I set my Alarm clock to wake me in the morning and put a alarm clock icon on the desktop. I restarted my phone and when the home screen came back up the alarm clock icon wasn’t there but the other icons I created were. I then got a alarm clock "Force Close" error, I didn’t even click on the alarm clock icon. I then tried opening the alarm clock and the error keeps coming up. I restarted my phone 3 times and the error keeps coming up. Other apps seem to work just fine

Any ideas what going on with my alarm clock? Are these apps on the SD card are did they stay on the phone internal memory?
[G1 Android Development] LucidREM:
this modification to the JF update.zip simply automates the process .. the sym links are created for you directing the phone to the EXT2 partition .. when you look at the phone under /data/app you will still see all the files
[G1 Android Development] bigl34461:
Ok so I had everythng working on my phone and my sd card became unmounted. so when I put the card back in the phone went into the endless loop. So I did everything over again. Copied the apps over, but when I try to copy over data the phone just freezes. If I try to restart it goes into the endless loop. Do I have to to format the ext2 partition again to clear up space?
[G1 Android Development] androidmonkey:
I see, thanks :)

Can you take a look at my issue posted in post #464. Thanks.
[G1 Android Development] jgu71424:
???????

can someone tell me what is the best program to partion my sd card through my phone. I have Vista business 32-bit....

Thank YOU:)
[G1 Android Development] androidmonkey:
I read that several people have used Paragon Partition Manager for Windows. I used Ubuntu Linux. You could download a Live CD for Ubuntu.
[G1 Android Development] jgu71424:
ok i'll use Ubuntu because i used Paragon Partition Manager but it wont let you partion anything unless you buy the full version and right now im broke lol

Thank YOU
[G1 Android Development] xdavidn88:
Hi Lucid, can you please take a look at post #460 for me?
[G1 Android Development] androidmonkey:
Hey xdavidn88.

1. You have to flash JFv1.42 then JF1.42MOD which is on this thread. The MOD does all the things that dwangs thread states but LucidREMs MOD does this automatically.

2. Yep, enter those lines in terminal.

3. Like I said before, the MOD does everything automatically. Thank LucidREM for that :)
[G1 Android Development] LucidREM:
all i did was automate the process that dwang set forth .. so the script file i created (copy.sh app) does the work for you .. but it's the same process .. once you have apps to SD you would want to use my further updates to preserve the process
[G1 Android Development] xdavidn88:
I used Paragon Partition. It was so easy... it was like

1) choose G1 sd card

2) choose size to partition

3) final
[G1 Android Development] xdavidn88:
Ok, so I did the steps, copy.sh app and copy.sh data

for app, it showed line - done and a 2nd line (something private) done

for data, it only showed 1 line - done, I'm hoping its ok?

also my fade to blue theme got deleted, so I'm gonna go back and download it. (custom theme)

also on the market my apps show as free instead of installed, small sacrifice to have unlimited space for apps!

EDIT: when I go to install a app to test the apps to sd (pac man game), it says "Sorry, there's not enough space to install this item."

Please help!!!
[G1 Android Development] JoeSzymkowicz:
I tried this the other day and it gave me errors when I tried running the shell script, saying it could not copy the folders, but then it said "done". Shortly after exiting terminal, my phone restarted and then got stuck in the "android intro screen loop".

I followed the instructions to the letter, so I'm not sure why it's not letting me move the folders. Help.
[G1 Android Development] LucidREM:
if you're getting errors there's a very good chance that you already moved your apps/data over to the card .. if you try to repeat the process it won't work properly
[G1 Android Development] xdavidn88:
Lucid, when I go to install a app to test the apps to sd (pac man game), it says "Sorry, there's not enough space to install this item."

Please help!!!
[G1 Android Development] JoeSzymkowicz:
I tried this the other day and it gave me errors when I tried running the shell script, saying it could not copy the folders, but then it said "done". Shortly after exiting terminal, my phone restarted and then got stuck in the "android intro screen loop".

I followed the instructions to the letter, so I'm not sure why it's not letting me move the folders. Help.

EDIT: I could possibly do this again to get the exact error messages if anyone needs them. Tried it twice and the same thing happened both times.
[G1 Android Development] LucidREM:
if you're getting glitches try "copy.sh undodata" .. all the app files are on the SD card and not on the internal memory .. i'm not sure why it's force closing

try undoing the data move .. and if you don't have a class6 card i wouldn't try moving the data .. only apps
[G1 Android Development] LucidREM:
seems to be something common there .. i read some posts a few weeks ago about the same issue .. not sure how they resolved the problem .. how big is your EXT2? one person attributed the error to it being greater than 2G i believe
[G1 Android Development] :
# 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.1M 456.0K 99% /system

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

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

/dev/block/mtdblock5 74.8M 20.9M 53.8M 28% /data

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

/dev/block/mmcblk0p1 978.6M 4.0K 978.6M 0% /sdcard

#

I get this after my card is partitioned on paragon its a 2 gig card why wont mmcblk0p2 show or is it supposed to, what do I do from here.
[G1 Android Development] xdavidn88:
3.7gb for ext2

3.6gb for regular or whatever its called. (not planning on adding media so don't need a lot of space)

i did the copy.sh undodata and i can now download apps... is there a fix for this or just do whatever works for now?

does saving data to the SD save a lot of space or not significantly?
[G1 Android Development] LucidREM:
the line stating "done" was put there to echo something to the screen to let you know what was happening .. i haven't "perfected" the script to the point where it becomes self aware .. that may never happen .. but it does automate the process of putting apps on SD .. if you run the script more than once it will not copy the files a second time
[G1 Android Development] androidmonkey:
Thanks Lucid for the suggestion. I ended up doing a wipe and running just the copy.sh app command.

2 more questions

1. Does the "copy.sh app" consist of just downloaded apps or built-in apps also (alarm clock, browser, etc)

2. What does the "copy.sh data" consist of? cache? built-in apps?
[G1 Android Development] LucidREM:
as far as i know .. the fix is to resize the EXT2 partition less than 2G .. i'm using 1.5G and most people are perfectly happy with 500M or 0.5G

G1 has 74M for apps / data

EXT2: 500M for apps / data

seems like more than enough for me
[G1 Android Development] xdavidn88:
FU#K!!! I did not read this part...

i have 8gb class 6.

so does saving data to the SD really save that much more space? Should I try and go back and repartition it?
[G1 Android Development] androidmonkey:
I think its recommended that the max size for ext2 is 2GB, 1.5GB to be safe.
[G1 Android Development] LucidREM:
copy.sh just automates the info for moving apps and/or data to SD .. all the commands are contained within .. whatever is in /data/data gets moved with data .. whatever is in /data/app and /data/app-private gets moved with app because they need to be moved together (from what i've read) .. some apps are built into /system/app and they do not get touched
[G1 Android Development] LucidREM:
i would just resize the partitions .. not delete the whole thing .. turn the phone off .. put it in a card reader .. make the changes .. viola!
[G1 Android Development] LucidREM:
some variables i don't know .. do you have my mod'd update.zip? did you put the modified init.rc and mountd.conf files to the phone? did you create the /system/sd folder? the EXT2 partition won't automatically load unless the modifications have been made .. if the modifications were made and it doesn't show up then the card is probably not partitioned right
[G1 Android Development] xdavidn88:
I did the whole thing with G1 and usb lol... my computer does not have a card reader slot (shame I know)

I will go into Paragon Partitioner and repartition it I guess?
[G1 Android Development] androidmonkey:
Yes, I understand it’s a script. What I am curious about is what is normally stored in /data/data? Since I am not using the copy.sh data, what is actually in this folder?

/data/app and /data/app-private are downloaded applictions

/data/data - what is stored here?
[G1 Android Development] LucidREM:
any and all information the apps use to run .. cache for one thing .. when you browse the web the cache is stored within /data/data somewhere .. i don't know the extent of the info from one program to the next .. for the next update.zip i'm going to modify the script to move just the cache to the SD instead of the entire /data/data .. some people like doing that
[G1 Android Development] xdavidn88:
AHHHHHHH, Paragon Partitioner Trial does not allow me to redistribute the 'free space'.

Will I really save that much more space by moving data to SD?
[G1 Android Development] JoeSzymkowicz:
The error it's giving me is cannot create directory 'system/sd/app': Read-only file system. The same thing for the app-private folder. Any reason why it would be doing this?
[G1 Android Development] LucidREM:
i don't have /data/data moved .. i still have 40M free .. if i moved it i could get between 50-60M free .. depends on how much you have in the cache files .. if you clear your cache out periodically from things like the browser you should be great on space
[G1 Android Development] LucidREM:
did you create the EXT2 partition properly?
[G1 Android Development] xdavidn88:
Lucid, can you give me a quickie on what apps use data/data?

I know browser does but what else?
[G1 Android Development] xdavidn88:
also, do you think I should use this http://androidcommunity.com/forums/f28/moving-caches-made-easy-12424/

to move my cache?
[G1 Android Development] androidmonkey:
would be nice if someone came out with app that manages the cache automatically, or is there something out there already that does this?
[G1 Android Development] JoeSzymkowicz:
I think I found my problem. I'm using Acronis Disk Director to format the card. It seems to partition the Fat32 segment fine, but when I format the EXT2 part, and restart the computer, it displays the EXT2 partition as "Format: None (Linux native)." Is it still holding the EXT2 format and just not displaying it as EXT2?

Odd. I tried using a Linux LiveCD, but it wouldn't let me partition the card for some reason. I don't want to reformat my laptop for this one simple task. Anyone using any other Windows softwares to partition their card?

UPDATE: VERY INTERESTING! I have the card divided 611MB FAT32, 1.3GB other partition. I'm keeping the 611MB segment FAT32 the same format, but I tried reformatting the 1.3 segment FAT32, and it didn't keep that partition either. I'm going to keep working on this but I have a feeling it's something I'm doing wrong. Does the EXT2 partition need to be a primary or logical partition?

UPDATE: I tried partitioning as EXT2 and making it a Primary drive. That didn't work either. Rebooted and it still sees it with "None Partition".
[G1 Android Development] androidmonkey:
Did you unmount the partitions before you tried to format them in Linux? Are you using gParted? I would delete all partitions and start over.

Partition 1 - FAT32 - Primary

Partition 2 - EXT2 - Primary - 1 to 1.5 GB
[G1 Android Development] JoeSzymkowicz:
WOW! The tale gets stranger. I tried making the EXT2 partition first on the SD, and then making the FAT32 segment behind it. Rebooted. Now it sees the EXT2 partition and sees what is supposed to be the FAT32 partition as None Partition. GJ Acronis. Anyone have any suggestions?
[G1 Android Development] androidmonkey:
The first partition should be FAT32.

The first time I did this it was the second partition and the phone didn’t see my update.zip on bootup. After moving the FAT32 to the first partition, it worked.

Did you give Ubuntu LIVE CD a try again?
[G1 Android Development] xdavidn88:
Google Paragon Partitioner. Download the trial personal version.

It's so freaking easy to use. I'm on windows vista.

I also used my phone via usb since I do not have a card reader slot.

This sd to apps was 100x easier than rooting the phone.
[G1 Android Development] JoeSzymkowicz:
I just tried Paragon. It seemed to work...

I partitioned the card, I restarted the machine, and ran Paragon again just to make sure it still showed EXT2; it did. Pulled the card, ran the app script with the original result; "could not create folder". Then it restarted my phone and locked it at the G1 logo. Was pretty scary when I tried reflashing the MOD rom, and it still wouldn't boot. I went back to the 1.42JFv and not going to mess with it anymore.

Hopefully Google will come out with a patch that lets you install apps to the SD card within the next 6 months or so. Would rather not completely brick a phone to where it's not recoverable.

It was worth a try though. Thanks to all.
[G1 Android Development] xdavidn88:
that's odd. There are people that some steps don't seem to work while others it do work.

I'm just glad I've been lucky to have everything work so far for me.
[G1 Android Development] BuntasConstellation:
If I'm already running the latest JF RC33 and have an SD with the EXT2 partition, can I skip step 2 and move to 4?

Thanks
[G1 Android Development] xdavidn88:
No, you need to dl this type of Rc33, it has the files necessary for the commands to work.
[G1 Android Development] BuntasConstellation:
Cool. Thanks for the info!
[G1 Android Development] BuntasConstellation:
Anybody able to do this successfully with a class 2 8GB sd?
[G1 Android Development] androidmonkey:
Class 2 will perform very poorly, you will hate it. Class 6 minimum.

All downloaded apps will be on the SD, that’s the point :) Why would you remove the SD anyway? When a new version comes out, you will have to wait for JF and LucidREM to update their mods. As long as you dont do a wipe, the apps should stay on your SD on an update. LucidREM, please correct me if I am wrong.
[G1 Android Development] shaneaus:
I use a class 2 8GB card without any problems. However, if I were you I would go with Lucid's advise and get a class 6 8GB card. They are only about $20.00 now on the net. I only used my class 2 because it was what I had on hand.

I can confirm that the apps stay on the card and will work after you update your phone. I have re-flashed my phone several times without any problems. If an update comes out you install it, enter the commands:

$su

#copy.sh app

And restart (I do this because I have had issues with the home page if I didn't). After it restarts you should see all of your apps available for use.
[G1 Android Development] MontAlbert:
sorry to ask a silly question....but i don't have time to read the last 40 pages (last time i checked this thread it was at 12 pages i think)- 2wk old baby to go with a naughty 3y.o. girl now......

i currently have apps to ext on sdcard- no data and want to leave it that way.

I have recently stuffed up my accelerometer somehow- so using lucidrem i would do a wipe and then install his update. once his update is installed i go to term. emulator and type in su, then copy.sh app and viola, all links and folders etc are moved?

too easy if it is so........my wife will be happy if i spend less time on the phone.....
[G1 Android Development] muchasGracias:
Yes. If your Ext2 partition is healthy and working now, just put the LucidREM modded JF_RC on your FAT32 partition as update.zip, then restart phone in recovery mode, wipe, reflash, reboot, go to terminal and type su, then type copy.sh app, and restart. that should do it. good luck
[G1 Android Development] shaneaus:
AND, all of the apps that were previously installed on your ext2 partition will still be there and after the restart will be available for use.
[G1 Android Development] LucidREM:
it can be done for apps .. but definitely would not recommend moving the data over to that card .. you may notice a slight slowdown with class2 but only moving apps it shouldn't (notice i don't say won't) freeze up on you
[G1 Android Development] androidmonkey:
I don't think anyone said a class 2 wouldn't work, just that the performance would be very poor.

Yep, that should do it. I had a issue where I did both apps and data shell scripts. I think the data script messed up the built-in Alarm clock app so I had to do a wipe. When I restarted, I ran just the Apps script and all my apps showed up again.

Anyone else having issues with the Data script?
[G1 Android Development] :
When I move data to sd it says I need to wipe and could be unstable and asks if im feeling lucky why is that lol, do I need do something else, apps move over just fine.
[G1 Android Development] jgu71424:
???????

quick question does anyone know how long it takes to partion?
[G1 Android Development] :
With Paragon about 2-4 minutes
[G1 Android Development] jgu71424:
cool thanks:)
[G1 Android Development] androidmonkey:
What ask you that?

Do you mean the actual partition command or the entire process? The actual partition command takes 5-10 seconds. The partition process can take 5 min to 1+ hours depending on how computer savvy you are.
[G1 Android Development] jgu71424:
???????

I am using Paragon Partition Manager running vista business 32-bit and while i waas trying to format i got an error that says

"OPERATION FAILED File system has allocation errors due to cross-linked files. Run OS built-in tools for checking and correcting this kind of errors Error source: Hard Disk Manager

Error code: 0x10018"

Any got this error before or if someone know what this means.

NEVER MIND GOT IT WORKING BY JUST FORMATTING TO FAT32 THEN AFTERWARS DID THE WHOLE PROCESS AGAIN
[G1 Android Development] :
Yeah thats what I thought, but it actually asked me that, I think it could of been something Lucid implemented, maybe he can answer it, until then Im keeping data on the phone and not moving it over.
[G1 Android Development] :
Do I have to keep copying apps to the sdcard or is the copy a one time initial thing. Cause apps seem to be downloading to my phone again now, and if I do a copy again will that result in an error cause of the apps that are already on my card, and/or can I copy each app one by one(please give example if possible) to the card.
[G1 Android Development] xdavidn88:
I did the process and I have dl'ed over 30mb of apps, all saved to the SD memory.

I checked by...

(terminal)

$su

#busybox df -h

My internal memory seemed to be slowly going down. it was at 61 or 59 and now it's down to 53, I'm guessing cause some apps have data (since I didn't move data). Oh well, I'll sacrifice 6mb of space to have 110+ apps lol...
[G1 Android Development] :
That just may be it
[G1 Android Development] :
:) Hoping lucid takes a look at this for me.
[G1 Android Development] free_man:
I have my 16gb class 6 microsd card

I'll flash my phone in a few minutes or..... when my wife will allow me to.
[G1 Android Development] androidmonkey:
running the shell script is a one-time thing. What are you checking to see that the apps are being installed on your phone?

What is asking you "are you feeling lucky?" Are you sure you are using LucidREM files?
[G1 Android Development] :
Im having trouble moving my data to my sdcard it shows a warning saying android is unstable and may not continue to work correct, and it has an option to click "Im Feeling Lucky" Basically I had to reload Lucid's rom and start over, and Im affraid to try again, I want to know what Im doing wrong.
[G1 Android Development] androidmonkey:
Never seen that message before...

Anyone else see that before?
[G1 Android Development] khoaitaychienvn:
I got some apps that I can't uninstall as well as replace a new one. It's just there and I can't do anything with it. It doesn't even show its icon. When I replace the new one, it shows that I have insufficient memory but of course, I can install many other apps.

So here is the screen shot, it's the one in the white square

And when I run it, it shows a force-closed notice.
[G1 Android Development] androidmonkey:
Yea, I had a similar problem with Pac-man, one of the only protected apps I have. It showed a white icon. I had to uninstall and reinstall for it to work again. Have you tried uninstalling with the main Application Manager, try ASTRO also.
[G1 Android Development] xdavidn88:
No siree.

[filler]...
[G1 Android Development] khoaitaychienvn:
Yep, I did all of that but still no luck.

When I tried to delete with Terminal, it showed "Stale NFS File Handle"
[G1 Android Development] androidmonkey:
Hmm...

Your best bet is to find a nix guru :)

http://www.cyberciti.biz/tips/nfs-stale-file-handle-error-and-solution.html
[G1 Android Development] Mr. Moe:
Move everything to SD card and now I can't get Open home or dxtop to work. it just keeps force closing. any ideas what the prob might be, or a fix?
[G1 Android Development] juangil:
try moving data back to internal memory:

su

copy.sh undodata
[G1 Android Development] androidmonkey:
Open Home has (or had, not sure if its fixed yet) that forced closed.
[G1 Android Development] dialdayo:
At the moment i only have a class 2 16 GB micro sdcard..i just ordered a 8 Gb class 6 micro sd card, but i was wondering if the apps would run smoothy if i just kept all data on the phone, and just stored apps on the sd card? Or is it recommended that both data and apps should be moved to the SD card?
[G1 Android Development] androidmonkey:
I guess its worth a try. Many people recommend a class 6 but it looks like 16GB doesnt come in class 6 (at least on Newegg). I only have my apps on the SD card because moving data screwed up the alarm clock for some reason.

Let us know how the class 2 works out.
[G1 Android Development] xdavidn88:
Open Home had a force close problem but that is now solved.

From what I've seen

, class 2 is fine for APPS to SD. Class 2, however, is not recommended for DATA to SD. I've read that it is too slow or something of that nature.

You can go ahead and keep using the 16GB, and use this option for saving DATA (cache) to SD.

Birdman's Scripts for CACHES to SD

Cache = data

It worked for me since LucidREM's DATA to SD required that my ext2 partition be a maximum of 2GB, but I had it at 3.7GB so the DATA to SD did not work.

Using Birdman's scripts, you can use a lot of space if you want for the ext2 partition.
[G1 Android Development] shaneaus:
I have a class 2 8GB card. My phone works great with the apps moved to the ext2 partition. But, if I move the data I have numerous problems. Mostly with apps not working or force closing.

I don't know if it is the slower sdcard or the programs that are causing the problem.

But, I can state without reservation that with only the apps on the class 2 card it works great.