yashsingh1/xdaforums huggingface dataset:
[Asus Transformer TF700] Mistar Muffin:
Hey everyone,

I got really busy with life around the holidays and then we went to NYC for New Years. It took me the following week to recover from New Years Eve in Times Square. I got back to work about a week ago and have been playing catch up there. I appreciate everyone's patience. I have updated the OP with a mod for CleanROM 3.1. Since I do not use CleanROM, please report any issues or bugs you find.

A note regarding CM 10.1: Google has changed a good bit of how the mount points work in Android 4.2 to support multi-users. This mod required time to adapt to those changes. I completed the port to Android 4.2 but I am having further difficulty in getting the modded elements to repackage using the latest (and supposedly 4.2-compatible) apktool. Until I get past these issues there will be no more mods for CM.
[Asus Transformer TF700] smalis:
Does this differ at all from the file sbdags uploaded in post 900?
[Asus Transformer TF700] buhohitr:
Yes it is, the framwork file is different, I heard one user has issue with internal memory is not displayed correctly with sbdags's file. You should try this one out see if you have any issue, since Mista is the expert I don't think so!!
[Asus Transformer TF700] bluntman420:
If you have any spare time is it possible for you to apply the mod to clemsyns 700mhz gpu at 1450mv kernel please. I would really appreciate it, thanks!
[Asus Transformer TF700] lucius.zen:
Mountdata2sd

I am unable to download the CROMI 3.1 zip and the mount-data2sd.zip from dev-host, it keeps saying the download was unsuccessful. I tested other websites and I am able to download just fine, I have had no issues with dev-host in the past, does anyone have any suggestions?
[Asus Transformer TF700] aznmode:
Thank you. It's ok I will just use 3.1 for now and hope an OC version will be available later down the road.
[Asus Transformer TF700] BuPe:
TF101 compatibility?

Sorry for going a little off topic, however my searches did not come up with any conclusive results. I have some lag issues with my original Transformer (TF101) and I was wondering if I can apply the Data2SD MOD to my tablet as well or is this strictly for TF201 and later devices.
[Asus Transformer TF700] thrutheeyes:
How does the tablet know to use micro sd card system as oppose to the internal with the original system on? Like installing apps etc. Also there will be 2 operating systems, one on internal and one on microsd? I dont want to wipe my internal incase i mess my card up.
[Asus Transformer TF700] buhohitr:
No, you will not lose your internal. Infact if you do a backup/restore setup with data2sd, you will have another copy of your internal on your sdcard (all your setup remain intact). This was done by tweaking the rom and the kernel to change the data/sdcard mount point from internal memory to micro sdcard memory. You still have one O/S, but you have 2 data/apps locations, one on sdcad and the other on internal memory. Example, if you installed apps, A,B,C on your internal, then later on switched to data2sd, then install apps D,E,F. If you switched back to internal (remove data2sd mod), you will see your A,B,C apps again. If you made a backup of your internal, then mountdata2sd, then restore your backup, now your internal and external sd card will be exactly the same. For more details you can check with the OP page. Hope this help.
[Asus Transformer TF700] thrutheeyes:
Thanks!

Sorry if I'm an idiot but the OS is located on the internal and another version on the SD card. When you come round to booting up how does the system know to use the data sd version of the OS and then furthermore to install apps into the /data of the sd card rather than the /data on the internal?

is it as simple as its just all been configured in installation under the hood so dont need to worry about it?
[Asus Transformer TF700] buhohitr:
There is ONLY ONE O/S. Simple put, like your computer, the OS only see the letter D as your drive, you can redirect the D drive as internal hard disk or external hard disk, it doesn't know or care. By changing the path for data/sdcard location in the kernel and the rom, the OS stills looking for data/sdcard, but it doesn't know that they are now on external sdcard instead of internal. The internal for data/sdcard is now named sdcard1 and data1, this is convinience if you want to transfer data between external sdcard and internal memory.

Summary: One Operating System, 2 data locations, one on internal and one on external sdcard. With data2sd, the Operating system stills think it write to internal but actually it writes to external.

To answer your last question, YES, everything is configured under the hood, all you have to do is format your sdcard the right way then flash the zip file and you're done!!
[Asus Transformer TF700] thrutheeyes:
Bingo, thanks!!
[Asus Transformer TF700] smalis:
With the caveat, I believe, that the OS "re-direct" to the external card does not happen "under the hood" when you boot to recovery - so, after booting to recovery, you need to flash the mount-data2sd.zip file to manually "re-direct" the OS, before you backup, restore, factory reset, etc. See post #2 of this thread for the OP's explanation of this, to which I defer in case my understanding is not correct in any way.
[Asus Transformer TF700] _that:
Correct, because the recovery is actually a completely separate OS.

