yashsingh1/xdaforums huggingface dataset:
[Nexus One Q&A, Help & Troubleshooting] JustinLoe:
same issue here. when you say "delete .txt." do you mean simply not putting it into cmd or actually modifying the file
[Nexus One Q&A, Help & Troubleshooting] sputnik99:
I think it's deleting the file extension, because just not entering it in adb gives me a "no such file".
[Nexus One Q&A, Help & Troubleshooting] noodles12:
I have a question about how this works because I'm running out of room on my N1 ( keeps telling me to delete apps or messages).

Apps2sd creats a folder on my SD card for running apps from.

I'm guessing that script points the apps folder to the SD card for android to pull from.

As far as paid games go, there is a second folder for "paid" games that i make in the sd card and tell android to look there for the paid games to run. Is that correct?

Is this essentially how it works? The wiki on cyanogen's site kinda showed the manual process but I just wanted to make sure what was going on.
[Nexus One Q&A, Help & Troubleshooting] nonmindo:
if you made the ext2 or ext3 partition already and followed the rest of the directions, when you boot the phone it should automatically move all your apps paid and free to the ext2 partition, you shouldnt be making any folders, it does all that for you
[Nexus One Q&A, Help & Troubleshooting] noodles12:
So when I download new apps from the android market, (free or paid), they'll be downloaded and installed on the SD card automatically in those designated "folders"?
[Nexus One Q&A, Help & Troubleshooting] JustinLoe:
after having some issues, i've succeeded pushing files but now i get the message mkdir failed for /system/sd, File exists.
[Nexus One Q&A, Help & Troubleshooting] noodles12:
I've followed the instructions to a T. Was I suppose to somehow allow "superuser permissions"? everytime i start that app teh screen stays black.

But i pushed the files, made the permissions, I see an "Android" folder in my sd card, but I don't see any apps. I have rebooted to check. What do i do now?
[Nexus One Q&A, Help & Troubleshooting] lolittle:
I dont get it, what have i done wrong .. all apps are still installing to phone memory :S
[Nexus One Q&A, Help & Troubleshooting] sennister:
I had the same problem. I rebooted the phone again and it sat at the screen with the X and the unlocked symbol for a long time. I was starting to get worried because it sat there so long. Then I got the animation that it was booting. I think to myself that this was strange then I go into Settings -> Phone Storage and noticed that my Internal Phone Storage went from about 70MB to 172MB.

