yashsingh1/xdaforums huggingface dataset:
[Asus Transformer TF700] _that:
I had exactly this effect. Then I uninstalled Velis Auto Brightness, which fixed the problem.

I have nothing to do with that kernel. My Data2SD solution is an add-on to the standard -that2 kernel.

In the Data2SD thread. Where are the other versions you speak of, and how do they differ?
[Asus Transformer TF700] KinetiClutch:
Hmm wonder why it happened to me. Don't think any auto changer was included so no idea why it was happening on mine.possibly kernel side?
[Asus Transformer TF700] _that:
Definitely not a kernel issue. I could still set the brightness from the command line using the sysfs control - only moving the GUI slider had no effect.
[Asus Transformer TF700] KinetiClutch:
Weird. it was on an old build of cromi to be fair!

Glad your experimenting with your own rom though.more developers can only be a positive thing
[Asus Transformer TF700] smalis:
I am on CRI-X 4.3 Final.

Kernel is "3.1.10-10.6.1.14.4-that2+that@ws #5".

Can I simply flash "data2sd-jb42-that0.zip" (with, of course, a correctly formatted SD card) to convert to Data2SD?

(No need to use mount-data2sd.zip?)
[Asus Transformer TF700] buhohitr:
Yes, correct!
[Asus Transformer TF700] mrbillishere:
Hey _that just wanted to say Kudos for keeping these kernels coming. I'm a big fan.

BTW, I also appreciated the change I noticed where instead of the internal SD partition being mounted as /data2 it's now referenced as /datai

Only one small character changed but man it is really useful and now much easier to keep straight in our heads which data partition is which.

Cheers.
[Asus Transformer TF700] fiidim:
You need to flash mount-data2sd.zip, and re-install CROMI-X (in the same TWRP session) (or restore a backup). Without this step, you will just be booting into your original ROM installation.

Once rebooted, then you need to flash "data2sd-jb42-that0.zip".
[Asus Transformer TF700] smalis:
Thank you for _that (get it?) - I nandroided, full wiped (I can be a bit anal), flashed mount-data2sd, full wiped, restored nandroid, rebooted directly to TWRP, flashed "data2sd-jb42-that0.zip", rebooted and am swimming in Data2SD goodness. All seems fine, sdcardi is there, no problems.

Many thanks to _that!!
[Asus Transformer TF700] _that:
Not true. You can always install the add-on at any time after the ROM to start with Data2SD. You just lose access to the very few apps that CROMi-X installs on the data partition, which you can restore from a backup or download from the store.
[Asus Transformer TF700] smalis:
_that, it worked exactly as fiidim said. The first time I did it, I was running CRI-X 4.3 on the internal sdcard, fully configured with my apps and launcher, with 3.1.10-10.6.1.14.4-that2+that@ws #5 kernel. First, I did a nandroid. Then, I reformatted my EXT4 partition on the external microsd (in GParted). Inserted the microsd, booted to TWRP and flashed data2sd-jb42-that0.zip. Rebooted and was greeted by a Data2SD install of a

fresh

CRI-X installation, had to go through the setup wizard, and only had the ROM apps.

The second time I did it, I rebooted to TWRP, did a full wipe (of internal), flashed mount-data2sd.zip, did a full wipe (of external EXT4), restored nandroid of my fully configured CRI-X 4.3, rebooted directly to TWRP, flashed data2sd-jb42-that0.zip, and rebooted. This time I was greeted with a Data2SD install of my fully configured (nandroid restored) CRI-X 4.3, with all my apps and configured launcher.
[Asus Transformer TF700] maxal:
That's what I did and it worked for me too.
[Asus Transformer TF700] _that:
Well, you just reformatted your ext4 partition on the microSD card, which gets mounted as /data, so what else did you expect? :)

I just said that it's redundant to reinstall your ROM you want to enable Data2SD. If you want your old data on the microSD, surely you need to restore it.
[Asus Transformer TF700] smalis:
_that, I defer to you on all, I am not trying to disagree with you in any way.

I think we are simply miscommunicating, and I am sure it is on my end. I originally asked (perhaps not clearly) if I could convert my existing installation of CRI-X to Data2SD by merely flashing data2sd-jb42-that0.zip, or if I had to in some way use mount-data2sd. In my most recent post, I was trying to make clear to all users who, like me, don't have a full understanding of all the under the hood stuff, that you do need to use mount-data2sd to move your existing install to Data2SD.

Sorry for the misunderstanding.
[Asus Transformer TF700] _that:
To convert your ROM to Data2SD (which does not include moving your existing data to the card), that's really the only thing you need. You need to repeat it after any reinstallation of the ROM.

