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

I did the upgrade on JF 1.5 from your old script to new one.

One thing worths mentioning on 1st page instrucution.

The copy should be done in recovery terminal. For those who are running your new app2sd in this thread, the /data is actually an union mount of original /data and /system/sd.

In your update instruction, /data is supposed to be the original mounted system device, not ext2 partition on sd card.

So either user has to do the copy in recovery terminal, or mount the system data block to another temp directory and copy.

By the way, after the upgrade, I found some of my apps, which are on sd card, were force-closed. Application is the only part I chose to store on sd at the first beginning, not sure why this happened. Seems like cache problem, I reinstalled one by one and now they are all good.

Thanks for your nice work !
[G1 Android Development] ragingthai1234:
i did all the steps with no problem no error or ne thing but when i was done every time i tried to click copy apps to SD in appstosd it auto reboot my g1 is this suppose to happen? and i dont understand about the memory so my internal memory suppose to go down? not the sd memory?

can ne one help plz sorry im a noob
[G1 Android Development] Henchman:
After using the new script, the market would not download anything at all.

I tried numerous wipes and re-flashes.

Went back to the old script, and market is fine now.

However some applications refuse to install. Giving a "not enough Memory" message.
[G1 Android Development] kevo:
Busy thread ate my post :s - either that or no one likes me :(

But my card hasnt arrived yet, so I thought I'd wait to repost until after yesterdays server slow down.

If this has already been answered could someone point me to where? I've been through the thread.

Also is the version of a2sd that is on the market the latest version, as in this thread? I'd like to buy it to give marcus a few pennys for all the support hes giving.
[G1 Android Development] LucidREM:
there's an entire thread about this very thing .. bottom line .. a FAT partition does not carry the needed permissions to keep your apps functioning .. so the simple answer is you cannot use XP .. however .. you can get a copy of linux that runs inside XP like a program instead of a new OS .. without the permissions set your apps would cease to function
[G1 Android Development] jesselockwood:
fsck shows errors

Was having problem installing programs so i ran fsck and the ext2 partition had lots of inode errors.

Is anyone else having these problem have tried several times but after installing and uninstalling a few programs it quickly shows corruption.

Jesse
[G1 Android Development] borodin1:
I have experienced some serious slow down last night. (Dude's 1.1, freshly reformated/wiped, app, app-private and dalvik on ex2). Had to reboot the phone. Getting random force-closes everynow and then. Weird.
[G1 Android Development] Shaunsational:
i had some problems getting this to work, but i finally did after wiping which i really wish i didnt have to do...

anyway i tried to restore a nandroid backup so i could just copy all my apps & messages back on but it doesnt restore my apps at all now

anyone have any clue as to why my backup isnt working like it has flawlessly in the past?
[G1 Android Development] MarcusMaximus04@gmail.com:
Right you are! Fixed the first post. Although that would only effect people who skipped the wallpaper fix since that no longer mounted unionfs on /data, it mounted each directory independently. For the second part, some apps don't seem to like being switched to being mounted on a different device(i.e. the /data unionfs instead of the /data/app unionfs.
[G1 Android Development] MarcusMaximus04@gmail.com:
In regards to the card, while they use different methods, the ext2 partition set up is the same for both, so just copy everything over to the new card. I'm not sure if LucidREM has any scripts that run without the user telling them to(LucidREM: could you take that part?) but as long as it doesn't, there shouldn't be any conflict. I

I see no reason why settings would be lost in the transferbut just to be safe, you could use the "backup for root users" from the market.

For moving replacement homes and such back, I'd try it and see if it works as is and if it's slow or anything try moving it to the internal memory(in other words: I don't use replacement home apps so I'm not sure).

To identify where an app is installed, you'll have to check whether it's under /system/sd/app or /system/intmem/app(should be somewhat obvious which one's which). I'm eventually going to try to automate that task but it will be a fair amount of effort so could be a while.
[G1 Android Development] pshadey:
Server Issue resolved???

has a method to resolve the "a server error has occurred. Retry, or cancel and return to the previous screen" issue been discovered. preferably with out having to wipe and re-flash. Any help would be appreciated
[G1 Android Development] MarcusMaximus04@gmail.com:
I'd try reformatting the sd card. Backup your apps and the FAT32 partition and reformat the ext2 partition and see if that helps(it should).
[G1 Android Development] MarcusMaximus04@gmail.com:
? There's a server issue? I haven't seen this. My guess would be something is off about your market or you really don't have a connection.
[G1 Android Development] MarcusMaximus04@gmail.com:
Yes, it reboots to refresh all the apps(I should probably make dalvik-cache do this too...). Also, your internal memory will still go down, just more slowly. If you want it to go down even more slowly try moving the dalvik-cache as well(reboot afterwards).
[G1 Android Development] andonnguyen:
This message youre getting is most likely a network error, because I get it without any apps2sd (old and new) modifications.
[G1 Android Development] pshadey:
Server Issue resolved???

i have been getting it since last night. i have tried rebooting with no avail. hopefully it is just a network error, cause i dont have apps to sd yet.
[G1 Android Development] borodin1:
I've ran into server issue while browsing market yesterday as well. I blame network though, shouldn't be related to apps2sd hack.
[G1 Android Development] LucidREM:
with regard to my MOD'd update.zip i automated the manual apps2SD process for symlinking to the SD .. the only thing automatic is the init.rc and mountd.conf files needed to mount the EXT2 .. i am actually investigating the unionfs method to switch over to that
[G1 Android Development] MarcusMaximus04@gmail.com:
Alright, so it sounds like there's nothing that would break the unionfs method.
[G1 Android Development] kevo:
Thanks for the reply. I had already set about the task before reading this though :S

And now I'm having problems.

I started off by partitioning the new card, and just copying everything over from the old (both partitions) and everything worked fine. (this was still using Lucids symlinks)

I then set about trying to get your method running. I moved data back to the phone memory. Copied init and a2sd to my card.

I then did this in the terminal emulator

su
mount -o remount,rw /dev/block/mtdblock3 /system
cp /sdcard/init.rc /data/
cp /sdcard/a2sd.sh /data/

Got no errors so rebooted, and now none of my apps are installed - or atleast accesible. They are showing up as installed in the market, but I cant get anything to run, except for default apps.

If I try to install anything new from the market my phone reboots when it finishes downloading.

Internal phone storage in settings is showing up as 354 ( I made a 450mb ext2 partition) so some parts have gone right! Just not everything.

Is there anything I can do to see what part I did wrong/missed out?
[G1 Android Development] MarcusMaximus04@gmail.com:
If you can run terminal emulator(or have access to a computer with adb, in which case use adb shell from the computer) then you can do this and report what it shows here:

busybox df -h
[G1 Android Development] kevo:
# busybox df -h
busybox df -h
Filesystem Size Used Available Use% Mounted on
tmpfs 48.2M 0 48.2M 0% /dev
tmpfs 4.0M 0 4.0M 0% /sqlite_stmt_journals
/dev/block/mtdblock3 67.5M 55.1M 12.4M 82% /system
/dev/block/loop0 492.0K 492.0K 0 100% /system/modules
/dev/block/loop1 3.4M 3.4M 0 100% /system/xbin
/dev/mmcblk0p2 433.0M 56.6M 354.0M 14% /system/sd
/dev/block/mtdblock5 433.0M 56.6M 354.0M 14% /data
/dev/block/mtdblock4 67.5M 2.1M 65.4M 3% /cache
/dev/block/mtdblock5 74.8M 23.4M 51.4M 31% /system/intmem
unionfs 433.0M 56.6M 354.0M 14% /data
/dev/block//vold/179:1
7.2G 741.3M 6.4G 10% /sdcard

Also "ls -l /data/app" shows up all my apps that should be installed. If that makes any difference?
[G1 Android Development] Nikeem24:
The process went real smooth. But had I would have know that it was going to delete all my files on my SD I would have back it up. I thought it was just resizing my partition.:(
[G1 Android Development] MasterBunnyFu:
It would be nice if, in addition to the slider, the text boxes were editable so we could specify an exact size. It's hard / impossible to get an exact size, especially if you want one to be larger than the other, enough that you get near the edge of the touch screen, where it's less sensitive.
[G1 Android Development] Nikeem24:
Is there anyway you can bring back recently deleted data off an SD card?
[G1 Android Development] MarcusMaximus04@gmail.com:
Ya, I know, couldn't get that bit working, will work on it more.
[G1 Android Development] MarcusMaximus04@gmail.com:
Sorry about that, I spent so long trying to get it working, I forgot some users might have that expectation. Will put a warning to this effect in the next version(and a quit button so people can exit...)
[G1 Android Development] MasterBunnyFu:
Also, when I run the app to partition the SD card, I immediately get a "Not responding: Force Close / Wait?" prompt. If I press Wait, it sits there not doing anything for a while and if I try to interact, it does the "Not responding" prompt again. Eventually, I did a Force Close, and now I'm attempting to do the partition manually.

Question: How can I move the existing apps I had installed onto the SD card, and how can I tell what's on the SD card as opposed to the internal memory?
[G1 Android Development] pshadey:
confusion!

im not so positive it is just a network problem. i couldn't get the market to connect, so i wiped the phone and reflashed jf adp1.5 and everything works fine again. WTF
[G1 Android Development] MarcusMaximus04@gmail.com:
Ya, you should just wait and let it do its thing when it's trying to partition. It may take a while, especially if you're using edge(it has to dl MartinFick's sdsplit script)
[G1 Android Development] MarcusMaximus04@gmail.com:
Hmm... darn... How did you partition the card?

EDIT: and this is on JF1.5 right?
[G1 Android Development] monkey804:
Problem with camera app after use this a2sd method.

Hi all,

Everything went smooth when I used this method, but I just found out today the camera app kept force closing when i tried to take a picture. It will load up just fine, but when I try to snap a pic, it'll force close. Any idea how to fix this or something I didn't do right? I'm on JF1.5 by the way.
[G1 Android Development] MarcusMaximus04@gmail.com:
Hmm haven't seen this one. You're sure it wasn't happening before the apps ro sd move? I'm fairly sure none of my scripts touch the camera(it's in /system I believe)
[G1 Android Development] MasterBunnyFu:
Well, I already went ahead and did it all manually using sdsplit and the zip file. However, I'm still unsure how to move the apps over. I'm assuming I should copy the .apk files from /data/app to /system/sd/app and then remove them from /data/app and reboot?

Also, how would I move the davlik-cache?
[G1 Android Development] MarcusMaximus04@gmail.com:
Noooo you don't want to do that. /data/app is /system/sd/app as well as the /system/intmem/app so that'll copy the apk files from the internal memory to the sd card and then delete them from both. You should copy the files from /system/intmem/app to /system/sd/app and then delete them from /system/intmem/app and reboot.

For moving the dalvik-cache a "cp -a /system/intmem/dalvik-cache /system/sd/" and then a "rm /system/intmem/dalvik-cache/*" and then a reboot should work.
[G1 Android Development] MasterBunnyFu:
Ah, ok. That worked great. Thanks.
[G1 Android Development] malaeus:
any thoughts?
[G1 Android Development] pshadey:
same problem "server problem"

i re-flashed jf adp 1.5 and all was working fine, and now all of a sudden im getting the same error message. is there anyway that moving market cache to sd via TAutility could cause this problem. "a server error has occured. Retry, or cancel and return to the previous screen." WTF

Problem solved hopefully. It did have to do with TAutility (rookie mistake). thanks for the responses. what a waste of time for me. =-)
[G1 Android Development] MarcusMaximus04@gmail.com:
Hmm actually ya, try undoing that(is there a way to in that app?) and see if that fixes it. I'd bet it does.
[G1 Android Development] kevo:
Yep JF1.5 (All be it the lucid version not that that makes a difference, right?)

Partitioned using the built in partition manager in linux mint (ubuntu based)

8gb card, with the last 450mb as ext2 the rest as fat32. Both partitions are primary partitions, if that makes a difference?

I dont know if theres anything I've missed out? ANything else I can check?
[G1 Android Development] MarcusMaximus04@gmail.com:
Hmm try uninstalling ahome and see if that fixes it, then try reinstalling it and see what happens.
[G1 Android Development] MarcusMaximus04@gmail.com:
Sure, I put up a new version of the init.rc in that a2sd.zip. Could you dl that zip folder and follow the updating steps for JF1.5 with that? I'm not sure if it's the problem or not but there was 1 major difference between my local script on my phone and that one, so I removed it.
[G1 Android Development] kevo:
Yep, will try that now.

Does anything here look suspicious?

ls -l /data/
----rw-rw- 1 0 0 1043 May 13 16:21 a2sd.sh
drwxrwxrwx 1 1000 1000 2048 May 6 09:29 anr
drwxrwx--x 1 1000 1000 3072 May 13 13:23 app
drwxrwx--x 1 1000 1000 1024 May 9 07:25 app-private
drwxrwx--x 1 1000 1000 7168 May 13 13:23 dalvik-cache
lrwxrwxrwx 1 0 0 19 May 13 16:21 data -> /system/intmem/d
ata
----rw-rw- 1 0 0 72 May 13 14:38 init.rc
drwxrwx--x 1 2000 2000 2048 May 6 09:28 local
drwx------ 1 0 0 12288 May 6 11:08 lost+found
drwxrwx--t 1 1000 9998 2048 May 6 09:28 misc
drwx------ 1 0 0 2048 May 6 09:28 property
drwxrwxr-x 1 1000 1000 2048 May 6 09:29 system
drwxr-xr-x 1 1000 1000 2048 May 6 17:30 tombstones
[G1 Android Development] MarcusMaximus04@gmail.com:
Hmm not particularly. It's strange that everything shows up how it should but the apps aren't showing up in the launcher...
[G1 Android Development] kevo:
I'm guess you mean just copy the new files to the card and then just

su
rm /system/intmem/a2sd.sh
rm /system/intmem/init.rc
cp /sdcard/a2sd.sh /system/intmem/
cp /sdcard/init.rc /system/intmem/
reboot

If so, just done that and its all still the same :S

Could there be some left over sysmlink from before thats causing a bad loop to the wrong file or something? I'm newish to linux, so theres only so much digging I can do myself.

How do I go about removing it and starting from the beginning with either yours or lucids uniofs system?

Or maybe is it possible for me to take one step backwards to how I had it before with the symlinks?
[G1 Android Development] MarcusMaximus04@gmail.com:
To undo it, just remove those scripts(init.rc and a2sd.sh) by doing the first 3 lines of that code you posted and then reboot.There are some other things I'd like to try(like a wipe or reformatting the card) but you're not my guinea pig and both of those would make you lose data.

EDIT: although... you could use the backup for root users app on the market and then do a wipe and restore the backup... again, though, you're not my guinea pig so only do that if you actually want to.
[G1 Android Development] Vermithrax:
Marcus/kevo,

Sorry for jumping in on this, but I noticed something different when I use:

busybox df -h

I have:

/dev/block/mmcblk0p2 /system/sd

whereas kevo's screenshot had:

/dev/mmcblk0p2 /system/sd

My system is working just fine. Just an observation... Not sure if it would make a difference.

L8r,

Vermithrax
[G1 Android Development] AtzHash:
I have two Micro SD Card. One normal 2GB Micro SD and other one is 4GB Micro SD HC.

I’ve partition both cards (500MB EXT2) but AppsToSd only works on 2GB and not 4GB card. Any idea why?
[G1 Android Development] monkey804:
It never happened before when I used the old method to move apps to SD. Maybe it's my card though. It just pooped out right after I post my question. :( Reformating it right now. I'm at work so I can't repartition it so hopefully the ext2 partition is still intach.

Update: Yep, everything's gone! I did busybox df -h to see if the partition is still there but it's not there. First time ever it happened.
[G1 Android Development] malaeus:
ive reinstalled every app i had. even tried a recovery using fastboot. it keeps sending me back to the same place. cascading force closings for everything.

i even just got my new 8GB class 6 microSDHC. tried to format it using linux (slax) with GParted. but it failed and almost killed my card. so i used the combo partition/format link in this thread to format it properly from the terminal app.

and im back to square one. im lost and my phone is losing data. alot of my stuff is gone. randomly. even stuff i was just using.

EDIT: well... now im not losing any more data...

CUZ I CANT GET ANY OF MY APPS TO RUN!!!!!!!!!!!! FORCE CLOSE ON ANYTHING I DO!!!!!!!!

EDIT: i have reflashed yet again with fastboot. i have most of everything working so far, still a bit slow (with an 8GB class6, ~600MB ext2). and internal memory still reads high, adds and subtracts with add/remove of apps. but doesnt show the true internal memory. wallpaper seems to work, while being VERY laggy. auto rotate works just fine. all apps seem to be fairly stable. but i still get about 20-30 force closes a day across about 20 apps being used regularly. ahome, news widgets, chompsms, Alarming(beta). i have uninstalled and reinstalled each of these and they still give me trouble.

i just want to know what went wrong. (or is going wrong with my luck) like why my stuff was mounted on the wrong block (referencing previous post of marcus).

do i need to do a FULL factory reset, and i mean, factory reset as in a wipe and install with STOCK RC29, then up through the ranks JF1.42 to JF1.50 etc.

thanks...
[G1 Android Development] Nikeem24:
I found this software where you can do the Data recovery.You can use it for free and it works(i've tried it), most of the other ones require you to buy it.
[G1 Android Development] raydekok:
how strange, when i check the internal mem it says 45mb free. why is that? i moved everything to the sd. how come?

can i change that?
[G1 Android Development] kevo:
I cant wipe/format and start over today, the g/f has the laptop with linux on all day.

But if I dont get it sorted before tomorrow thats what I'll do.

I got impatient and ran Lucids new update.zip with uniofs, but everythig is still the same as before.

The market is not crashing on install any more, so I have installed a couple of apps (one that was already install, I even updated through the market). And the wierd thing is they are installing in the same folder as all the installed apps on my sd card (/system/sd/app)! But are showing up and running perfectly, unlike the rest of them in there!

Well spotted! Although I'm not exactly sure what it means? lol.

I tried cp -a /dev/mmcblk0p2 /dev/blovk/mmcblk0p2

which seemed to go ok, but it made no difference, and busybox still shows it without the ./block/ folder.

hmmmph? Its only that that I can spot that might be the reason its not working.

Everything else looks like it should be working (to my untrained eye, at least)

# ls -l /system/sd/
ls -l /system/sd/
drwxrwx--x 2 1000 1000 3072 May 13 22:00 app
drwxrwx--x 2 1000 1000 1024 May 9 07:25 app-private
drwxrwx--x 2 1000 1000 8192 May 13 22:00 dalvik-cache
lrwxrwxrwx 1 0 0 19 May 13 20:38 data -> /system/intmem/d
ata
drwxrwxrwx 3 0 0 1024 May 13 21:49 local
drwx------ 2 0 0 12288 May 6 11:08 lost+found

# ls -l /system/intmem/
ls -l /system/intmem/
----rw-rw- 1 0 0 1043 May 13 20:37 a2sd.sh
drwxrwxrwx 1 1000 1000 2048 May 6 09:29 anr
drwxrwx--x 1 0 0 2048 May 13 20:44 app
drwxrwx--x 1 0 0 2048 May 13 20:44 app-private
drwxrwx--x 1 1000 1000 2048 May 13 20:44 dalvik-cache
drwxrwx--x 1 1000 1000 2048 May 13 13:23 data
----rw-rw- 1 0 0 75 May 13 20:37 init.rc
drwxrwx--x 1 2000 2000 2048 May 14 07:58 local
drwxrwx--x 1 2000 2000 2048 May 6 09:28 local.1242251369225
drwxrwx--- 1 0 0 2048 May 6 09:28 lost+found
drwxrwx--t 1 1000 9998 2048 May 6 09:28 misc
drwx------ 1 0 0 2048 May 6 09:28 property
drwxrwxr-x 1 1000 1000 2048 May 6 09:29 system
drwxr-xr-x 1 1000 1000 2048 May 6 17:30 tombstones

# ls -l /data
ls -l /data
----rw-rw- 1 0 0 1043 May 13 20:37 a2sd.sh
drwxrwxrwx 1 1000 1000 2048 May 6 09:29 anr
drwxrwx--x 1 1000 1000 3072 May 13 22:00 app
drwxrwx--x 1 1000 1000 1024 May 13 20:44 app-private
drwxrwx--x 1 1000 1000 8192 May 13 22:00 dalvik-cache
lrwxrwxrwx 1 0 0 19 May 13 20:38 data -> /system/intmem/d
ata
----rw-rw- 1 0 0 75 May 13 20:37 init.rc
drwxrwxrwx 1 0 0 1024 May 13 21:49 local
drwxrwx--x 1 2000 2000 2048 May 6 09:28 local.1242251369225
drwx------ 1 0 0 12288 May 6 11:08 lost+found
drwxrwx--t 1 1000 9998 2048 May 6 09:28 misc
drwx------ 1 0 0 2048 May 6 09:28 property
drwxrwxr-x 1 1000 1000 2048 May 6 09:29 system
drwxr-xr-x 1 1000 1000 2048 May 6 17:30 tombstones

And ls -l /data/app is showing up installed apps?!?Q?!?!
[G1 Android Development] misaelrod:
Ok, I followed the updated instructions and I now see 2,941 MB available on SD Card. However, I get that dreaded "Low on space" warning in the notifications area and I can go and start downloads from the market, but they never download, they just act like they are going to download but stay at 0%... My card was partitioned with Gparted in Ubuntu... I think someone mentioned that was an issue for them.

The results of busybox df -h are as follows:

Filesystem Size Used Available Use% Mounted on
tmpfs 48.2M 0 48.2M 0% /dev
tmpfs 4.0M 0 4.0M 0% /sqlite_stmt_journals
/dev/block/mtdblock3 67.5M 54.4M 13.1M 81% /system
/dev/block/loop0 492.0K 492.0K 0 100% /system/modules
/dev/block/loop1 3.4M 3.4M 0 100% /system/xbin
/dev/block/mtdblock5 3.1M 33.8M 2.96.G 1% /data
/dev/block/mtdblock4 67.5M 1.3M 66.2M 2% /cache
/dev/block/mmcblk0p2 3.1G 33.8M 2.96G 1% /system/sd
/dev/block/mtdblock5 74.8M 23.0M 51.8M 31% /system/intmem
unionfs 3.1G 33.8M 2.96G 1% /data
/dev/block//vold/179:1
11.7G 8.0G 3.7G 68% /sdcard

any help would be greatly appreciated...
[G1 Android Development] jikei:
mine, says /dev/mmcblk0p2 /system/sd instead of /dev/block/mmcblk0p2 /system/sd too ..

phone seems to function properly. there's like 61mb free in the internal phone memory and like 800someodd mb free for apps (in terminal and in APPS2SD2)

weird.
[G1 Android Development] cjesse:
i had same problem with you, but in Settings -> SD card & phone storage it says i have 290 MB Available space Internal phone storage:

# busybox df -h
Filesystem Size Used Available Use% Mounted on
tmpfs 48.2M 0 48.2M 0% /dev
tmpfs 4.0M 0 4.0M 0% /sqlite_stmt_journals
/dev/block/mtdblock3 67.5M 63.6M 3.9M 94% /system
/dev/block/loop0 492.0K 492.0K 0 100% /system/modules
/dev/block/loop1 3.4M 3.4M 0 100% /system/xbin
/dev/block/mtdblock5 433.0M 119.0M 291.6M 29% /data
/dev/block/mtdblock4 67.5M 2.7M 64.8M 4% /cache
/dev/block/mmcblk0p2 433.0M 119.0M 291.6M 29% /system/sd
/dev/block/mtdblock5 74.8M 39.3M [B] 35.5M[/B] 53% /system/intmem
unionfs 433.0M 119.0M 291.6M 29% /data
/dev/block//vold/179:1
7.1G 5.4G 1.6G 77% /sdcard

note: i found another bug, when i go to applications for uninstall app, Gphone auto restarted :(