[Nexus One Android Development] Docmjldds:
Reprint Of Doc Mark's FAQ of Data2sd Installs

I wrote the following up for a user I PMed this too a couple of weeks back. So it's written in a narrative from me to the user. This is basically the guts of my FAQ. Should work. Has links also. If I missed something, holler. I'm around :)

**************************************************************

I only ask that if you want to do this, that you use the same method instead of a shortcut which will just confuse issues as to what is going on or why. I have done this more than two dozen times now and it ALWAYS works. But to guarantee you need to partition correctly. Since I like to use Rod's latest stuff that requires a double partition and linux swap, I have tested and this does NOT affect installing Sense Roms, CM7 ROMs, MIUI Roms, or Rods MIUI data2ext. IOW...it's compatible across the board. See my sig. I am using two ext4's and the linux swap. I really believe in clean installs to make this work. There are two format.zip files going around. One formats 2x...your boot, system, data, and cache. The problem with this is if you try to use this on Rod's data2ext ROM, it messes up how the boot partition gets re-imaged on a new install. So I created a modified format.zip file that takes our formatting the boot partition. You can safely use the modded one on all ROMs, but don't use the one that does the boot partition format on Rods. That's the only caveat. Also, turn of sig verification when using the modified version and when using scripts. I also use Gparted to partition. I uses an external memory card reader and run from a linux boot disk. I do NOT trust Mini partition tool and I especially never trust partitioning in the phone anymore. Since I changed, no issues. Try to shortcut gives problems. Last...clean install. I cannot over emphasize this. I go as far as formatting my EXT's EVERYTIME I run a clean install. I do that first. I then use the format.zip utility with sig verify off to format system, data, and cache partitions. Typically run this twice. This will NOT touch SD card Fat32 data on your SD card. So no problem usually leaving all that alone. I say usually since sometimes, I get weird stuff that is fixed ONLY by reformatting that too, meaning copy your SD card to a safe place FIRST. I would copy anyways, just like a backup, if you value whats on the SD card, just to be safe.

OK...we have formatted to two EXT4's as well as Linux swap. At least 1Gb large first EXT4 required. Numbers just need to be close. NOT exact to my sig, BTW> We then Format.zip from recovery. I run that twice. I then use ONLY Amon 2.2.1 I do NOT trust clockwork. I know that maybe some new stuff just recently posted may work, but I use what I know works. Amon 2.2.1 Run all the wipes 2x minimum. The first data reset, then data, cache, sdext, Dalvik cache. That other wipe location where paid apps I believe used to go, is not really needed to wipe anymore, but I did NOT remove the reference. I think it's required to leave it alone. And I leave battery stats and that other regarding sensor orientation wipe alone. If you notice, trying to format every time just using amon 2.2.1 will wipe out the Fat32 data. This alone is why I do it externally. You can clean the EXT4's and leave the fat32 alone.

OK...now...flash a CM7 and boot up. I usually just setup my display at bootup for bright, and maybe have wifi enabled. NOTHING ELSE. After initial CM7 install, and NO Gapps flashed yet, you should have basically 192MB free showing Internal memory when looking at your settings, storage. IOW...no private apps installed at this time. Just a nice clean CM7 running. Reboot to recovery.

Now you will simply flash two files...back to back. First one is a script killer in case an OP installs a version of an apps2SD of some kind. The file is referenced a kill file. Then flash the installer file. Boot up. Boot time may almost double here initially, since it's setting up this stuff now so give it a little time. Still should be only 5-6 minutes. Look at settings, system storage and Free Internal should now be your 1GB or so EXT size. If so, back to recovery and run the Gapps and reboot and do your thing. I highly recommend doing a nandroid backup NOW. My only issue is so far with Trackball alert. Could be Fit's latest. I use the smali patch but I get boot loops, so depending on which CM7...just a caveat that I have this issue right now, so I basically just reflashed my setup which fixed the bootloop.

I am posting this to you. Then I will upload the files to a mirror and send the link in a bit since I cannot attach files to a PM and I don't want you or anyone to get confused with the half dozen variations of script files on a link and not knowing which to use. There is a third file referenced reinstall, that is supposed to be used if you re-flash a newer version on top. Sometimes I have used that with mixed results. I usually just use the initial installer file again and that has worked, but again, mileage varies if you lets say use nightlies which change and try to use the reinstaller file.

OK...back in a while with a link(s) to files.

snip***************bad link to files.....hold on for a bit please************************