I'd like you (and other users like you) to get more understanding of all the "under the hood stuff", so I'll try to explain a little more:

Yes, to move your existing data to the external card, you need to have a backup of your /data, run mountData2SD and restore /data. This procedure is independent from flashing the Data2SD add-on for your ROM. Of course, if you also restore a backup of /system that didn't already include the Data2SD add-on, you need to also install that after restoring.

I hope this explanation reduces confusion and doesn't increase it. ;)
[Asus Transformer TF700] _that:
A small status update: The ROM is stable and fast, despite containing almost none of the usual tweaks. Smoothness is not totally consistent (I still don't know why), but at its best it is even more fluid than CROMI. I also tried Quadrant: 5340 in balanced mode with all stock settings. Ah, another note: I have *never* wiped data since I own this device and I have over 130 apps installed - incrementally updating from 9.4.5.22 to the current version has always worked fine for me.

And today I did my first smali mod, which worked on the first try - I made the "Docking connected - Use keyboard to type words" notification dismissable. That means it still appears to inform me that the tablet recognized the dock, but I can swipe it away or tap the "X". Yes, baby steps, but I had to start somewhere. :)
[Asus Transformer TF700] sbdags:
Nice! Let us know when you have a test version. I'd be happy to provide feedback :)
[Asus Transformer TF700] _that:
Thanks! First I want to make it clear that I'm not planning to compete with you in any way - especially I have no interest in building (and testing!) such a nice installer for my ROM as you have done for CROMi(-X). For me it's just a personal project. I am more interesting in building and sharing knowledge and components than providing complete solutions.

By the way, talking about sharing components - what about including the Data2SD auto-detect add-on (see post 56 or so in this thread) into the next CROMi-X installer? It's much smaller than the separate Data2SD kernel and better. :) And if Hundsbuah keeps my init in his ramdisk, it will automagically work with his kernel too.
[Asus Transformer TF700] KinetiClutch:
That sounds perfect! If it's possible anyways.

Also i know it's a very long shot and probably needs immense levels of cooperation, but would it ever be possible to get Bryce's cornerstone into CROMI? Maybe something for the future anyways. (I CAN DREAM)
[Asus Transformer TF700] _that:
Cornerstone requires a lot of source code modifications in the framework (window manager, input dispatching, etc., including native code), and we don't have the source code for the Asus stock ROM.
[Asus Transformer TF700] KinetiClutch:
true never really thought of that! Ahh well! CROMI has been such an immense improvement from stock i'm just wondering the possibilities!
[Asus Transformer TF700] Tylorw1:
_That, have you attempted or started working on a version 3 kernel or an OC kernal? You make awesome stock kernels, it would be neat to see what you could do to get an awesome OC kernel going.

Tylor

ROM: Cromi-X 4.3

Kernal: _That's V2
[Asus Transformer TF700] fiidim:
My incorrect assumption was that dome or all of the ROM installation was with /data partition (which is wrong). It would be cool if that was possible, since you could change ROMs and setup, just by swapping External SD cards.

As it is, I suppose you would only be swapping configurations of the same ROM.
[Asus Transformer TF700] _that:
When I created the overclocked kernel for 10.4.4.25 based on clemsyn's work, I ran it for a while, but didn't see any real benefit. Higher benchmark scores were nice, but daily use didn't improve at all for me. Then I read about an increased number of suddenly dying tablets (not necessarily due to overclocking, but who knows), and I decided to operate my device within specs again.

Now we have Hundsbuah who spent a lot of time figuring out how overclocking works, and who has created an awesome overclocked and tweakable kernel. I don't see how I could do any better.

Yes, with Data2SD you can have multiple separate sets of configuration, user apps and user data (one in the internal memory, and one per external microSD card) and you can switch on every reboot, but the ROM exists only once, in the internal storage.

It is actually possible to run a ROM from the external card. I did it for a while, dual-booting CROMI 3.4 from the internal storage, or stock Asus 10.6.x from the microSD card. You just need a slightly modified Data2SD package for ROM2SD, and a microSD card with three partitions. Only getting the ROM onto the card requires a bit of Linux knowledge.
[Asus Transformer TF700] dasunsrule32:
I'm poking through the kernel sauce, but no luck yet. Is the HDMI output that can be scaled through the ASUS settings on stock to 1080p, set via sysfs? I guess I can rip apart Asus' settings and see what they are doing, but I'm being lazy :) I want to add it to CM10.1's device settings. Thanks :)
[Asus Transformer TF700] RedSkyRoad:
Hey :) Great kernel...

