[Asus Transformer TF700] positronix:
Hi guys,

I could probably make a thread outside TF700 forums as my questions are more generic but as I don't know what place would suit it better and as my device is TF700T, I'm doing it here.

Some time ago I was messing around with my TF700T which at that moment was already unlocked and rooted. I had TWRP (not sure what version exactly it was but probably something close to 2.8.x) and CyanogenMod 11-20160815-NIGHTLY-tf700t installed and working properly. As I wanted to install Gentoo on it, I replaced TWRP with something else (don't remember what was that) and finally somehow screwed recovery. As I don't fully remember what has happened back then, I can tell how it is now.

So the tablet is working without problems but recovery is not accessible. Whenever I try to boot into recovery choosing the RCK icon in a boot menu the tablet is hanging.

But as both adb and fastboot can see the tablet, I decided to dig it a bit more.

# adb devices
List of devices attached
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
015d2a50865c1a07 device

# adb reboot bootloader
# fastboot devices
015d2a50865c1a07 fastboot

# fastboot -i 0x0B05 flash recovery twrp-3.2.1-0-tf700t.img
sending 'recovery' (7414 KB)...

As this process seems to be endless I decide to interrupt it using the power button on the tablet. As result I get a message:

FAILED (data transfer failure (Cannot send after transport endpoint shutdown))
finished. total time: 337.278s

Then I decide to inspect how partitions look like using the adb shell but first I inspect fstab to see what supposed to be mounted:

# adb shell
shell@tf700t:/ $ su
shell@tf700t:/ # cat fstab.cardhu

# INIT mount points
/dev/block/mmcblk0p1 /system ext4 noatime,noauto_da_alloc,nodiratime,barrier=0,ro wait
/dev/block/mmcblk0p2 /cache ext4 noatime,noauto_da_alloc,nosuid,nodev,nodiratime,barrier=0,errors=panic wait
/dev/block/mmcblk0p8 /data ext4 noatime,noauto_da_alloc,nosuid,nodev,nodiratime,barrier=0,errors=panic wait,encryptable=footer

# VOLD mount points
/devices/platform/sdhci-tegra.0/mmc_host/mmc2 auto auto defaults voldmanaged=sdcard1:auto
/devices/platform/tegra-ehci.2/usb1/1-1/1-1.2 auto auto defaults voldmanaged=usbdisk0:auto
/devices/platform/tegra-ehci.2/usb2/2-1/2-1.2 auto auto defaults voldmanaged=usbdisk0:auto
/devices/platform/tegra-ehci.2/usb1/1-1/1-1.1 auto auto defaults voldmanaged=usbdisk1:auto
/devices/platform/tegra-ehci.2/usb2/2-1/2-1.1 auto auto defaults voldmanaged=usbdisk1:auto
/devices/platform/tegra-ehci.2/usb2/2-1/2-1:1 auto auto defaults voldmanaged=usbdisk1:auto
/devices/platform/tegra-ehci.2/usb1/1-1/1-1:1 auto auto defaults voldmanaged=usbdisk1:auto
/devices/platform/tegra-ehci.2/usb1/1-1/1-1.3 auto auto defaults voldmanaged=sdcard2:auto
/devices/platform/tegra-ehci.2/usb2/2-1/2-1.3 auto auto defaults voldmanaged=sdcard2:auto

# Recovery only
/dev/block/mmcblk1p1 /external_sd auto defaults recoveryonly
/dev/block/mmcblk0p3 /misc emmc defaults recoveryonly
/dev/block/mmcblk0p4 /staging ext3 defaults recoveryonly
/dev/block/mmcblk0p9 /recovery emmc defaults recoveryonly
/dev/block/mmcblk0p10 /boot emmc defaults recoveryonly

Then I check what partitions I have (I thought maybe recovery partition has been deleted somehow):

# cat /proc/partitions
major minor #blocks name

179 0 62087168 mmcblk0
179 1 786432 mmcblk0p1
179 2 438272 mmcblk0p2
179 3 2048 mmcblk0p3
179 4 835584 mmcblk0p4
179 5 5120 mmcblk0p5
179 6 512 mmcblk0p6
179 7 5120 mmcblk0p7
179 8 59976192 mmcblk0p8
179 9 8192 mmcblk0p9
179	10 8192 mmcblk0p10
179	32 4096 mmcblk0boot1
179	16 4096 mmcblk0boot0
179	48 15622144 mmcblk1
179	49 15618048 mmcblk1p1

And finally check if parted can give me any info about these partitions. I don't care about mmcblk1 as it is an external SD card:

# parted /dev/block/mmcblk0p1
Model: Unknown (unknown)
Disk /dev/block/mmcblk0p1: 805MB
Sector size (logical/physical): 512B/512B
Partition Table: loop

Number Start End Size File system Flags
1	0.00B 805MB 805MB ext4

# parted /dev/block/mmcblk0p2
Model: Unknown (unknown)
Disk /dev/block/mmcblk0p2: 449MB
Sector size (logical/physical): 512B/512B
Partition Table: loop

Number Start End Size File system Flags
1	0.00B 449MB 449MB ext4

# parted /dev/block/mmcblk0p3
Error: /dev/block/mmcblk0p3: unrecognised disk label

# parted /dev/block/mmcblk0p4
Model: Unknown (unknown)
Disk /dev/block/mmcblk0p4: 856MB
Sector size (logical/physical): 512B/512B
Partition Table: loop

Number Start End Size File system Flags
1	0.00B 856MB 856MB ext3

# parted /dev/block/mmcblk0p5
Model: Unknown (unknown)
Disk /dev/block/mmcblk0p5: 5243kB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

￼￼Number Start End Size Type File system Flags

# parted /dev/block/mmcblk0p6
Error: /dev/block/mmcblk0p6: unrecognised disk label

# parted /dev/block/mmcblk0p7
Error: /dev/block/mmcblk0p7: unrecognised disk label

# parted /dev/block/mmcblk0p8
Model: Generic SD/MMC Storage Card (sd/mmc)
Disk /dev/block/mmcblk0p8: 61.4GB
Sector size (logical/physical): 512B/512B
Partition Table: loop

Number Start End Size File system Flags
1	0.00B 61.4GB 61.4GB ext4

# parted /dev/block/mmcblk0p9
Error: /dev/block/mmcblk0p9: unrecognised disk label

# parted /dev/block/mmcblk0p10
Error: /dev/block/mmcblk0p10: unrecognised disk label

# parted /dev/block/mmcblk0boot0
Error: /dev/block/mmcblk0boot0: unrecognised disk label

# parted /dev/block/mmcblk0boot1
Error: /dev/block/mmcblk0boot1: unrecognised disk label

As we can see partitions 3, 6, 7, 9, 10 and boot0, boot1 have unrecognised disk label. I can't also mount them to inspect their contents (can mount others and their contents looks good to me).

I don't see partitions 6, 7 in fstab but anyhow it does look like all unrecognised partitions have type emmc.

And recovery partition should be mmcblk0p9. The question now is: how do I mount emmc partition then in order to be able to check if it's okay or dead? How do I manage it (delete / create / resize)?

For now I would like to make recovery work. Any ideas?