Actually, you could even run Ubuntu as your recovery. ;)
[Asus Transformer TF700] Mistar Muffin:
Think of the flash chip inside your Transformer as a storage device and likewise the microSD to be a separate storage device. The internal storage device is partitioned in to many separate chunks. These partitions house different things, like data, cache, system (ROM files), and recovery. Inside the ROM kernel is a text file that tells the ROM which storage device and which partition on that storage device to use. So in plain English, this file will say:

Use <internal sdcard, partition 8> as /data.

I modify this to say:

Use <external microSD, partition 2> as /data.

Likewise, since recovery is its own OS with its own kernel, it will by default mount the internal storage chip as /data and look for your nandroids and zip files there. The mount-data2sd.zip tells the recovery to switch to the microSD for /data after booting. I suppose someone could compile a custom version of the recovery with the microSD mount points but I think that would be much less useful.
[Asus Transformer TF700] airmark:
or run it in a virtual machine. I did that and it worked. Besides the fact that I didn't have a usb drive handy at the time, it is far more convenient to do the whole operation any time without restarting windows.

---------- Post added at 10:42 PM ---------- Previous post was at 10:34 PM ----------

What if it detected the presence of data2sd and if found, suggested to mount the relevant partition as /data? Either way, give an option at boot time.
[Asus Transformer TF700] bluntman420:
Mistar Muffin, I know you are a busy person. I have asked a couple times about modifying the latest clemsyns kernels to work with data2sd. I have not heard anything back. I would really appreciate it if you could. Thanks!
[Asus Transformer TF700] buhohitr:
If I'm not mistaken, the new kernel .23 is identical to the .20, so Mista only needs mod the 3.1 stock rom/stock kernel to use data2sd. Once you flashed the modded data2sd_cromi3.1, and if you want to flash the Overclocked kernel (clemsyncUniversal or Clemsync1450, etc..., you just need to pick one and flash right over it. He also made one for the cM10.1, if you have CM10 rom.
[Asus Transformer TF700] timeline62x:
Browser Performance

Is anyone else having really bad browser performance (any of them: chrome, stock, dolphin) while an app is downloading? How much is this mod supposed to actually help?
[Asus Transformer TF700] Unibrow:
The mod is going to completely be dependant on the quality of the sd card you are using. I initially had some stuttering and general lagginess after using the tab for a little while and realized that when I did a titanium backup browser2ram was reinstalled. Uninstalled that and restarted and it's been pretty awesome since. Still hiccups sometimes but nothing horrible like before and really only when I'm switching to different tasks. I'm using a Sandisk 32gig class 10 and running the stable release of CM 10
[Asus Transformer TF700] thrutheeyes:
SanDisk Ultra 32 GB MicroSDHC Class 10 UHS-1 Memory Card?
[Asus Transformer TF700] smalis:
I tried to install clemsynTFUniversal650GPUver7 (Stock/CleanROM) after installing cromi-3.1-data2sd.zip, but got bootloops, so I am a bit wary right now of flashing any other kernels.

But, SetCPU shows my Infinity overclocking as high as 1.8 after flashing cromi-3.1-data2sd.zip from the OP. As that file comes with a "modified stock kernel," it seems that cromi-3.1-data2sd.zip has OC built in. Or, am I missing something?

Here is my kernel version:
[Asus Transformer TF700] Unibrow:
That would be the one
[Asus Transformer TF700] bloodylipp:
sure this has been asked and i appoligize ahead of time.

the only time i really care about lag is during games. i like playing vice city and thats the only game i notice any lag. will this fix that?
[Asus Transformer TF700] Unibrow:
It will fix the issue for you IF it's related to the game caching lots of information, though lag in a game could be anything from the i/o issue to the govenor you're using for your tablet to background apps chewing up lots of available memory. I find the tablet in general to be much better having done this mod, though it's still not completely lag free when it comes to certain things even though it's pretty damn close to lag free post data2sd.

Personal anecdote, I'm finding my gaming experience to be better though the biggest improvement is with web browsing and using Google Now.
[Asus Transformer TF700] buhohitr:
Some how, It seems that after you flashed cromi-3.1-data2sd.zip and you have OC and based on your screen shot, you already have Clemsync kernel, not stock kernel. I wonder that the cromi-3.1-data2sd.zip is actually included clemsyn kernel instead of stock kernel??? I need to check it out before I can give you a concreat answer.
[Asus Transformer TF700] aznmode:
Using CPU spy, It looks like cromi 3.1 data2 sd will go up to 1800mhtz in performance mode and 1500 in balance mode. But overclocked GPU I'm not so sure.

