yashsingh1/xdaforums huggingface dataset:
[Asus Transformer TF700] smalis:
Using buhohitr's procedure, I hadn't gotten to that step yet.

His procedure, which works great with my non-UHS-1 card, is to first nandroid to external sd, and then:

flash mount-data2sd

restore backup from external sdcard

flash cromi-3.2.x-data2sd.zip

and, for the UHS sd card, flash that-kernel-10.4.4.25-1-data2sd

---------- Post added at 04:37 PM ---------- Previous post was at 04:08 PM ----------

I ran those commands in TWRP's terminal mode-

went to /dev/block and selected the folder

ran "umount /data" - no response to this (which I think is normal)

ran "e2fsck /dev/block/mmcblk1p2"

response was

"e2fsck 1.41.12 (17-May-2010)

e2fsck: need terminal for interactive repairs"

Will run in adb and update in a minute

hmmm - not sure I have adb running properly - adb devices does show the tab, but the prompt is funky: ~ # [6n

su returns "su: not found:

umount /data returns "Can't umount /data: Invalid argument"

e2fsck /dev/block/mmcblk1p2 returns "/dev/block/mmcblk1p2: clean, 11/579360 files, 74229/2316544 blocks"
[Asus Transformer TF700] _that:
You can try adding a parameter for non-interactive repairs. Try

e2fsck -p -y /dev/block/mmcblk1p2

I think you need different (or "universal") USB drivers to get adb access in the recovery. I don't know details about Windows drivers (in Linux it just works without drivers, at least as soon you get the permissions right), but try searching for "universal naked driver" or so.
[Asus Transformer TF700] smalis:
I think I have adb running - see my prior edited post 1187
[Asus Transformer TF700] buhohitr:
OK, let take one step at a time. Can you verify permission for these folders: TWRP, BACKUPS, 015d2a508837fa07 on your fat32 partition? they should ALL have rwx-rwx-rwx.
[Asus Transformer TF700] lartomar2002:
Can we use TWRP 2400? That is the one that is offered when using GooManager.
[Asus Transformer TF700] buhohitr:
I haven't test it yet so I don't know. You could wait or give it a try!
[Asus Transformer TF700] smalis:
Those folders are not there, because I was unable to nandroid to that external microsd card. I went back to running the tab with my class 10 non-UHS 1 microsd, so I put the UHS-1 into an sd adapter and plugged it into the dock, where it shows as "Drive1." Drive1 permissions are all checked: rwx-rwx-rwx. Drive1 has two folders, data and Lost.Dir, both of which are also rwx-rwx-rwx. The only thing in data is an empty com.keramidas.TitaniumBackup folder.
[Asus Transformer TF700] maxal:
I have been using twrp 2400 since it was released and it works fine for me.
[Asus Transformer TF700] lartomar2002:
recovery filesystem table

=========================

0 /tmp ramdisk (null) (null)

1 /system ext4 /dev/block/mmcblk0p1 (null)

2 /cache ext4 /dev/block/mmcblk0p2 (null)

3 /misc emmc /dev/block/mmcblk0p3 (null)

4 /staging ext3 /dev/block/mmcblk0p4 (null)

5 /data ext4 /dev/block/mmcblk0p8 (null)

6 /recovery emmc /dev/block/mmcblk0p9 (null)

7 /boot emmc /dev/block/mmcblk0p10 (null)

8 /external_sdcard vfat /dev/block/mmcblk1p1 /dev/block/mmcblk1

I:Internal path defined: '/data/media'

I:External path defined: '/external_sdcard'

I:Device has crypto support compiled into recovery.

Pixel format: 1920x1200 @ 32bpp

Pixel format: BGR_565

framebuffer: fd 3 (1920 x 1200)

I:=> Installing busybox into /sbin

ln: /sbin/mke2fs: File exists

ln: /sbin/sh: File exists

ln: /sbin/tune2fs: File exists

I:=> Linking mtab

I:=> Getting locations

W:Device does not support /proc/emmc

W:Device does not support /proc/mtd

* Verifying filesystems...

I:=> Let's update filesystem types via verifyFst aka blkid, command: 'blkid'.

