[HTC One X] teemo:
Manual creation of file systems for New Layout

I cannot get buttons to work in TWRP, as [MENTION=2386852]cappuccina[/MENTION] suggest, so here is an alternative method.

ALL DATA ON SDCARD WILL BE ERASED!

Creating the New Layout by hand:

You need fully working adb and fastboot on your PC. Since you are a HOX owner, I assume you have that and know how to use it :)

Orange text is what you DO

Red text is what you TYPE

Blue text is output from your commands.

Charge your HOX. You will do everything with HOX connected to PC, so 20-40% charge should be fine.

Connect HOX to PC.

Open cmd(Windows) or terminal (Linux). Your adb+fastboot should be in the path.

First, make sure you are on the right recovery. Both the "big" twrp from this thread and the official 3.0.2 from [MENTION=7401277]DevUt[/MENTION] will work.

Output should show /xtradata on mmcblk0p15

pc@teemo ~/Builds/HoX $ [COLOR="Red"]adb shell[/COLOR]
~ # [COLOR="Red"]mount -a && mount|grep xtra[/COLOR]
[COLOR="RoyalBlue"][SIZE="1"][B]/dev/block/mmcblk0p15 on /xtradata type ext4[/B] (rw,relatime,user_xattr,barrier=1,data=ordered)[/SIZE]
[/COLOR]

Unmount before creating the new filesystems:

~ # [COLOR="Red"]umount -a
[/COLOR][COLOR="RoyalBlue"][SIZE="1"]umount: can't umount /tmp: Device or resource busy
umount: can't umount /tmp: Device or resource busy
umount: can't umount /dev/pts: Device or resource busy
umount: can't umount /dev: Device or resource busy[/SIZE]
[/COLOR]

Create the BIG filesystem:

~ # [COLOR="Red"]mke2fs -t ext4 -m 0 /dev/block/mmcblk0p14[/COLOR]
[COLOR="RoyalBlue"][SIZE="1"]mke2fs 1.42.9 (28-Dec-2013)
Discarding device blocks: done
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
1654784 inodes, 6619136 blocks
0 blocks (0.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=0
202 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000

Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done[/SIZE]
[/COLOR]

If you want to clean out your old DATA, do this section. Otherwise just skip it. This will become the new /xtradata

~ # [COLOR="Red"]mke2fs -t ext4 -m 0 /dev/block/mmcblk0p15[/COLOR]
[COLOR="RoyalBlue"][SIZE="1"]mke2fs 1.42.9 (28-Dec-2013)
Discarding device blocks: done
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
140544 inodes, 562176 blocks
0 blocks (0.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=578813952
18 block groups
32768 blocks per group, 32768 fragments per group
7808 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912

Allocating group tables: done
Writing inode tables: done
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: done[/SIZE]
[/COLOR]

Reboot HOX to fastboot and flash the kernel from a NewLayout ROM:

~ # [COLOR="Red"]exit[/COLOR]
~ $ [COLOR="Red"]adb reboot bootloader[/COLOR]
~ $ [COLOR="Red"]fastboot flash boot boot.img[/COLOR]

On the HoX: SELECT HBOOT and then RECOVERY

When booted to recovery, tap Mount and Disable MTP + Enable MTP

Now you shoud be able to access 2 drives from your PC:

Internal Storage

2GB Extra Data

Copy the NewLayout ROM to one of these drives and flash it as usual.