[Shield Tablet Q&A, Help & Troubleshooting] m0nt3s:
Hello, So I've been kind of dissapointed with the performance of my rooted shield. I've worked with Linux before and threw together "script" which works when run from recovery with /system /data and /cache removed.

I know there are some redundancies with it so if any one knows how to optimize or trim the fat off it please let me know where I went wrong. Other than losing adb and sbin functions the read write speed without journaling kills every benchmark app thats i've tested from the play store. any ways heres what I threw together, it works but it could work a whole lot better. Thanks. This is for the Nvidia Shield K1 and OG. File systems can't be mounted when running this, I learned that the hard way, I've been running it from twrp terminal and it seems to work but when run as an init.d script it soft bricks hard. I've appended *.txt to the file format so I can attach, e2fsck,tune2fs are busybox applets that works with our version of twrp and can be run from adb shell. or just add them to /sbin/ don't forget to remove the .sh from the end, ie e2fsck.txt turns into e2fsck

sync;

/sbin/busybox umount -l /system

/sbin/busybox umount -l /cache

/sbin/busybox umount -l /data

/sbin/busybox umount -l /dev/block/mmcblk0p13

/sbin/busybox umount -l /dev/block/mmcblk0p14

/sbin/busybox umount -l /dev/block/mmcblk0p23

/sbin/tune2fs -m 0 /dev/block/mmcblk0p13

/sbin/tune2fs -m 0 /dev/block/mmcblk0p14

/sbin/tune2fs -m 0 /dev/block/mmcblk0p23

/sbin/tune2fs -m 0 /dev/block/platform/sdhci-tegra.3/by-name/APP

/sbin/tune2fs -m 0 /dev/block/platform/sdhci-tegra.3/by-name/CAC

/sbin/tune2fs -m 0 /dev/block/platform/sdhci-tegra.3/by-name/UDA

/sbin/e2fsck -yf /dev/block/platform/sdhci-tegra.3/by-name/APP

/sbin/e2fsck -yf /dev/block/platform/sdhci-tegra.3/by-name/CAC

/sbin/e2fsck -yf /dev/block/platform/sdhci-tegra.3/by-name/UDA

/sbin/e2fsck -p /dev/block/platform/sdhci-tegra.3/by-name/APP

/sbin/e2fsck -p /dev/block/platform/sdhci-tegra.3/by-name/CAC

/sbin/e2fsck -p /dev/block/platform/sdhci-tegra.3/by-name/UDA

/sbin/e2fsck -p /dev/block/mmcblk0p13

/sbin/e2fsck -p /dev/block/mmcblk0p14

/sbin/e2fsck -p /dev/block/mmcblk0p23

/sbin/tune2fs -o journal_data_writeback -c 1 -i 1d -m 0 /dev/block/platform/sdhci-tegra.3/by-name/APP

/sbin/tune2fs -o journal_data_writeback -c 1 -i 1d -m 0 /dev/block/platform/sdhci-tegra.3/by-name/CAC

/sbin/tune2fs -o journal_data_writeback -c 1 -i 1d -m 0 /dev/block/platform/sdhci-tegra.3/by-name/UDA

/sbin/tune2fs -o journal_data_writeback -c 1 -i 1d -m 0 /dev/block/mmcblk0p13

/sbin/tune2fs -o journal_data_writeback -c 1 -i 1d -m 0 /dev/block/mmcblk0p14

/sbin/tune2fs -o journal_data_writeback -c 1 -i 1d -m 0 /dev/block/mmcblk0p23

/sbin/tune2fs -O ^has_journal -c 1 -i 1d -m 0 /dev/block/platform/sdhci-tegra.3/by-name/APP

/sbin/tune2fs -O ^has_journal -c 1 -i 1d -m 0 /dev/block/platform/sdhci-tegra.3/by-name/CAC

/sbin/tune2fs -O ^has_journal -c 1 -i 1d -m 0 /dev/block/platform/sdhci-tegra.3/by-name/UDA

/sbin/tune2fs -O ^has_journal -c 1 -i 1d -m 0 /dev/block/mmcblk0p13

/sbin/tune2fs -O ^has_journal -c 1 -i 1d -m 0 /dev/block/mmcblk0p14

/sbin/tune2fs -O ^has_journal -c 1 -i 1d -m 0 /dev/block/mmcblk0p23

/sbin/e2fsck -Dfy /dev/block/platform/sdhci-tegra.3/by-name/APP

/sbin/e2fsck -Dfy /dev/block/platform/sdhci-tegra.3/by-name/CAC

/sbin/e2fsck -Dfy /dev/block/platform/sdhci-tegra.3/by-name/UDA

/sbin/e2fsck -Dfy /dev/block/mmcblk0p13

/sbin/e2fsck -Dfy /dev/block/mmcblk0p14

/sbin/e2fsck -Dfy /dev/block/mmcblk0p23

/sbin/busybox mount -t ext4 -o suid,dev,noatime,nodiratime,barrier=0,nobh,data=ordered,noauto_da_alloc,data=writeback,discard /dev/block/mmcblk0p13

/sbin/busybox mount -t ext4 -o suid,dev,noatime,nodiratime,barrier=0,nobh,data=ordered,noauto_da_alloc,data=writeback,discard /dev/block/mmcblk0p14

/sbin/busybox mount -t ext4 -o suid,dev,noatime,nodiratime,barrier=0,nobh,data=ordered,noauto_da_alloc,data=writeback,discard /dev/block/mmcblk0p23

sync;