I:=> Created /external_sdcard folder.

* Verifying partition sizes...

I:Device has /data/media

I:Total used space on /data is: 15907848192

I:Total in /data/media is: 12835332096

I:Actual data used: 3072516096

df: /dev/block/mmcblk1p2: can't find mount point

du: /data/media/.android_secure: No such file or directory

The 2330 zip file I d/l from media failed.Here is part of the recovery log:

Sorry for the way this posted but my cursor jumps around when trying to paste anything on this forum and many others. Do not know where the smilies came from? Now I do, it is because symbles for that smily is in the file name.
[Asus Transformer TF700] buhohitr:
Can you give this a try:

1. Turn off your device- insert your uhs1 card.

2. Boot to twrp then go to advance-> command to execute the following and let me know the results:

umount /data

umount /sdcard

e2fsck -f -p /dev/block/mmcblk1p2

tune2fs -O ^has_journal -c 1 -i 1d -m 0 /dev/block/mmcblk1p2 (disable journaling)

e2fsck -f -p /dev/block/mmcblk1p2 (doube check make sure no errors)

tune2fs -l /dev/block/mmcblk1p2 | grep features (verify that journaling is disabled

3. Turn off your device

4. Boot back into twrp then run the restore. (Make sure when you do backup or restore, leave everything as DEFAULT SETTINGS).
[Asus Transformer TF700] lartomar2002:
I took maxal's word and installed 2400 and it works. :good:
[Asus Transformer TF700] smalis:
You responded to maxal, but you are talking to me, yes?

Do you want me to enter those commands at the root folder or do you want me to navigate to /dev/block first?
[Asus Transformer TF700] smalis:
Here are the responses:

umount /data

response: /dev/block # umount /data

umount /sdcard

response: /dev/block # umount /sdcard

e2fsck -f -p /dev/block/mmcblk1p2

response: e2fsck

:

Attempt to read block from filesystem resulted in short read

while trying to open /dev/block/mmcblk1p2

Could this be a zero-length partition?

tune2fs -O ^has_journal -c 1 -i 1d -m 0 /dev/block/mmcblk1p2 (disable journaling)

response: Setting maximum mount count to 1

Setting interval between checks to 86400 seconds

Setting reversed blocks percentage to 0% (0 blocks)

e2fsck -f -p /dev/block/mmcblk1p2 (doube check make sure no errors)

response: Super block needs_recovery flag is clear, but journal has data. /dev/block/mmcblk1p2: Run journal anyway /dev/block/mmcblk1p2: UNEXPECTED INCONSISTENCY: RUN fsck MANUALLY

tune2fs -l /dev/block/mmcblk1p2 | grep features (verify that journaling is disabled

response: Filesystem features: has_journal ext_attr resize_inode dir_index filetype extent flex_bg sparse_super large_file hug....

Obviously, something is not kosher with the response to "e2fsck -f -p /dev/block/mmcblk1p2"
[Asus Transformer TF700] buhohitr:
Have you try to boot up after that?
[Asus Transformer TF700] smalis:
I didn't because no rom is installed on the UHS card, and i cant install or restore to it. The only way I can boot with the UHS card in would be by installing a ROM to the internal card, without data2sd.

UPDATE: The issue clearly is with TWRP dealing with the UHS-1 card. I was able to get CRI running on the UHS card by again formatting the card, flashing mount-data2sd, flashing CRI Odex, flashing CRI-data2sd, and flashing _that's nodpi kernel, but I was not able to disable journaling via adb or in the TWRP terminal. I don't think the card is bad, but I may need to wait for a TWRP update to make it fully compatible with the UHS-1 card.
[Asus Transformer TF700] anachronis:
Hey,

I have a few questions regarding this app.

Firstly, does it work with latest CleanRom Inheritance which is 3.2.1 (sort of)?

Also could you type down a few specific class 10 micro sd cards which are worth buying? I've heard a stories of a producers cheating on specs.

From what I've read, this step-by-step manual is targeted at people who have unrooted tablet. How does it compare to the rooted ones?

Lastly, is there out any video that would show step by step how to perform all this stuff? I am not long in the topic of all these kernels, rom's and I just get confused a lot while trying to attempt this kind of stuff
[Asus Transformer TF700] buhohitr:
1. Yes data2sd is working with CROMI 3.2.1

2. You need an unlock and rooted device. You can't do this mod with just rooted device

3. No video is available at this time, the process is seem complicated, but it's not. You just need to take one step at a time and shouldn't be any problem to achieve this.

BTW, are you unlocked with custom rom?? You need to, before attempt to do the data2sd mod.
[Asus Transformer TF700] airmark:
After having successfully used a Class 6 Sandisk Ultra for Data2SD (around page 86 of this thread there's a record of the play-by-play of that attempt), I tried now a Class 10 UHS-1 Sandisk Ultra without success. I have done exactly the same thing as the previous time, several times (started the whole partitioning/formatting thing with gparted from scratch every time) and I keep getting the same error message: E:error opening '/data/media'

I'm pretty sure people have mentioned this card to be compatible (even recommended) for Data 2SD, so I'm puzzled here. Could it be that some cards even of the same brand/type aren't compatible? Or any other ideas of what I could be missing? I did set the flag of ext4 partition to "boot" this time.
[Asus Transformer TF700] _that:
When exactly are you getting this error message, and are you running a 10.4.4.25 kernel?
[Asus Transformer TF700] anachronis:
ad. 1) good :)

ad. 2) ok, I am rooted and unlocked with CROMI onboard