---------- Post added at 01:20 PM ---------- Previous post was at 01:08 PM ----------

I dont have this issue when flashing the clemsynTFUniversal650GPUver7 data2sd kernel posted in the OP. The only issue with it is when I look at my storage I dont see my internal 32gb on the list. But just my sdcard partitions. This isnt an issue with Cromi3.1 data2sd kernel.
[Asus Transformer TF700] steveman29:
Hello Mistar Muffin could you please modify the latest clemsyn's 700gpu kernel for data2sd?
[Asus Transformer TF700] tahngarth:
So I think I slightly screwed things, but not sure how.

I got data2SD flashed and got back into android and copied a TWRP backup to the external SD. I then restored system and data. Everything seems right except that sdcardi is either not mounted or empty all of a sudden. My gut says that restoring system was bad!

Thanks!
[Asus Transformer TF700] buhohitr:
If you provide the exact step by step what you did, maybe we can help!
[Asus Transformer TF700] tahngarth:
Ok, here's some more detail, to the best of my memory

Still using internal sd card:

1. Performed backup in TWRP

2. Flashed Data2SD

3. Rebooted into android

Using external SD:

1. Went through android setup

2. Downloaded solid explorer and copied backup from internal card to external

3. Rebooted into recovery

4. Flashed mount-data2sd

5. Restored data partition

6. Restored system partition (this was truely done as two separate steps)

7. Rebooted

8. Still boots but internal card now "empty"
[Asus Transformer TF700] buhohitr:
I don't think Androbench is reading it correctly, If I used SD card tester and point to the new card, sequencial reads=20MB/s and sequencial write=14.51Mb/s. There is noway with 1.5Mb/ seq write and 5.5Mb/s seq read. This thing is going to take an hrs to load one image.
[Asus Transformer TF700] hobs0n:
LeBump!

Has anyone got this working with the windows partition program or do I really have to do this with the linux boot cd???? talk about much work...
[Asus Transformer TF700] dan.kels.r:
i crashed a 2month old sandisc using windows. so my new g skill i used my old HTC Evos custom recovery to partition the card it works great. other than that id use gparted. you can also use unetbootin to install ubuntu to sdcard or usb and boot from that. no install to pc required. live cd works as well
[Asus Transformer TF700] hobs0n:
ah yeah true true.. im just a bit lazy ;) ill try that in the weekend when I have lots of hours over
[Asus Transformer TF700] psych2l:
I know the process is involved but I'd love to see a modified Clemsyn Kernel for CM10 that was just posted. I'd have the best of both worlds then :)
[Asus Transformer TF700] buhohitr:
I waisted 2 days trying all windows program and none of them work, best bet to use linux boot cd, sounds a lot of work, but it's not bad, only 15 min, I downloaded the iso and a small program, burn iso to disk, boot into linux and everything went smooth.
[Asus Transformer TF700] Mistar Muffin:
Due to the fact that ROM and kernel choices are increasing for the TF700 (see: the release of Clemsyn's CM10 kernel), I need to rethink how I package these mods. Right now, the flashable zips contain a modded kernel AND modded files from a particular ROM. That means, for each new nightly of CM10, I have to create a flashable zip that has the modded ROM files and a modded CM10 stock kernel, and another zip that has the same modded files and a modded version of Clemsyn's kernel. Every night. Here is what I am thinking about doing:

Third party kernels that do not ship with the ROM will be packaged as their own flashable zip. These zips will not have any files that are specific to any version of a particular ROM. The modded kernel will be compatible with the same ROMs that the original was. Using Clemsyn as an example, I would only have to create a new flashable zip when he updates his kernels.

The ROM mod would still need to be made for each revision of the ROM and would come packaged with the stock kernel. The flash process would be something like this:

Flash ROM -> Flash data2mod for same revision of ROM -> Flash data2sd modded custom kernel (like Clemsyn)

This would actually be very similar to what you have to do now even without data2sd. Flashing an upgrade to a ROM will overwrite your custom kernel which will have to be flashed after the ROM.

Thoughts?
[Asus Transformer TF700] buhohitr:
OK, wait a min, Right now, let say I'm on cleanrom 2.3/stock kernel, now if I want to use Clemkernel, I have to flash data2sd cleanrom, then flash Clemkernel, then flash data2sd-clemkernel? Is this correct?? the reason I asked because from stock cleanrom, I only flashed clemkernel then flashed data2sd-clem-kernel. Thanks.
[Asus Transformer TF700] Mistar Muffin:
Well, it depends. If you are on CleanROM 2.3/stock kernel and already on data2sd, then you would just flash the modded Clemsyn kernel. You would not need to reflash the ROM, or the data2sd mod.
[Asus Transformer TF700] buhohitr:
oh I see, I being doing double work. If I want to upgrade to Clemsynkernel and your mod from stock 2.3cleanrom, I just flash your package, which upgrade to Clemsynkernel and data2sd at the same time..Thanks for clarifying.

EDIT: what is the best way to remove data2sd mod??
[Asus Transformer TF700] Slammin:
Reflash a kernel, wipe caches
[Asus Transformer TF700] denpri:
I can second this observation! Also wasted about 2 days using the Windows 7 MiniTool program but the Data2SD mod would never work right (Bootloops immediately after install).

Here's a list of steps that DID work for me today:

1) Booted Ubuntu "Linux on a stick" (i.e., installed Ubuntu on a USB drive) and ran GParted.

