yashsingh1/xdaforums huggingface dataset:
[EVO Shift 4G Android Development] jesusice:
The information from MIUI should still apply as MIUI is based off of CM7. I used an sd-ext for a while with no problems but I did not like having both apps and Dalvik on the ext partition. I found it gave me a slight lag and took forever to boot. I didn't notice any real decrease in performance from having apps to the sd-ext but I do have a class 10 SD.

Basicially, if you're happy with the current space you have now for apps then don't bother with an sd-ext partition, it will always be slower than internal memory. If you find yourself frustrated with lack of space for apps then use a sd-ext partition.
[EVO Shift 4G Android Development] sparksco:
Your pretty much right besides one little thing. I didn't make Dark Tremors a2sd...his scripts are not the same as mine and use a2sd in a different way. There is not other scripts out there quite like mine ;) DT or Dark Tremors a2sd uses data/data which makes things slow. Mine isn't slow at all. The reason it takes longer to boot is because you have more apps installed. Run logcats and you can see it's loading every single app into memory as it's loadong. This is true wheater your using a2sd or not. The more apps there is to load on boot it's going to take a little longer ;)
[EVO Shift 4G Android Development] jesusice:
Who mentioned DT? ;) I actually just used S2E from the Market. Not sure what kinda scripting it uses tho, probably the same as DT's. Either way, I've since stopped using sd-ext. I realized I was just hoarding apps and never actually used all those apps. Plus, my nandroids were becoming HUGE, lol. But thanks for the clarification.

I've actually got a question maybe you could answer, unrelated to a2sd or swap, but relating to CM7 tweaks/mods.. I've been moving certain apps to /system to utilize some of that wasted space there. I've read that if you create a list of those apps you want to save in system and name it "custom_backup_list.txt" and put it in /system/etc that those apps won't get cleared when updating nightlies. But this didn't seem to work for me. Do you know anything about this? Any idea how to preserve those system changes between nightly flashes? For the time I've got a zip that I flash that restores them after updating nightlies but it'd be cool if they just stay there.
[EVO Shift 4G Android Development] sparksco:
Yes sir the reason is is because nightlies and all cm roms format the system for a cleaner install. That's why I only wipe dalvik-cache and cache instead of a full wipe when I flash a nightly. Cm didn't use to format system as well as they do now. And before with cm5/6 it caused major issues when the system wasn't wiped because it was mixing system files from different builds together. What you would need it do is to make a script to restore certain apps to system and store both the apps and script on your sdcard. Then you could simply run the script from your sdcard to restore them. But to me this seems pretty tedious instead of just restoring apps with TB or not wiping apps that are on sd-ext. I have a 2gb ext4 partition which does make my nandroids huge. Luckily I have a 16gb class4 sandisk ;) lower class then most but still works for what I need it for and won't cost me $100
[EVO Shift 4G Android Development] sparksco:
On a side note about dark tremors a2sd it does work on sense roms if I'm not mistaken. So it might work good on sense but I've never been a big sense fan. I have a crush on CM roms and aosp lol. I just wanted this so I wouldn't have to compile my own roms anymore. There's really no point when the patch can be applied over a stock cm nightly or rom.
[EVO Shift 4G Android Development] halrulez:
Dude totally wow on this and your kernal. I had no idea this phone could be this fast. I am getting crazy fast speeds from this and the kernal. I think you have done some the best work tweaking this phones settings. I got 20Mb on my wifi never before have I. I got 6.5Mb on 4G highest before was 2.1Mb and on good old 3G I got 2Mb and that reminds me of the old 3g speeds I was getting on my mogul and titan years ago. Once again great freaking job dude. Ya I am sticking with aosp sense has its wow factor but you can get way more out of close to stock roms.
[EVO Shift 4G Android Development] sparksco:
Thanks man. Yeah with aosp it's easier to get more things out of it because there's a full source. If sense was completely open source devs would be able to do more with it besides the kernel and the open sense sdk on htc's website. But I don't think htc will ever make sense open source. They claim it's because of security reasons, but I think it's because they don't want apple to steal more ideas for their icraps haha.
[EVO Shift 4G Android Development] kendotelie:
will using nightlies instead of stables cause problems with your A2SD?
[EVO Shift 4G Android Development] blahbl4hblah:
Should work just fine.
[EVO Shift 4G Android Development] kendotelie:
ok so im new to the A2SD thing. I do currently have ext4(1024 mb) partitioned. H ow can i get my apps that are backed up by TB installed to the new partition?