So if you think you did everything right try another reboot. I think I read somewhere that it will actually move everything over to the SD card and that is what I saw.
[Nexus One Q&A, Help & Troubleshooting] sennister:
For those of us that went into the boot loader to repartition the SD Card there is the option for creating a swap partition. What did you use for that? I did 64MB because that is what I had when I did Apps2SD on my G1. Just wondering if anyone else configured that and if so what size they used.
[Nexus One Q&A, Help & Troubleshooting] Smokuevo:
i dont really think you need swap. you have close to 400 mb in space for that vs the g1 which had 100?
[Nexus One Q&A, Help & Troubleshooting] lolittle:
Nope that didn't change anything Lol.... but when I partitioned the Sd card it wiped everything. :S lost all my apps :(
[Nexus One Q&A, Help & Troubleshooting] trizyman:
How do you do this through terminal? Adb keeps giving me errors. Plz anyone who knows how to get this to work plz help me with a step-by-step guide. Yes I'm a newbie.
[Nexus One Q&A, Help & Troubleshooting] sennister:
OK, that is what I kind of thought. It isn't hurting anything so I will leave it there for now. Not like 64MB is much space that I am out.
[Nexus One Q&A, Help & Troubleshooting] jerbarton:
Just flashed cm5 stable and new gapps and got stuck in boot loop. (hadn't flashed cm5b5). boot loop I figured was probably caused by having enabled apps2sd previously. Fixed by connecting usb to phone while in the boot loop and repeating copying 04apps2sd, e2fsck, and libext2fs.so / chmodding. It seems to have worked so far. I have almost 300 apps installed so it's still doing dexopts so it'll take a while but if it doesn't work I'll edit this.
[Nexus One Q&A, Help & Troubleshooting] t0pgun:
I can't upgrade to ext3 after flashing to 5.0 stable "sdparted: notfound"
[Nexus One Q&A, Help & Troubleshooting] jerbarton:
Had you partitioned/upgraded to ext3 prior to flashing stable? if so you don't need to re-do the partitioning/upgrading. If you repartitioned to ext2 it'll still work. I'll poke around in my g1 and see if I can find the sdparted binary.

EDIT dunno where that is, don't have it on my g1 or nexus. are you on windows, mac, or linux?

If you're on linux you can use gparted to upgrade your sdcard. If you're on windows, I can't help. Been on linux only for 12 years except for one laptop I use for watching netflix only.
[Nexus One Q&A, Help & Troubleshooting] t0pgun:
I had ext3 prior the flashing and Apps2sd is working. But why did i get "sdparted: notfound"

When i did the upgrade to ext3 the sdparted was there. How come it's gone now?
[Nexus One Q&A, Help & Troubleshooting] TossiToker:
How large ext2 partitions is recommended that you make on a 16 GB memory card

Enough ext2 or ext3 should I get?
[Nexus One Q&A, Help & Troubleshooting] Amdathlonuk:
Well, I've just done this for testers and created a 600mb Ext 2 partition.

It works flawlessly so far, phone is still as quick as non apps to SD.

Also I'm not sure if it's co-incidental but I flashed the new Cyanogen ROM (5.0.0.2) and my battery live is even more amazing.

Charged at 10pm last night, got up at 6am and it lost 4%..... 4%!!!

Anyway drove home for 1.5 hours with it playing through my car stereo and it was only down to 88%.

Brilliant.
[Nexus One Q&A, Help & Troubleshooting] t0pgun:
Actually i think that the phone is faster now with Apps2sd enabled, might be a illusion but it's certainly not slower.

Quick question, lets say i have a huge amount of apps and games to install. Theoretically is it ok to make a 1GB (or larger) ext2/3 partition?
[Nexus One Q&A, Help & Troubleshooting] jerbarton:
Mine is 1GB, no problems.
[Nexus One Q&A, Help & Troubleshooting] salmanaman:
help please

im on the new cyan rom and i get all the steps ive done it right but towards the path mkdir i get that the file is already their and when i reboot (which i have done several times i get a folder in the system named sd but no apps in there.
[Nexus One Q&A, Help & Troubleshooting] jakontil:
Doh... i should have made 1gb instead.... is there anyway to expand my ext3 size without losing anything?
[Nexus One Q&A, Help & Troubleshooting] kamikazimonky:
got it to work pretty awesome and im a newbie at this stuff. what does getting ext. 3 do. is it better or??
[Nexus One Q&A, Help & Troubleshooting] lazinase:
search does help...

I use ext 4 though...
[Nexus One Q&A, Help & Troubleshooting] t0pgun:
Good to hear. I'll redo my 512MB Already used 210MB.
[Nexus One Q&A, Help & Troubleshooting] t0pgun:
it has journaling (keeps track of changes in a journal, before comitting them) Therefore it's much more reliable in the event of sudden shutdown's e.g if your phone hangs and you need to do a battery reset
[Nexus One Q&A, Help & Troubleshooting] ZeroXtreme:
Any chance to get this to work on the stock leaked ERE36B ROM? Its rooted with SuperBoot, but it seems that the structure of Cyan's and Enom's ROM are different from the stock builds, their's looks more like a standard linux build and the stock build does not have the standard directory structure.
[Nexus One Q&A, Help & Troubleshooting] Iman07:
is this work with modaco's hero ROM? tried it but im getting stuck on the bootup screen.
[Nexus One Q&A, Help & Troubleshooting] hks18psigst:
is this working on the desire build? above post says stuck on boot but op says that will happen..
[Nexus One Q&A, Help & Troubleshooting] salamandar:
I was able to get a2sd working on Modaco's v7, but it hangs on Kings (he posted that he thinks he knows the cause, so maybe we will see a new version from King tonight).
[Nexus One Q&A, Help & Troubleshooting] jakontil:
Hi mate, ia that alpha 7 you are talking about? That looks promising if it is...
[Nexus One Q&A, Help & Troubleshooting] Iman07:
how did you get it to work. Please share.
[Nexus One Q&A, Help & Troubleshooting] m3manny:
apps2sd on n1 cyanmod???

any instructions for Mac os to do the apps2sd on n1 cyanmod???

thank you in advance for any help
[Nexus One Q&A, Help & Troubleshooting] duylong186:
it is the same for both mac and windows
[Nexus One Q&A, Help & Troubleshooting] clustered:
its that ok if I used ext4? thanks
[Nexus One Q&A, Help & Troubleshooting] Smokuevo:
i just finally decided to do mine... and i have ext4 too. didnt wanna do it all this time because i hate to have to move these files into system every time that cyanogen updates. wish he could just include them in his update. obviously people that dont want to use it just dont need to have ext part..
[Nexus One Q&A, Help & Troubleshooting] Iman07:
i hate to keep reposting this, but anyone actually have it working on modaco's desire rom?
[Nexus One Q&A, Help & Troubleshooting] McFroger3:
I can't get this to work on cyan mod for the life of me. I follow the instructions but to no avail.
[Nexus One Q&A, Help & Troubleshooting] Breakthecycle2:
I second this...I cannot get it to work, but did on all other N1 roms.
[Nexus One Q&A, Help & Troubleshooting] icon57:
can anyone confirm this working on cm 5.0.3.1 ?
[Nexus One Q&A, Help & Troubleshooting] Breakthecycle2:
I can. I had it working.
[Nexus One Q&A, Help & Troubleshooting] eppyramot:
I got it working on Desire Alpha V7
[Nexus One Q&A, Help & Troubleshooting] Vegito168:
I've got a quick question. I am on Modaco's Alpha7 Desire ROM, and all the commands on adb worked fine to my knowledge. I didn't get any errors. My question is regarding the apps2sd file. It is a .txt file, and when it copied to the directory that the adb push directs it to it is still a .txt file on my N1. Is it supposed to be a .txt file, because I noticed that the e2fsck file is just a file with no extension. I am wondering because I am not sure how to verify that my apps are actually getting pushed to my SD Card. I am using partition ext4 1.5GB w/64MB swap if it makes any difference at all. Do you have to uninstall them from the device and then re-install them in order for them to get pushed to the SD Card? Sorry for the NOOBNESS, I am indeed new to Android. The N1 was my first choice for Android. I was always a WM fan. LOL! Keyword "WAS." Thanks for any help you can provide. :)

adb remount
adb push 04apps2sd /system/etc/init.d/
adb push e2fsck /system/xbin
adb shell
chmod 755 /system/xbin/e2fsck
chmod 755 /system/etc/init.d/04apps2sd
mkdir /system/sd

Downloads:

e2fsck: http://www.mediafire.com/?tzwwjyz2t2r

04apps2sd: http://www.mediafire.com/?mjjntmtmjmj[/QUOTE]
[Nexus One Q&A, Help & Troubleshooting] briangnyc:
I think I read that Cyan is considering adding it back. Maybe in the 5.0.4???

In the meantime, if you update the rom and it does not contain Apps2SD, all you should have to do is re-run the same commands in the first post, reboot and your apps should be restored. The last command is for creating the folder, but it will fail because it already exists if you are only restoring. Updating is not wiping your sd card ext. partition only the pointers to it.

This is how I have done it in the past.
[Nexus One Q&A, Help & Troubleshooting] Breakthecycle2:
How did you get it if you don't mind me asking?
[Nexus One Q&A, Help & Troubleshooting] Breakthecycle2:
I keep getting this error:

Microsoft Windows [Version 6.1.7600]

Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\DamianV>cd c:\android

c:\android>adb remount

remount succeeded

c:\android>adb push 04apps2sd /system/etc/init.d

cannot stat '04apps2sd': No such file or directory

c:\android>adb push e2fsck /system/xbin

1060 KB/s (123836 bytes in 0.114s)

c:\android>adb push 04apps2sd /system/etc/init.d

cannot stat '04apps2sd': No such file or directory

c:\android>adb push 04apps2sd /system/etc/init.d

cannot stat '04apps2sd': No such file or directory

c:\android>
[Nexus One Q&A, Help & Troubleshooting] briangnyc:
[/QUOTE]

The simple way would be to go to settings, sd card storage where you should see your extra partition showing used/available space and you would see a bigger increase in the phones memory. I am assuming this info would be available in the Alpha7 release as this is how it shows up in Cyanogen releases.
[Nexus One Q&A, Help & Troubleshooting] Iman07:
the fact that no one is answer the question about how they got app2sd working on modaco's ROM is starting to really f**king piss me off me. why wont people share? i dont get it?
[Nexus One Q&A, Help & Troubleshooting] McFroger3:
I get the same error's.

I know the directory exists. what gives.
[Nexus One Q&A, Help & Troubleshooting] hjlow:
permissions?
[Nexus One Q&A, Help & Troubleshooting] McFroger3:
The rom has root, and I was using adb on the command prompt with admin.
[Nexus One Q&A, Help & Troubleshooting] dnanj:
Can you check to make sure that you have 04apps2sd in the 'c:\android' directory?

From what I've seen, this error happens if the file you are pushing is not in the directory you are in, 'c:\android' in your case.
[Nexus One Q&A, Help & Troubleshooting] McFroger3:
Just figured out, you gotta use the command:

adb push 04apps2sd /system/etc/init.d/

But you have to rename the file without the .txt extension.
[Nexus One Q&A, Help & Troubleshooting] dnanj:
Yup...that would do it!

Glad you got it working & figured out!
[Nexus One Q&A, Help & Troubleshooting] jerbarton:
typo

Works with modaco's desire roms. You may also need to push the following files to /system/lib

libext2_com_err.so

libext2_e2p.so

libext2_profile.so

libext2_uuid.so

follow the same steps for cm, just adb push those files to /system/lib as well.
[Nexus One Q&A, Help & Troubleshooting] jakontil:
hi jerbarton...

can the steps be random when pushing those new files?

or they have to be pushed before the chmodding?

thanks
[Nexus One Q&A, Help & Troubleshooting] McFroger3:
This has to be run first

adb remount
adb push 04apps2sd /system/etc/init.d/
adb push e2fsck /system/xbin
This has to be before this,

Then

adb shell
chmod 755 /system/xbin/e2fsck
chmod 755 /system/etc/init.d/04apps2sd
mkdir /system/sd
[Nexus One Q&A, Help & Troubleshooting] ethanlu:
There is a much easier way to have you N1 worked with app2sd.

Same, first have your N1 rooted and CM rom flashed.

then:

1.Have your SD card partition with the "partition" option in recovery

2.download this zip file and put it in your SD root.

3.Boot your N1 into recovery mode, "flash zip from SD".

4.reboot your N1 and app2sd is done.

This patch is released to help those newbies who have problem with all the command lines.Enjoy.
[Nexus One Q&A, Help & Troubleshooting] grainysand:
I think I've got this working on the latest alpha of Modaco Desire ROM, as after rebooting my internal storage went from 133 MB to 150. On the other hand, installing Google Earth dropped that to 127 MB. Eh?
[Nexus One Q&A, Help & Troubleshooting] jakontil:
hi mcfroger3

i was referring to the one jerbarton posted previously, running apps2sd on modaco alpha 9 and it seems to have worked though i couldnt find a definite answer whether or not it works lol...

coz there is no interface indicating the sd card storage in phone storage like as if this is applied on CM
[Nexus One Q&A, Help & Troubleshooting] McFroger3:
Oh my apologies.
[Nexus One Q&A, Help & Troubleshooting] Pochemuchka1977:
Is this method gonna work on stock ROM and CM's .32 based kernel ?
[Nexus One Q&A, Help & Troubleshooting] TheDudeOfLife:
Thank you so much, this worked for me perfectly.

Also because in alpha 9 (well 8) Paul moved the dalvik-cache to /cache so I modified cyan's script to not move dalvik-cache or set any permissions on it. I attached my modified version if you guys want it. Make sure you rename it back with no .txt before pushing to your phone.

No you need a modified boot that loads the init.d folder

good ol 'busybox df -h' will show you.
[Nexus One Q&A, Help & Troubleshooting] jakontil:
hi thedudeoflife

what will happen if i used the old cyan's script on modaco a9? and what makes the difference with your modified script?

and can u please brief me to run the good old busybox since i am a first timer with android and now very familiar with any of the terminal command...

thanks heaps mate
[Nexus One Q&A, Help & Troubleshooting] jakontil:
ok here's the results... but which tells me that i have the apps2sd running on my nexus with modaco a9 rom?

Filesystem Size Used Available Use% Mounted on

tmpfs 192.9M 12.0K 192.9M 0% /dev

tmpfs 4.0M 0 4.0M 0% /sqlite_stmt_journals

/dev/block/mtdblock3 145.0M 131.8M 13.2M 91% /system

/dev/block/mtdblock5 196.3M 88.9M 107.3M 45% /data

/dev/block/mtdblock4 95.0M 68.8M 26.2M 72% /cache

tmpfs 8.0M 7.2M 836.0K 90% /app-cache

/dev/block/mmcblk0p2 457.4M 109.5M 323.5M 25% /system/sd

/dev/block/mmcblk0p2 457.4M 109.5M 323.5M 25% /data/dalvik-cache

/dev/block//vold/179:1

7.0G 3.4G 3.6G 49% /sdcard

thanks for any input
[Nexus One Q&A, Help & Troubleshooting] TheDudeOfLife:
uh oh, I can't install apps. says no space...must be a permissions issue.

*goes back to read up the rest of the thread*
[Nexus One Q&A, Help & Troubleshooting] TheDudeOfLife:
busybox is a multibinary that allows you to use a lot of standard linux commands. type busybox by itself and you'll see what i mean. most of those commands are linked to busybox. i'm not sure what happens if you use the old script, i'm going to try it now and see if i can fix my permissions issue. i think i botched something up on my script edit.

Well running fix_permissions in recovery pointed me in the right direction. I think dalvik-cache is filling up /cache partition. you need the script to move dalvik-cache to sd after all.
[Nexus One Q&A, Help & Troubleshooting] icon57:
very nice, easy instructions, working perfectly !
[Nexus One Q&A, Help & Troubleshooting] dixxa:
for lazy people like me,

I've made a small script to auto apps2sd just grab my zip file and extract it in the root of your sdcard.

Then use gscript and load my script or in terminal type:

su

sh /sdcard/a2sd.sh

Don't be afraid the phone will reboot at the end of the script.
[Nexus One Q&A, Help & Troubleshooting] jerbarton:
Added note, if coming from a no-wipe update you'll need to run this script via adb shell (if) when it's boot-looping. Thanks for the script!
[Nexus One Q&A, Help & Troubleshooting] mikroN1:
Thanks for the script bro. Just ran it.
[Nexus One Q&A, Help & Troubleshooting] dixxa:
No problems xD
[Nexus One Q&A, Help & Troubleshooting] rheza02:
is it still work for CM 5.0.4 ?
[Nexus One Q&A, Help & Troubleshooting] jakontil:
the script doesnt seem to work with cyanogen mod STABLE 5.0.4 anymore...or did i miss anything?
[Nexus One Q&A, Help & Troubleshooting] ZeroXtreme:
This still works on 5.0.4, I'm using it right now, but I do it the manual way like posted on the first page, and I don't use the script.
[Nexus One Q&A, Help & Troubleshooting] jakontil:
hi zeroextreme

did u run apps2sd previously? did you wipe ext partition prior flashing the 5.0.4?
[Nexus One Q&A, Help & Troubleshooting] ZeroXtreme:
Yup, I wiped the ext partition. Its a standard procedure of mine to wipe it before a flash. I backup whatever is on it before wiping though just to be sure. Its a simple copy and paste procedure to backup anyway when I mount the ext partition under Ubuntu.
[Nexus One Q&A, Help & Troubleshooting] g123k:
When I am trying to configure app2sd, I got :

-=[animatrix@localhost]=(~)> adb remount <(12:23:43)>
* daemon not running. starting it now *
* daemon started successfully *
remount failed: Invalid argument
-=[animatrix@localhost]=(~)> adb push Downloads/04apps2sd /system/etc/init.d/
failed to copy 'Downloads/04apps2sd' to '/system/etc/init.d/': Is a directory

Where is my problem ?
[Nexus One Q&A, Help & Troubleshooting] ZeroXtreme:
I am assuming you are on linux based on your command prompt. If so, you should issue the first adb command as the root user so its starts the daemon under the root user, try issuing these commands, without the quotes, before running adb remount:

'sudo <full path to adb>/adb kill-server'

'sudo <full path to adb>/adb devices' - this should show your N1

then run the rest of the commands under your normal user.
[Nexus One Q&A, Help & Troubleshooting] g123k:
kill-server & devies commands work :

localhost Downloads # android-sdk-linux_86/tools/adb devices
* daemon not running. starting it now *
* daemon started successfully *
List of devices attached
HT9CRP****** recovery

But even even in root, the remount & push does not work
[Nexus One Q&A, Help & Troubleshooting] ZeroXtreme:
Oh, you are in recovery mode. Try the commands when the device is started up normally and 'USB debugging' option is checked under Settings -> Applications -> Development
[Nexus One Q&A, Help & Troubleshooting] g123k:
Thanks !

The problem was coming from here !
[Nexus One Q&A, Help & Troubleshooting] b33zy682:
do u need to type the commands in recovery? i did them when the nexus was on normally and it didnt move my apps2sd. didnt get any command errors. i thought you could do this in recovery?
[Nexus One Q&A, Help & Troubleshooting] kamikazimonky:
ok so im upgrading from 4gb to a 16gb. i nandroided backed up with extpart. then copied files to the new sd card then put it it phone and restored from nandroid. restarted and went through the process like usuall and everything worked fine until the last step says it couldnt find the mkr files?? so i restarted into recovery and reflashed cm 5.0.4 w/gapps and tried the process again but now it doesnt reconize my phone when i cmd prompt adb devices
[Nexus One Q&A, Help & Troubleshooting] kamikazimonky:
ok now i repartitioned my 16gb and adb recognizes that its in recovery now with serial number but still the memory card doesn't get recognized on my computer when i enable usb mass so i cant put restore or any thing on it. im so lost and cant use my phone. sorry im noob at problem solving this stuff
[Nexus One Q&A, Help & Troubleshooting] phaelenp:
I'm also looking to upgrade to a higher capacity card from the stock 4GB card that has apps2sd installed. Is there an effective way to clone one card with all partitions to a bigger card and resize partitions and still have all programs run successfully when you pop in the new card???
[Nexus One Q&A, Help & Troubleshooting] kamikazimonky:
have no idea im still trying to get mine to work right now i cant get past bootloop
[Nexus One Q&A, Help & Troubleshooting] kamikazimonky:
says there no mkdir /system/sd file directory? whats that how do i fix it??
[Nexus One Q&A, Help & Troubleshooting] phaelenp:
Ok, I got it to work upgrading using the following steps:

1. Nandroid +ext backup

2. Copied all files/folders from old card onto folder in computer using a card reader (apps2sd and linux swap partitions aren't visible but are included in the nandroid ext backup)

3. Inserted new card into phone and booted into 1.6.2 recovery (go Carebear!)

4. Partioned new card. (I actually changed the partition size from previous setup so it shouldn't matter as it worked fine for me. Made 32MB linux swap and 512MB ext2 and the remainder FAT32)

5. Upgraded ext2 partition to ext3. Shut down.

6. Removed new card from phone, insert into card reader and copy all files from folder backup of old card onto the FAT32 partition of the new card.

7. Insert new card back into phone. Boot to recovery again and do a Nandroid restore of your +ext backup and VOILA!! It boot looped once but after second boot it has been running flawlessly with all apps installed on ext3 partition and all original data in place etc.

Hope this helps anyone confused, as I sure was. It really was much simpler than I thought it would be.