2) Formatted my Sandisk 64GB UHS-1 MicroSD (8 GB Fat32 partition #1 and remainder Ext4 partition #2).

3) Rebooted Windows 7 and copied various install ZIPs to Fat32 partition.

4) Installed MicroSD in TF700T.

5) Used TWRP (along with a flash of the Mount-data2SD from Post #2 to wipe the MicroSD data partition (i.e., Ext4 #2) before installing ROM & kernel).

6) Flashed both CleanROM 2.3 and the Clemsyn/Data2SD kernel from Post #1 in the SAME flash (i.e., used TWRP's multiple flash capability).

7) Wiped Cache/Davlik

8) Rebooted TF700T

9) Success! No more bootloops
[Asus Transformer TF700] Mistar Muffin:
That is currently how it works. I am thinking about splitting the data2sd mod and the custom kernels into separate packages. So from CleanROM 2.3 you would flash data2sd for CleanROM, then the data2sd modified Clemsyn kernel.

Just flash the original ROM and you will switch back. Make sure you wipe /cache
[Asus Transformer TF700] Mistar Muffin:
ROM files are modified in addition to the kernel, best to flash the whole original ROM. The ROM will come with a kernel, so it will replace both the modded kernel and the modded files.
[Asus Transformer TF700] TitanUranus:
Can't find an answer...

OK, at the risk of asking something someone has already answered, but I can't find anywhere, is there no way to make the internal storage available to normal apps (yes I can see it in root explorer, but I want to be able to use it in normal apps)? I'm not sure how, but wouldn't formatting the internal storage partition to fat32 make it available? If so, how would I go about doing that?

I only got my TF700 a few days ago, and have been trying out many kernels and firmwares, this along with cleanrom 2.3 seems to be the best combination. I just witsh I had access to that 50gb internal storage for old magazines and videos.

Thanks to everyone who've made the TF700 as marvelous as it is.
[Asus Transformer TF700] Mistar Muffin:
Yes, with my modification you should be able to access the internal storage with normal apps. This is a major difference between this mod and first gen one. The location is:

/storage/sdcardi

There are two symlinks to the above location:

/sdcardi