I'm, currently running CROMI-X 4.3. I was tempted to buy an SD card yesterday for Data2SD but was unsure whether it works yet. If I put it in the slot and flash the ROM with full wipe, will it utilize it? Do I need to use your add-on?

Regards,

B
[Asus Transformer TF700] _that:
Sorry, no idea. I tried HDMI a long time ago just to confirm it works, but currently I don't even have a cable with me.
[Asus Transformer TF700] cjhmdm:
Is there a way to mount the internal storage to /Removable instead of /sdcardi?

The reason for this is because, while we can read/write from /sdcardi, it's not possible to access anything from there in other apps. For instance, no media player I have tried can find the Music folder. So I'm thinking that if we can mount it in /Removable - like the 1st partition on the microsd is - then we can use it as an ordinary removable storage device.
[Asus Transformer TF700] _that:
It is easy to create another symlink - edit /system/boot/rootfs_data2sd/init.cardhu.rc, find the line "mount tmpfs tmpfs /Removable ..." and insert below: "symlink /storage/sdcardi /Removable/InternalStorage".
[Asus Transformer TF700] cjhmdm:
While this does create the symlink properly, it still has the same result of being unable to access the data from other apps (like music files in a media player). Any other ideas?
[Asus Transformer TF700] _that:
I can see the symlink and access the internal storage now with the Asus file manager.

For a better integration with apps that don't allow selecting folders we might need to modify the storage list in the framework.
[Asus Transformer TF700] RedSkyRoad:
This mod is super! My tab is so liquid smooth and fast!
[Asus Transformer TF700] cjhmdm:
I've been trying to find a way to emulate how android mounts an external card to /Removable (for instance, how the first partition of the microsd card gets mounted as /Removable/SD) but haven't had much luck so far.

From what I can tell, I've been able to set up the necessary links inside /Removable and start the sdcardi service under /Removable/sdcardi but it's still not recognized by other apps - such as google play music, power amp, winamp and such).
[Asus Transformer TF700] _that:
Try to find out how to make the media scanner scan your directory. If the media scanner has it in its database, it will show up in these apps.
[Asus Transformer TF700] sbdags:
Yes this is how Mistar Muffin does it. He adds sdcardi and switches with sdcard in the storage.xml in framework.res

I'll make a crude patch later and then look at actually patching the file probably later. :)
[Asus Transformer TF700] cjhmdm:
Yeah, no matter how I do it, I still get nowhere. I feel like I'm so close though heh.

I'll try modifying the framework myself but it becomes highly annoying having to use this aapt for the rom, that apktool for the other rom, so on and so forth heh... I thnk I have about 5 or 6 different version of apktool and aapt, and it's always hit or miss on which ones work for which rom on which device and whatnot...
[Asus Transformer TF700] cjhmdm:
I don't seem to be getting anywhere heh...

I've downloaded a fresh copy of apktool, apktool linux deps, and apk signer. My Android SDK is fully up to date as well.

Then, the following (Pretty much the same routine I've used time and time again on my galazy s2 and note 2):

- extract cromi 4.3 rom and copy framework-res.apk to my dev area

- apktool if framework-res.apk

- apktool d framework-res.apk

- apktool b framework-res (no modifications made at all)

- sign ./framework-res/dist/framework-res.apk using apk-signer

- cd ./framework-res/dist && mv framework-res.apk framework-res-zip.apk

- zipalign -f -v 4 framework-res-zip.apk framework-res.apk

- Verification successful

- copy new framework-res.apk to device, replace existing /system/framework/framework-res.apk with new one and set proper permissions using rom toolbox pro

- reboot device

- bootloop

So either I missed a step, I did something wrong, or I'm using the wrong tools. Any thoughts?

EDIT: I also tried the same steps above but skipping the zipalign step just for sh*ts and giggles but I get the same result.

By the way, this is not meant to be a thread derailment as I'm [attempting] to do this specifically for your kernel and data2sd script, but my apologies if you'd rather discuss this elsewhere.
[Asus Transformer TF700] _that:
I am not really experienced with apk modding yet, but try injecting your modified resources into the original apk - or copy META-INF from the original apk to yours.

It doesn't really belong to the kernel, but it's not more off-topic than my own posts about my modded ROM here, so I have no problem keeping this discussion in this thread. :)
[Asus Transformer TF700] cjhmdm:
Yeah, I figured out how to get the modded framework-res.apk to work but haven't gotten anywhere with it yet heh...