ad. 3) Okay, I will give it a try. Are there any sd cards worth recommending for this job or any 10 Class will do the trick?

ad. btw: eeee... I am unlocked, rooted and I have CROMI 3.2.1 atm. That is a custom rom, isnt it??
[Asus Transformer TF700] airmark:
after I flash mount-data2sd.

I'm not, I run CROMI 3.2 with one of the clemsys kernels now.
[Asus Transformer TF700] buhohitr:
Yes you are good to go. I'm using Sandisk 32gb class 10 UHS rated at 30mb/sec and Sandisk 16gb class 10 UHS rated at 95mb/s. I only recommend Sandisk class 10 with minimum 16gb in size.
[Asus Transformer TF700] smalis:
You can see my travails trying to get a UHS-1 card to work starting at post 1169. No happiness, and I am back to my Sandisk Class 10 sdcard. I think TWRP has trouble writing to at least some UHS-1 cards.

You do have to flash a 10.4.4.25 kernel before booting into Android, but the TWRP failures never permitted me to get that far into the process.
[Asus Transformer TF700] airmark:
Yes, I was just reading them actually. But then just above, buhohitr (post #1209) says he has had success with a Samsung UHS card. :confused:

Edit: Regarding the kernel, I thought that it should be flashed at the end, after mount-data2sd was successful, but then after you guys mentioned it, I thought I might as well flash it, so I did then flashed mount-data2sd again, same error message. So I thought of aborting for today anyway, and rebooted. And to my surprise I got the welcome screen (setup), indicating that data2sd had worked (and I hadn'[t restored my previous setup). Indeed when I went to settings, the storage space showed as 27gb, so clearly data2sd somehow worked despite the error message. I'm now restoring my previous installation and hopefully in a few minutes will have a working data2sd setup.

So TWRP (version 2.3.3 in my case) at least works with the Samsung Ultra 32GB UHS-1 card for Data2SD
[Asus Transformer TF700] buhohitr:
I think something wrong with his setup, specialy disabling journaling, based on his results. If I'm him, I would do a full wipe, and do a clean install with a reformat card, don't disable journaling until later.

1. Full wipe clean the device. Reformat sdcard with gparted and reflash twrp 2.3.1.0

2. Install CROMI 3.2.1 with _that stock kernel. (don't do any setup just yet)

3. Make a twrp backup on to the 1st partition fat32 of the sdcard.

4. Flash cromi3.2.1_data2sd, the _that kernel data2sd

5. Reboot tablet. If everything is working then use ADB to disable journaling.
[Asus Transformer TF700] lartomar2002:
I have a SabDisk 64gb class 10 ultra UHS-1 card, are you using the 2400 version of TWRP? I have not tried this mod yet, I will wait until I feel more comfortable with Infinity and I am read about problems with this card.
[Asus Transformer TF700] Mike02z:
I'm running CLEANROM 3.2.1 ODEX. I have tried this multiple times with a Polaroid class 10 32 GB card. I setup two partitions. The first is a 8 MB FAT32 partition and the second is EXT4. I make both partitions Primary and partition 2 Active. I install the d2sd and the Clemsys kernel for CLEANROM then wipe data/cache/Dalvik and boot. It will just continually reboot. Sometimes it will get to the "Welcome" screen but before I can do anything it reboots again. I'm using TWRP 2.4.0.0
[Asus Transformer TF700] buhohitr:
You probably have more luck with _that .25_data2sd kernel can be found here http://xdaforums.com/showpost.php?p=37392834&postcount=5 This kernel has been upgated to support more sdcards
[Asus Transformer TF700] Mike02z:
No luck, same thing.
[Asus Transformer TF700] buhohitr:
Did you use Gparted to format the card?
[Asus Transformer TF700] lartomar2002:
Has anyone used this mod succesfully with a SanDisk 64 gb Ultra Class 10 UHS-1? If so which version of TWRP did you use?
[Asus Transformer TF700] snypa:
i use that card with TWRP MOD from fordwolden's d2sd thread ... works good! ...

i have screenshots on microsd thread here

http://xdaforums.com/showthread.php?t=1803084&page=22
[Asus Transformer TF700] Mike02z:
No, Minitool Partition Wizard.
[Asus Transformer TF700] buhohitr:
That's why it's not working. You MUST USE Gparted to format your card.
[Asus Transformer TF700] lartomar2002:
Thanks, now I feel a little more confident and the screenshots were an added bonus.:good:

Btw what is the difference between fordwolden and mr. muffin?
[Asus Transformer TF700] smalis:
No need to flash mount-datasd with those steps?
[Asus Transformer TF700] lartomar2002:
And you are using TWRP 2.3.1.0 or 2.4.0.0? Sorry for all the questions but I bricked one Infinity by trying to do the NVflash and do not want to do that again because I did not do NVflash on this one.
[Asus Transformer TF700] buhohitr:
No, it's a clean install, when you boot up it's going to create a clean /data partition on your sdcard and you're going to go through the new setup.
[Asus Transformer TF700] snypa:
fordwolden's was first to post d2sd but i don't think you could see internal storage when you plugged into pc,

mr muffins mounts all storage when plugged into pc (hence enhanced) ... but only with non-stock based roms (red writing in op)...???

generally not recommended to use the TWRP MOD from fordwoldens thread but works great ( i havn't changed since!) and does save

an extra process when flashing ... but only if you are staying on d2sd - can't go back without changing recovery!

i asked in TWRP thread if they could update the d2sd version but since mrmuffins fix works they will not do two versions so when we move to

4.2 jb we will have to change recovery anyway i believe!
[Asus Transformer TF700] anachronis:
One more question, though.

When you were talking about an sd cards which "work" do you actually mean that they get recognised by device when you put them in the slot, or do you mean that a certain sd cards work after performing this whole procedure? Also, what kind of specifications should such card have to be good for the job appart from class 10 and having over 16GB of memory?
[Asus Transformer TF700] airmark:
I have done it with the 32gb version of that card, with TWRP 2.3.3.0

---------- Post added at 03:43 PM ---------- Previous post was at 03:39 PM ----------

I don't think class 10 is a requirement, nor 16gb of memory. A fast card especially with random read/write, rather than sequential, is what is needed. I used successfully a Sandisk Ultra Class 6, which I think is much better for this purpose than most Class 10 cards out there. Also, size is not an issue either, as long as you can fit your system, so even 8 gb would work, but of course, given current sd card prices, you might as well go for 32gb.
[Asus Transformer TF700] smalis:
Tried it, no love.

Step 3, backup failed with an "E: unable to mount '/staging/" error.

Saw the same message after flashing cromi3.2.1_data2sd and the _that kernel data2sd.

Boot loops when I rebooted.
[Asus Transformer TF700] buhohitr:
So you did do step one, where you reformat the card, reflash TWRP etc.. right? If you did then definitely something wrong with your card. Go back to gparted, delete all partitions and there is an option to fix/create partition table. Try that then recreate and reformat your card.
[Asus Transformer TF700] smalis:
Yep, did it all exactly as specified.

Ok, tried again. I booted Gparted, deleted both partitions, created partition table, and then created both partitions. First one 6 GB Fat 32 primary, second one EXT4 with the boot flag

Booted to TWRP 2.3.1.0, wiped everything.

Installed CRI 3.2.1 ODEX - but had to do it from internal sdcard. If I try to do it from the external (UHS-1) card, TWRP restarts, as if it can't open the file on the card. When CRI was done installing, it said

"Updating partition details...

E: Unable to mount '/staging' "

Tried to backup to the external card - it finished in about 1 second, then said the backup size for data.ext.win is 0 bytes, and it said backup Failed at the top.

Flashed cromi-3.2.x-data2sd from the external card. Seemed to run ok, but at the end it again said

"Updating partition details...

E: Unable to mount '/staging' "

Flashed _that-kernel-10.4.4.25-data2sd from the external card. Again got the message:

"Updating partition details...

E: Unable to mount '/staging' "

Rebooted. Hung at the ASUS boot screen.

Funny thing is that the card works fine in windows, and I can read and write to it in Android if I use it as the external SD card, in an SD card adapter (although, the the files in the Fat32 partition show up one folder down, in a topmost "Drive1" folder.)

I believe I can exchange the card for a replacement, so maybe I will try that.
[Asus Transformer TF700] _that:
What you did seems right.

That's a known issue with TWRP, but it is harmless.

Maybe you can diagnose the problem. Reboot to recovery and get adb shell access. Then you can try running the following commands:

fdisk -l /dev/block/mmcblk1

should list the two partitions you created.

e2fsck /dev/block/mmcblk1p2

should check the ext4 partition for errors.
[Asus Transformer TF700] smalis:
See attached screen shot.
[Asus Transformer TF700] _that:
Looks fine (but next time please paste it as simple text, not as screenshot). So booting Android *should* not hang at the boot screen - it should boot normally and start with the setup wizard to initialize the empty data partition.

1. Which boot screen exactly? The one from the bootloader with the white logo, or the one with the metallic Asus logo and the spinning dots?

2. Can you get adb access while it hangs? If yes, check the output of adb logcat and adb shell dmesg for clues what is going on. To redirect the output to files, run from your Windows command prompt:

adb shell dmesg > dmesg.txt

adb logcat > logcat.txt

Read the resulting files and try to find relevant error messages, and/or attach them to your reply.
[Asus Transformer TF700] smalis:
Now it is bootlooping at the screen with the white logo - no spinning dots. Before, I believe it hung at that same screen.

Can't get adb access - adb devices shows no devices, and adb logcat says "waiting for device".
[Asus Transformer TF700] Mike02z:
Thanks but then why is this in the OP?

Requirements

1) Class 10 microSD, at least 8gb

2) A computer with card reader

3) Partitioning software. Recommended: MiniTool Partition Wizard for Windows and GParted for Linux.

Too add a little more to this..When I boot into TWRP with the partitioned SD installed, it is seeing the SD as the internal card when I try to install something. It will not see the actual internal data when it is booted with the SD card installed.
[Asus Transformer TF700] sbdags:
MiniTool has been known to corrupt the SD card and in some cases permanently.

The OP should remove it as a recommendation.

Linux is fairly simple to setup on a USB stick or CD. You can run it under a virtual box or even make a bootable disk that just boots gparted.

It is mandatory if you want this to work. No one has got it working reliably with mini tool.
[Asus Transformer TF700] Mike02z:
I used GPARTED and it works. Thanks a lot. Sorry for doubting you.:good:
[Asus Transformer TF700] _that:
OK, that means it fails early in the boot process - when loading or initializing the kernel. If you want to continue troubleshooting, the next thing I'd try is to boot to recovery, run fsck again, and then try to mount the partition.

Via adb shell, type these commands:

e2fsck /dev/block/mmcblk1p2

mkdir /mnt

mount /dev/block/mmcblk1p2 /mnt

ls -l

e2fsck should say that it's "clean"; mkdir and mount should stay silent, and ls should show a list of files or directories.

Permanent damage by software is unlikely - it should always be possible to restore the card to a working condition by repartitioning with gparted. For exceedingly stubborn cases, one could try to overwrite the card with dd before.
[Asus Transformer TF700] smalis:
Thanks for sticking with this, _that, much appreciated.

e2fsck says "clean, 11/525312 files, 70351/2097152 blocks"

here is the output for ls -l:

drwxr-xr-x 2 root root 0 Feb 3 15:43 btmac

drwxrwx--- 4 system cache 4096 Feb 3 15:40 cache

drwxrwx--x 4 system system 4096 Feb 2 21:25 data

-rw-r--r-- 1 root root 2428 Jan 1 1970 default.prop

drwxr-xr-x 10 root root 2060 Feb 3 15:43 dev

drwxr-xr-x 2 root root 0 Feb 3 15:43 etc

drwxrwxrwx 3 root root 4096 Jan 1 1970 external_sdcard

-rwxr-x--- 1 root root 98724 Jan 1 1970 init

-rwxr-x--- 1 root root 1549 Jan 1 1970 init.rc

drwxr-xr-x 3 root root 4096 Feb 2 16:15 mnt

dr-xr-xr-x 103 root root 0 Jan 1 1970 proc

drwxr-xr-x 4 root root 0 Jan 1 1970 res

drwx------ 2 root root 0 Oct 5 20:06 root

drwxr-x--- 2 root root 0 Jan 1 1970 sbin

drwxrwx--- 10 media_rw media_rw 4096 Feb 2 21:35 sdcard

drwxr-xr-x 2 root root 0 Feb 3 15:43 staging

drwxr-xr-x 13 root root 0 Feb 3 15:43 sys

drwxr-xr-x 3 root root 0 Jan 1 1970 system

drwxr-xr-x 2 root root 0 Feb 3 15:43 tmp

-rw-r--r-- 1 root root 1556 Jan 1 1970 ueventd.cardhu.rc

-rw-r--r-- 1 root root 272 Jan 1 1970 ueventd.goldfish.rc

-rw-r--r-- 1 root root 3825 Jan 1 1970 ueventd.rc
[Asus Transformer TF700] _that:
Sorry, should have been "ls -l /mnt" to list what's on the microsd partition.

Is it possible to break the bootloop by holding down volume-down so that it boots into recovery next time without turning the power off? Then it could be possible to read /proc/last_kmesg from the recovery and see if there are any interesting error messages in there.
[Asus Transformer TF700] stanglifemike:
Yes. I'm running CleanROM Inheritance and stil on TWRP 2.3.3 just because I haven't seen a need to update rom or recovery lately because my Infinity is running perfectly. I have a 64gb SanDisk UHS1 card with 10gb set as Fat32 and the rest as Ext4. Used Gparted from the start
[Asus Transformer TF700] smalis:
ls -l /mnt returns: drwx------ 2 root root 16384 Feb 2 16:15 lost+found

I can interrupt the boot loop and boot to TWRP. Here is a dropbox link to /proc/last_kmsg (not kmesg), as the text is longer than permitted by XDA: https://dl.dropbox.com/u/20053824/last_kmsg
[Asus Transformer TF700] _that:
Great! That log is very helpful.

In one of your last posts, you wrote you installed my data2sd kernel - but you are actually booting a kernel by clemsyn that's based on an older version of Asus' sources that do not contain the latest sdcard stability workarounds:

[ 0.000000] Linux version 3.1.10 (root@clemsyn-EP43-UD3L) (gcc version 4.6.2 (Linaro GCC 4.6-2011.11) ) #51 SMP PREEMPT Sun Nov 4 09:28:08 CST 2012

...which becomes obvious when error messages start:

[ 5.029446] mmcblk1: error -84 transferring data, sector 22986752, nr 8, cmd response 0x900, card status 0xc00
[ 5.030165] lost page write due to I/O error on mmcblk1p2

Please retry with my 3.1.10-that1 kernel (data2sd version) - preferably the non-overclocked version until you have a stable setup.