will i have to DL the apps directly from the market again with CM7 settings at external for install location?
[EVO Shift 4G Android Development] blahbl4hblah:
Just use TB like normal and that's its. All your apps will go straight to sd-ext partition
[EVO Shift 4G Android Development] jesusice:
Right, what Blah said. And if you want new apps to install to the sd-ext partition you gotta set install location to internal. External refers to .android_secure (which will still install the app data to your sd-ext but not the apk itself). Rememver, what you're doing with sd-ext is tricking your phone into thinking the sd-ext partition is part of the internal memory.
[EVO Shift 4G Android Development] kendotelie:
thanks for the help. all is well
[EVO Shift 4G Android Development] blahbl4hblah:
I just leave it alone most of the time haha
[EVO Shift 4G Android Development] sparksco:
Yeah I leave it on automatic or internal for install location. Either one should work fine.
[EVO Shift 4G Android Development] sparksco:
I'll be updating the patch today. How's it working out for everyone? Also who thinks this should be in development and not general? I was thinking about having it moved to development.
[EVO Shift 4G Android Development] VICODAN:
I say keep it here for a few more days.

Have you posted rockmod and the latest pershoot in dev yet?
[EVO Shift 4G Android Development] jesusice:
It's development. I say move it.
[EVO Shift 4G Android Development] blahbl4hblah:
Going to make it crazier?
[EVO Shift 4G Android Development] sparksco:
Haha no. I was going to just update the latest cyanogenmod parts changes into it. It'll still be ext4 and swap partiton. I guess it is development.
[EVO Shift 4G Android Development] ilaf0106:
How can I go to ext 4 with cwm recovery??
[EVO Shift 4G Android Development] blahbl4hblah:
Its automatic when you partition your sdcard in advanced then partition sdcard. It'll give you options for sizes for sdext and swap partitions
[EVO Shift 4G Android Development] ilaf0106:
So it is automatically on ext 4 n not 3??
[EVO Shift 4G Android Development] jesusice:
Correct me if I'm wrong but I believe CWM will partition it as ext3. CM still mounts ext3 as ext4 but if you want to choose between ext3 or ext4 when you partition use TWRP.
[EVO Shift 4G Android Development] drob311:
You are correct... C.W.M. only does ext3... TWRP is my recovery of choice
[EVO Shift 4G Android Development] blahbl4hblah:
If you look at the recovery.fstab for speedy in cyanogenmod github its set as ext4
[EVO Shift 4G Android Development] sparksco:
Just download any of the ones I have on rom manager. They also work with rom manager.
[EVO Shift 4G Android Development] sparksco:
Yes koush's will, but mine are built from the cm source which is ext4 in recovery.fstab. this patch also has a moddified 05mountsd to mount ext partition as ext4 ;)
[EVO Shift 4G Android Development] kendotelie:
i flashed the new nightlie after a wipe, and the after applying the patch, it has me stuck at the bootanimation.. but if i flash without the patch i dont have access to most of my apps
[EVO Shift 4G Android Development] sparksco:
Your not waiting long enough for it to boot. The .zip wipes the cache's...
[EVO Shift 4G Android Development] kendotelie:
gotcha, i'll try again. thanks sparks
[EVO Shift 4G Android Development] halrulez:
Lol sorry