What I'm trying to do now is mount the internal storage (more specifically /datai/media/0) to /Removable/MicroSD (since it'll go unused anyway when a2sd is active). Not sure if it'll work or not but I'm still trying heh.
[Asus Transformer TF700] sbdags:
Instead of signing it please copy the meta.inf folder from the original framework into yours. (you'll notice it is missing)

I'd try it without zipaligning it first to make sure it works.
[Asus Transformer TF700] cjhmdm:
Yeah, I figured that out already... but unless I dig into the kernel and such the way Mistar Muffin did for the older versions of cromi, modifying the framework doesn't accomplish anything. I've been on this for pretty much the entire weekend and haven't gotten anywhere heh... I know linux quite well but this android stuff isn't so simple lol...
[Asus Transformer TF700] cjhmdm:
Edit again... nevermind... sigh
[Asus Transformer TF700] cjhmdm:
Sorry for posting so much on the matter, but I've finally figured out what was going on...

The first thing I did wrong was to keep the same partition scheme as I was using on cromi 3.4.7... and that was an 8mb non formatted partition 1, and the remaining space formatted to ext4 on partition 2. I can't explain why or how, but creating a (2GB, size not important) fat32 partition for partition 1 allowed sdcardi to be recognized by some apps.

I still can't access music from it in Google Play Music, but I can in poweramp - other media players to be tested later.

From the very start, [default] Gallery was able to find pics there - not sure about other gallery apps.

So, simply creating a usable fat32 on the 1st partition of the microsd card made using sdcardi through at least some apps possible.

However, I did change the following line in init.cardhu.rc:

service sdcardi /system/bin/sdcard /datai/media /storage/sdcardi 1023 1023

to

service sdcardi /system/bin/sdcard /datai/media/0 /storage/sdcardi 1023 1023

I left the /Removable/Internal symlink out of it this time around because I think it was creating the problem of not being able to create/delete files/folders on sdcardi.

At any rate, it would seem I wasted the past 2 days when all I really needed to do was create a filesystem on partition 1 of the micro sd.
[Asus Transformer TF700] _that:
Neither can I - but thanks for figuring it out. :)
[Asus Transformer TF700] cjhmdm:
The funny thing is, ever since I've been using CROMI - and cleanrom before that - with data2sd, I just used an empty 8MB partition for partition 1 of the micro sd card in order to maximize my space on parition 2, and never thought twice about it. I only found this solution (so to speak) because I got tired of swapping out micro sd cards every time I reflashed and such heh.
[Asus Transformer TF700] Slammin:
Because all things data2sd rely on /dev/block/mmcblk0p2 as the new partition to contain /data?
[Asus Transformer TF700] _that:
mmcblk0p2 is the internal /cache partition, which is mostly unused in normal operation (it's used for communication with recovery).

mmcblk1p2 is Data2SD /data.

Hmm.... thanks for making me think again about partitions. I noticed something: vold.fstab says:

## part - Partition # (1 based), or 'auto' for first usable partition.

and

# Mounts the first usable partition of the specified device
dev_mount microsd /Removable/MicroSD auto /devices/platform/sdhci-tegra.0/mmc_host/mmc2

So if there is no usable mmcblk1p1 because it's not formatted, maybe vold tries to mount mmcblk1p2 (the ext4 partition) instead. That still does not explain why sdcardi would be visible to apps or not, since that's a completely different mount point, and an emulated filesystem on top...
[Asus Transformer TF700] cjhmdm:
To add a little more [confusion] to the mix...

I ended up getting a lot of freeze-ups - I think due to the bravia engine - so wiped the slate clean again and flashed once more. This time, I went back to my unformatted partition 1, and ext4 partition 2 on the micro sd.

To test the theory, I inserted an SD card into the dock before installing apps, and lo and behold, apps like poweramp picked up my media, and gallery still picked up my pics from sdcardi. Unfortunately though, some apps - like google play music - still don't detect audio from sdcardi.

Now, there is also one more test that needs to be run to clarify exactly what enables sdcardi to be used in more apps... and that's whether changing this

service sdcardi /system/bin/sdcard /datai/media /storage/sdcardi 1023 1023

to this

service sdcardi /system/bin/sdcard /datai/media/0 /storage/sdcardi 1023 1023

in init.cardhu.rc before flashing it solves the issue. From the beginning, I was flashing the default data2sd patch you provided, then modifying it after I had a usable system, which didn't turn out the best results heh.

I'll try to test it myself later, but I'm having a hard time wiping everything again as [mostly] everything is running the way that I want heh... not to mention I already got everything set up the way I want.

Either way though, I think a little more needs to be done in order to solve the issue of some apps being able to use sdcardi and some not. I've tried everything I could think of but the above is as far as I got heh.
[Asus Transformer TF700] yew123:
hey _that, I've been having a few reboots recently (two or three a day). The screen will just freeze and then reboot. Not sure if it is kernel related or not but it seems to have started occurring around the same time that I first installed data2sd (could just be a complete coincidence though). I pulled last_kmsg from /proc straight after the reboot. Have never reported a bug before so if you want me to get any other sort of file let me know, thanks.
[Asus Transformer TF700] _that:
The log indicates I/O problems with your microSD card (see the lines with mmcblk1). Which card are you using?
[Asus Transformer TF700] yew123:
I'm using a sansdisk class 10 32gb. Is there anything I can do to resolve it?
[Asus Transformer TF700] _that:
Nothing I know of that could reliably fix it. The TF700 seems to have several issues with fast microSD cards. Asus have tried to work around them in their kernels (mostly by limiting speed) and it is now better than before, but apparently still not trouble-free.

Can you post the output of "fdisk -lu /dev/block/mmcblk1" in a root shell? Just to make sure your partitions are aligned correctly. If they are not, it *should* still not be unstable, but I've heard the strangest things about SD cards and using them with non-Windows filesystems.
[Asus Transformer TF700] Daruniafx:
Same here, i have several problems using a sandisk class 10 32Gb on my TF700, one day its ok and other fail. Maybe this microSD Sandisk class 10 and TF700 aren't good partners. I tried all formats (fat32, exfat, NTFS) and there´s no way to get it work correctly. On my ex TF201 it work flawless. Time to try with other brand. :(
[Asus Transformer TF700] RedSkyRoad:
I bought one this weekend and my Data2SD works flawlessly...
[Asus Transformer TF700] yew123:
Hmmm that's strange as I purchased mine last week as well.

[MENTION=4878287]_that[/MENTION] I will do that when I get home, had to restore to a non-data2sd setup so it was stable for university. As someone above has had no problems could mine possibly be a faulty card? It can't be anything i've done in the installation process as I followed all directions to the letter.
[Asus Transformer TF700] buhohitr:
How did you prepare your sdcard? details please.
[Asus Transformer TF700] RedSkyRoad:
Exactly as in the Data2SD thread...

Used GParted Live CD and created an 8MB unformatted first partitions and then the rest ext4. I then turned off my device, added the card and went straight to recovery and cue'd the CROMI-X ROM (with full wipe) and Data2SD add-on. Then flashed and all was perfect
[Asus Transformer TF700] _that:
If you don't wipe your internal storage manually, you can easily switch between Data2SD and non-Data2SD by inserting or removing your microSD card before booting.
[Asus Transformer TF700] yew123:
Okay so I have completely wiped all partitions off my card, I did have an 8gb FAT32 and the rest EXT4 set up (then wiped rom, reflashed rom+kernel and then that's data2sd addon). I'm going to use Puffin617's setup to see if that helps (8mb unformatted, EXT4 the rest). I'll post the output of "fdsik -lu /dev/block/mmcblk1" once i've had it up and running for a while.

Edit:

The output is:

Disk /dev/block/mmcblk1: 31.9 GB, 31914983424 bytes

4 heads, 16 sectors/track, 973968 cylinders, total 62333952 sectors

Units = sectors of 1 * 512 = 512 bytes

Device Boot Start End Blocks Id System

/dev/block/mmcblk1p1 2048 18431 8192 83 Linux

Partition 1 does not end on cylinder boundary

/dev/block/mmcblk1p2 18432 62332927 31157248 83 Linux

Partition 2 does not end on cylinder boundary

root@android:/ #
[Asus Transformer TF700] _that:
18432 is a multiple of 2048, so your partition is aligned to a megabyte boundary, that *should* be enough.
[Asus Transformer TF700] yew123:
Everything seems to be going okay at the moment, thanks for your help :o
[Asus Transformer TF700] Vinsane:
So I'm on Cromi-X 4.4 - selected the kernel with Data2SD - partiioned my SD using Minitool - Fat32 @ 5ooMB & Ext4 @ 30GB -

For some reason it still will not recognize the mod - should I flash the data2sd-jb42-that0 zip? If I do, doI flash it first then flash the rom again or just flash it right over it now? Its a fresh brand new install.
[Asus Transformer TF700] uberbania:
I had to flash the add on for data to sd to work. For me, merely selecting the option in 4.4 did not work
[Asus Transformer TF700] RedSkyRoad:
Same here. Add on added to end of flash cue...