[Eee Pad Transformer Android Development] timduru:
Storage tweak, inversion with microSD / speed boost

Disabling ext4 journaling :

:

This procedure will increase speed and responsiveness of the internal memory by disabling journaling

Disabling journaling will give a big speed/responsiveness increase especially on /data where writing occurs

but the risk of corruption in case of crashes, reboots, running of battery... is also higher.

Make sure you have a backup handy !

If you prefer to play it safe you can use the 2nd disabling zip, which will only disable on /system and /cache which don't contain user data

Corruption is unlikely to occur on /system as it's read only, and /cache is just volatile non user data, so you can simply just format it from recovery if ever something wrong happens.

To disable journaling on /system /cache /data download: dis_journaling.zip

To disable journaling only on /system and /cache : dis_journaling_system_cache_only.zip

To enable journaling back download: ena_journaling.zip

0) Put the zip on your microsd card

1) Boot into recovery

2) unmount everything but the microsd card (that means /system, /cache /data ... )

(the script will also try to unmount these, but better be safe in case the script doesn't succeeds)

3) flash zip

4) reboot

Note: Disabling journaling should only take a few seconds unless your filesystem is already dirty (fsck will take place before and after the journaling change)

Enabling journaling can take longer, especially on /data (mmcblk0p7)

Just be patient.

To disable journaling you will need to reflash the zip after you format /cache /data or /system (that means after installing the rom or after wiping cache if you do that after installing the rom)

Storage inversion(inverts microSD and internal storage) :

:

This procedure will allow you to use your MicroSD as the internal /data partition (which means /data, /sdcard, /data/media ...)

So you can now have whatever extra space for "Android internal storage" you like (ie what your physical microSD size is)

And your old internal storage will be used as /storage/sdcard1/

I might see later on to remap things a bit more logically, but for the moment it's kinda less risky and easier to remember to just swap everything.

Not that I care much about the extra space myself,

but the good thing is that if you use a good MicroSD, things will also be much faster,

and for example it doesn't lag anymore when installing apps and such.

Make sure you understand what it means and what you are doing.

And backup everything first of course !

As reference:

Physical Internal partition is /dev/block/mmcblk0p7

Physical MicroSD partition is /dev/block/mmcblk1p1

These won't change, only the mount points are changing.

The commands can be typed directly from twrp command line thingie, or you can run them through adb

(just add adb shell in front of the command in that case)

One thing to note is that the recoveries don't know at all that your mount points are swapped, so it will still show them to you the "old non swapped way"

It won't know how to make a factory reset while retaining your data for example.

1) Boot into TWRP (I use v2.3.2.3, it might differ if using another version)

2) WIPE MicroSD content (that means it will be empty afterwards)

unmount your microsd

/sbin/make_ext4fs /dev/block/mmcblk1p1

If you still need to transfer your data from the internal storage you can go to step 4) then come back later to do step 3) only

3) If you have transferred your data from your internal storage, you can format it too:

unmount /data and /sdcard

/sbin/make_ext4fs /dev/block/mmcblk0p7

remount /data

then

4)

/sbin/chmod -R 777 /data

5) Flash the KatKernel version marked with _invertstorage

6) Reboot.

Unless you transferred your old /data into your physical new microsd partition, it'll be like if you did a factory reset,

so you will just need to go through the setup again.

And of course, From now on NEVER remove your microsd card if the system is running.

Enjoy the extra space & speed :)