10char
[EVO Shift 4G Android Development] sparksco:
Np, it happens lol
[EVO Shift 4G Android Development] halrulez:
Hey sparky can you update the script and your v10 so that when we use the new nightlies all the new CM settings can be used and seen? Can't use middle unlock unless I flash cm first go in make changes then reboot and flask the script and the v10. Not to much of a deal because your script and kernal are totally wicked. My phone never liked going over 1.5ghz till I used the script and kernal. Really great work again bro. I can even use scary. Never been able, would just lock up every time. So once again great job dude. Looking forward to a great script for ics and kernal from you too.
[EVO Shift 4G Android Development] sparksco:
Updated flashing instructions for the patch. If you do not flash this in the correct order, the permissions for your system partition will not be correct. Thanks and have a good night.
[EVO Shift 4G Android Development] sparksco:
Updated title and OP. This will work on any cm based rom besides mine on rom manager which already include these.
[EVO Shift 4G Android Development] one_love_420:
Your cmparts will not be compatible with U.K.E.(that's on ROM Manager) because the cmparts that is in that rom has many additional options added to it. Just thought i'd point that out before someone makes that mistake.
[EVO Shift 4G Android Development] sparksco:
Ok, do you have the source available for me to view like I do on my OP? If you'd like I can merge your commits and give you the credit for it. Your call. I'm about to update patch2 which will be universal for all devices.

EDIT: Went ahead and flashed your rom to test and it works fine. Just read the OP and follow the instructions. For swap you need a kernel that supports swap. Your current kernel does not support it but it works fine with Pershootv14.
[EVO Shift 4G Android Development] sparksco:
Patch2

Patch2 Updated with a init.d scripts fix for all roms and devices.
[EVO Shift 4G Android Development] one_love_420:
Ok I get that "your" cmparts is required for swap but what I'm saying is its not compatible with uke. And you are clearly missing the point of what uke is about. The patches I "cherry-picked" are working just fine. Just cuz they are not merged doesn't mean much. I test everything prior to releasing. If you look at my change log I have had many of the patches weeks before they are merged. All I am trying to clarify is that "your patch" is NOT COMPATIBLE with ALL roms.
[EVO Shift 4G Android Development] sparksco:
Wow man, as I said the patch still works, why can't you just understand that yes it works. Try it. I DON'T CHERRY-PICK GERRIT, you don't like that I get it. Too bad. Merge the changes from my github yourself from my github or stop trolling.
[EVO Shift 4G Android Development] one_love_420:
Why can't you understand that "your" patch overrides U.K.E.'s cmparts and in return loose the options in cm settings. I.e keyboard slide unlock, custom overscroll color picker, bootanimation changer, and many many more.
[EVO Shift 4G Android Development] one_love_420:
I can care less you don't cherry-pick. I like to test, review, and submit changes. You should try it sometime. And I'm not trolling just stating facts so people know
[EVO Shift 4G Android Development] YoungCorruptionV2.0:
Thanks for the patch Sparksco I've been using it for a while and I like it.

But on a side note: We all get that it DOES work on all roms but if you use it on U.K.E it will render one_loves mods useless so for all U.K.E users this is your warning. Can the fighting finally stop now and go back to being peaceful?
[EVO Shift 4G Android Development] sparksco:
Updated thread title for cm7.x/CM7 based roms only. This will not work on ICS yet. It will takes me quite a bit of time to make this work on ICS but eventually it will work.
[EVO Shift 4G Android Development] halrulez:
Do you have a link to your v10 kernal? Anything after that I can't seem to use. It makes my phone freeze. Yes I can oc up to max on performance but the way it clocks on v14 seems like my phone can't handle it. I would really appreciate it if someone has a link to v10 of sparksco kernal
[EVO Shift 4G Android Development] sparksco:
Here you go man. It's also back on rom manager again.

http://developer.clockworkmod.com/downloads/293/1188/pershoot_port_20111024-signed.zip
[EVO Shift 4G Android Development] TheWebMachine:
Here's the setup:

CM7 Nightly Build #255 (20111116)

CWMR v5.0.2.0

32GB sd

1GB or 2GB EXT3/4 - remainder FAT32

Here's the problem:

sd-ext simply isn't working!

Here's what I've done so far:

Partitioned the card in CWMR several times and at different sizes

Totally wiped the phone and installed fresh

Swapped out sd card (was class 6, now class 10)

Swapped out kernels

Replaced device

df -h reveals no sd-ext partition mount. Manual attempts to mount fail. The part that gets me is the fact that I swapped devices, cards, and attempted to start with a fresh flash...none of which have yielded a mounted and usable sd-ext. In fact, since first getting this device in April, I have only seen sd-ext mount once...on the RM-CM7 rom about a month ago. It booted, sd-ext was mounted, I began reinstalling apps, rebooted, sd-ext was gone and so were my apps again.

What am I missing? Has anyone else used a 32GB card with success? With the limited amount of /data storage internally, I'd really like to get sd-ext working...I average about 60MB of free space if I constantly clear cache files. Yes, I am using "external" storage for as much as I can. :-(
[EVO Shift 4G Android Development] kendotelie:
before i flashed the patch. I used TWRP to create the partition and convert it to EXT 4
[EVO Shift 4G Android Development] blahbl4hblah:
I've had a 32gb and mine works flawlessly even though its on pyramid it still has cm and makes it compatible. Provide us a logcat of first boot so we can better assist you
[EVO Shift 4G Android Development] TheWebMachine:
Something I did late last night got it working. Oddly enough, it wasn't on a clean flash, tho. I restored my nandroid backup, as I was about to give up for the night, then flashed the patch and gapps (out of pure curiosity)...and my internal apps vanished on boot and the sd-ext showed up. I used titanium backup to put the internal apps into the sd-ext and everything has been running smoothly since.

Now, here's the $25,000 question:

It would appear that the script doesn't remove anything from the eMMC /data partition (aside from clearing caches). Therefore, I'm still showing the same lack of free space in eMMC I did before getting sd-ext mounted and linked. Does the script zip I installed have a utility of some sort for managing that space (a script I used on my previous CM6 device had one for moving apps from internal/.android_secure to sd-ext)? If not, what's the best way to clear out the redundant (and now dormant) apks and data in that partition with minimal destruction of my current install?

The bottom line is the fact that I'd like to move all my .android_secure apps to the sd-ext and, upon moving a couple in TB, I realized that the eMMC /data was growing dangerously low on space. Thus, I'm currently no better off with the sd-ext until I clear the eMMC clutter.

Thanks for the help. I'm glad to have finally found a script that works for me...I'm just not as familiar with sd-ext in CM7 as I was with my old device and CM6.
[EVO Shift 4G Android Development] sparksco:
First and foremost open up terminal emulator and see what partitions on your phone if any show up as ext4.

$ su

# ls proc/fs

If you see ext4 listed then do:

# ls proc/fs/ext4

You should see:

mmcblk0p26 mmcblk0p27 mmcblk0p28 mmcblk0p32 mmcblk1p2 (sd-ext). If all your phones partitions are ext4 then I have no idea what's causing it.

Right for cm6 the a2sd was a lot differnet. With cm7 and this patch it is mounting the sd-ext to data. For example, sd-ext/app and data/app get mounted together, making your sd-ext part of your phones internal storage. Same for data/app-private, and data/dalvik-cache.

Most likely what is happening is that you need to use a recovery that formats everything to ext4 instead of ext3 since this patch mounts everything as ext4. Currently koush's recoveries format everything including system, data, and sd-ext as ext3 when you wipe with recovery. I have several recoveries on rom manager that are all based on CWM and are compatible with rom manager as well. Either that or you could try twrp recovery although I'm not sure if it can understand some of my code I use to install the patch. This patch was developed and tested on CWM based recoveries only.

Once you get one of those installed, make sure you go to format everything under format options. Format system, data, cache, and sd-ext. Do a fresh install of the latest nightly and then install the patch like normal. You may even have to re-partition your sdcard to make sure that it is partitioned as ext4.
[EVO Shift 4G Android Development] TheWebMachine:
If I'm not mistaken, the only difference between ext3 and ext4 is that ext4 is just an ext3 partition with journaling turned on (basically). Journaling, in any case, results in way more writes to the card, reducing the lifespan of the card.

On a side note, your mention of TWRP caused me to check it out and I think I prefer it over CWMR. Thanks for the suggestion!
[EVO Shift 4G Android Development] sparksco:
I've had the same sdcard for over a year and it works fine still. I think it's more about what brand of sdcard it is. I always use sandisk and never have any issues.
[EVO Shift 4G Android Development] sparksco:
Very usefull tip thanks for the info. I missed your post before replying lol.
[EVO Shift 4G Android Development] TheWebMachine:
I really don't think I should have to flash fresh just to remove the excess data from mmcblk0p27. If I access the /data partition from within recovery via adb, that will allow me to access the internal copies of /data/app and /data/app-private, right? If so, I should be able to delete the internal copies content of the folders that are now being mounted to sd-ext. It makes sense to me...so long as I leave the /data/app and /data/app-private folders themselves, just remove the redundant files inside.

I've attached screenshots of my partition information. Everything is ext4 and mounted.
[EVO Shift 4G Android Development] sparksco:
Looks and sounds good to me. I just always format or wipe (same as formating) when I switch recoveries, but that's just me :)

Also have you tried any of my custom recoveries on rom manager?
[EVO Shift 4G Android Development] TheWebMachine:
Well, I decided to test my theory. I booted into TWRP, mounted /data, removed app, app-private, and dalvik-cache folder contents, then rebooted. I have nearly 300MB of free space now and everything looks good.

Perhaps the script could be updated to delete the folder contents on the eMMC side to allow current users to flash the script without fully wiping their device or manually clearing like I did. Would be even better if the script would just move the contents to the sd-ext, removing the need to reinstall apks. :)