/mnt/sdcard_internal
[Asus Transformer TF700] TitanUranus:
I just tried reinstalling completely (wiping every partition and installing CWM instead of TWRP just to be sure) but I'm getting the same thing, the file explorer refuses to let me copy anything to either /storage/sdcardi or /mnt/sdcard_internal. I tried to change the r/w settings using root explorer but it says I'm unable to do that (and it doesn't actually let me copy anything either). This is puzzling - is it a permissions problem? Thanks for the prompt reply by the way, I really appreciate it. Other than this internal storage problem I love this mod, great work.
[Asus Transformer TF700] Mistar Muffin:
I just formatted everything and installed CleanROM 2.3 and then my mod. I am able to use Root Explorer to go to /sdcardi and create a folder no problem.

I also found a solution for CleanROM users who want access to the internal storage over USB. I have created a folder on the microSD card called "sdcardi". This folder will point seamlessly to the internal storage. This means you can connect USB to the computer and open SD Card and then see "sdcardi" folder and access internal storage through it. Also, this is a nice bonus for some Android apps. Some apps, like Dice Player, have built in file selector to open media, but will not browse outside of /sdcard. Even though /sdcardi will let you see media on internal storage, the app will not let you change to that directory. With the /sdcard/sdcardi path mapping to the internal storage, you can access internal storage from apps that would not otherwise support it. Export from Dropbox to internal storage? Check! Access internal storage from ASUS File Manager? Check! I actually just used the ASUS File Manager to copy my TitaniumBackup folder from the internal storage to the SD Card as a test. I copied:

/sdcard/sdcardi/TitaniumBackup to /sdcard/TitaniumBackup

Works great! I hope this explanation makes sense to everyone. It's late and I feel like I'm ramblinga bit.I'll try to package something up for tomorrow.
[Asus Transformer TF700] psych2l:
Thanks for all the support, I hope you have time to package something for us CM10 folks that want to try the I/O optimized nightly with Clemsyn's kernel ;)
[Asus Transformer TF700] TitanUranus:
Thanks

Thanks for all your efforts. I've been able to copy stuff into Data2 using root filemanager, and from there I can use normal file manager to open pdf files (though I cant navigate to them in repligo PDF reader) so that's fine. I've ordered a 64gb SDXC (sandisc ultra class 10) so I'm hoping I can backup the 32gb SDHC I've installed everything to OK. Actually, if anyone wants to create a single ext4 partition for their SD DATA instead of having 2, here's the (half arsed) way I did it using GPARTED (the formatting to fat32 first was done this way cause I found it faster):

1 - Delete all partitions/create new partition table

2 - Create a 50mb fat32 which is partition 1

3 - create a massive fat32 partition (which is partition 2)

4 - Delete the 50mb partition 1

5 - Resize the big partition 2 to swallow the 50mb free space

6 - format the resized (full SD capacity) partition to ext4

Doing it this way means the partition ID is still showing it as partition 2 so it works fine. I think partition wizard for windows might be able to change the ID but it's a very long time since I tried. Now I look forward to getting my 64gb SDXC, and I'm copying all my old scanned computer mags into internal storage. Thanks again.
[Asus Transformer TF700] _that:
From a terminal (or via adb shell), what is the output of "mount"? (or "mount | grep ^/dev" to filter out the uninteresting lines)
[Asus Transformer TF700] aznmode:
so in your setting > storage, internal SD isnt listed? If that's the case I had this problem with using other data2sd kernel and now with the cromi 3.1 data2sd. The only way I can see internal back in setting is to flash cromi 3.0.3 data2sd. Assuming of course you are using Cromi Rom?
[Asus Transformer TF700] tahngarth:
This is cromi 3.1, but it all worked correctly before the restoration. Only one SD card shows up in settings. Below is the output of mount

Thanks all!

u0_a51@android:/ $ mount | grep ^/dev

/dev/block/mmcblk0p1 /system ext4 ro,noatime,nodiratime,user_xattr,acl,barrier=0,data=ordered,noauto_da_alloc 0 0

/dev/block/mmcblk0p2 /cache ext4 rw,nosuid,nodev,noatime,nodiratime,errors=panic,user_xattr,acl,barrier=0,data=ordered,noauto_da_alloc 0 0

/dev/block/mmcblk1p2 /data ext4 rw,nosuid,nodev,noatime,nodiratime,errors=panic,user_xattr,barrier=0,data=ordered,noauto_da_alloc 0 0

/dev/block/mmcblk0p8 /data2 ext4 rw,nosuid,nodev,noatime,nodiratime,errors=panic,user_xattr,acl,barrier=0,data=writeback,noauto_da_alloc 0 0

/dev/fuse /storage/sdcard0 fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0
[Asus Transformer TF700] _that:
OK, apparently the external microSD is mounted as /data (mmcblk1p2) and the internal storage (mmcblk0p8) is on /data2 - your internal files should be there (in /data2/media). What's missing in your list is an entry for /dev/fuse to /storage/sdcardi - maybe you installed an old version of Data2SD?
[Asus Transformer TF700] BRG:
Cant see my internal anymore only in root ex? but cant use it
[Asus Transformer TF700] sbdags:
CROMI 3.2 released so will need a quick patch by Mister Muffin to get it working.

You will probably boot loop if you move to 3.2 with data2SD so don't until he updates the first post please.
[Asus Transformer TF700] Consension:
You probably flashed the patched OC kernel, no? The kernel, posted in the OP of this thread, has yet to be updated, with the recent 3.1 data2sd modification. I think Mistar sorta just rushed a release, to keep us updated.
[Asus Transformer TF700] CeeJayII:
I've been runninng the 3.1 data2sd fix that you made and it has worked perfectly. Perhaps you would be kind enough to update 3.1 to 3.2 since Muffin has been so busy lately :)