---------- Post added at 12:47 AM ---------- Previous post was at 12:38 AM ----------

No, I haven't tried them yet. This is the first time I've detoured from CWRM. I'll give them a go after ironing out any kinks with the sd-ext. I don't consider my fixes stable until after 5 or so reboots...and I only reboot every other day. lol

Also, I noticed something...isn't your script supposed to empty the contents of the dalvik-cache before prepping the sd-ext (thought I saw a message to that effect when I installed it)? If so, I'd like to report that the dalvik-cache on the internal partition was still full when I accessed it.
[EVO Shift 4G Android Development] sparksco:
Yeah it does wipe dalvik-cache on both sd-ext and data. But once you reboot it has to re-create all the dalvik-cache which is why is you have a lot of apps on sd-ext like me it takes a very long time to boot even if you don't wipe data.
[EVO Shift 4G Android Development] TheWebMachine:
What I mean to say is, your script failed to erase the contents of my internal storage copy of the dalvik-cache folder when flashed.
[EVO Shift 4G Android Development] sparksco:
No I don't think so it wipes it I've checked. Did you completely ignore my last post?! What do you mean failed? How do you know? When you reboot your dalvik-cache is always going to be there dude. Try wiping it with recovery, when you reboot guess what, it's there again! This is because your phone needs dalvik-cache in order to function properly. Your phone can't even boot or run without dalvik-cache, it's built into all of androids java code.
[EVO Shift 4G Android Development] -somebody-:
a good program for checking hard drive integrity and life span is Hard Disc Sentinel, just sayin...
[EVO Shift 4G Android Development] sparksco:
Is that a window based program or linux? The scripts already check the ext partition for bad blocks. If it finds bad blocks it won't mount the ext partition at all...
[EVO Shift 4G Android Development] -somebody-:
its a program i use in windows to monitor my drives and sdcards
[EVO Shift 4G Android Development] sparksco:
That's cool, I don't use windows personally, too buggy IMO
[EVO Shift 4G Android Development] prguzman1978:
I havent applied these settings Sparksco, do i need to reflash the rom with a full wipe before hand and then apply the patch? I also got to use TWRP do i use ext3 or ext4...
[EVO Shift 4G Android Development] sparksco:
Just follow the instructions from the OP. You don't have to use TWRP in order to have ext4, you can also use my recoveries on rom manager that are also compatible with rom manager. But yes you should wipe or format after flashing a ext4 recovery to make sure that it formats everything to ext4.
[EVO Shift 4G Android Development] prguzman1978:
Got it working!!! Thanx homie...
[EVO Shift 4G Android Development] sparksco:
NP, glad it's working well for you.

On a side note I hit over 100mb's of swap usage today. 107mb's to be exact.

http://db.tt/tZenDhLo
[EVO Shift 4G Android Development] prguzman1978:
Nice!!! You need to tinker with my phone so it can reach the 2GHz mark lol...

---------- Post added at 12:43 AM ---------- Previous post was at 12:41 AM ----------

Hey Sparksco check mines out and tell me whats wrong in these settings...

https://dl-web.dropbox.com/get/Public/screenshot-1323909373148.png?w=85b9268f
[EVO Shift 4G Android Development] sparksco:
Ok, well it seems I can't because I get a error on that link lol.
[EVO Shift 4G Android Development] kendotelie:
Sparksco, answer something for me please. Whats different about your patch compared to other A2SD apps, or SSv8's A2SD, or MIUI w/ A2SD? i ask because what i notice, is that when on CM7 and i flash your patch, and then restore my apps, my 1GB ext4 partition is near full but my internal space is near empty (137 used out of 450MB- I like this by the way), but when on SSv8 or MIUI w/ A2SD, I get the reverse. My A2SD is barely half full and i have a third of the internal memory left. Tbh, it looks like your patch gives true A2SD.