[LG V30 Guides, News, & Discussion] rdeets:
I'm still trying to get this to work, but I figured out the permissions issue (need to CHMOD 755 in TWRP).

But... for anyone that is annoyed by Windows Command Terminal/Powershell, I strongly suggest checking out cmder

---------- Post added at 06:37 PM ---------- Previous post was at 06:03 PM ----------

Okay, did I do something wrong? I keep bootlooping.

Here's my terminal:

/external_sd/treble # ./backup_gpt.sh

The operation has completed successfully.

/external_sd/treble # ./make_vendor.sh

/vendor missing

*********Resize /system to 1569792 = 1682309 - 112518 + 1 (inclusize) = 1569792

To really repartition, copy the following commands, and execute them

e2fsck -f /dev/block/bootdevice/by-name/system

resize2fs /dev/block/bootdevice/by-name/system 1569792

Setting name!

partNum is 21

REALLY setting name!

Setting name!

partNum is 25

REALLY setting name!

Disk /dev/block/sda: 31137792 sectors, 118.8 GiB

Logical sector size: 4096 bytes

Disk identifier (GUID): 98101B32-BBE2-4BF2-A06E-2BB33D000C20

Partition table holds up to 32 entries

First usable sector is 6, last usable sector is 31137786

Partitions will be aligned on 2-sector boundaries

Total free space is 0 sectors (0 bytes)

Number Start (sector) End (sector) Size Code Name

1 6 12293 48.0 MiB FFFF laf

2 12294 24581 48.0 MiB FFFF lafbak

3 24582 32773 32.0 MiB FFFF mpt

4 32774 35333 10.0 MiB FFFF drm

5 35334 36869 6.0 MiB FFFF sns

6 36870 37125 1024.0 KiB FFFF misc

7 37126 45317 32.0 MiB FFFF ftm

8 45318 49413 16.0 MiB 0700 operatorlogging

9 49414 51461 8.0 MiB 0700 eri

10 51462 61701 40.0 MiB 0700 carrier

11 61702 78597 66.0 MiB FFFF factory

12 78598 78725 512.0 KiB FFFF encrypt

13 78726 78853 512.0 KiB FFFF eksst

14 78854 78981 512.0 KiB FFFF rct

15 78982 79109 512.0 KiB FFFF ssd

16 79110 79237 512.0 KiB FFFF keystore

17 79238 95621 64.0 MiB FFFF persdata

18 95622 103813 32.0 MiB FFFF persist

19 103814 105861 8.0 MiB FFFF srtc

20 105862 112005 24.0 MiB FFFF qni

21 112006 112517 2.0 MiB FFFF pstore

22 112518 1682309 6.0 GiB 8300 system

23 1813382 2343813 2.0 GiB FFFF cache

24 2343814 31137785 109.8 GiB FFFF userdata

25 31137786 31137786 4.0 KiB FFFF grow

26 1682310 1813381 512.0 MiB 8300 vendor

Warning: The kernel is still using the old partition table.

The new table will be used at the next reboot.

The operation has completed successfully.

sgdisk --delete=22 --new=22:112518:1682309 --change-name=22:system --new=26:1682310:1813381 --change-name=26:vendor --print /dev/block/sda

This will format system and vendor again, so it can be used

make_ext4fs /dev/block/sda22

make_ext4fs /dev/block/sda26

/external_sd/treble # e2fsck -f /dev/block/bootdevice/by-name/system

e2fsck 1.43.3 (04-Sep-2016)

Pass 1: Checking inodes, blocks, and sizes

Pass 2: Checking directory structure

Pass 3: Checking directory connectivity

Pass 4: Checking reference counts

Pass 5: Checking group summary information

/dev/block/bootdevice/by-name/system: 11/425984 files (0.0% non-contiguous), 57060/1700864 blocks

/external_sd/treble # resize2fs /dev/block/bootdevice/by-name/system 1569792

resize2fs 1.43.3 (04-Sep-2016)

Resizing the filesystem on /dev/block/bootdevice/by-name/system to 1569792 (4k) blocks.

The filesystem on /dev/block/bootdevice/by-name/system is now 1569792 (4k) blocks long.

/external_sd/treble #

D:\android\cmder

λ fastboot flash system D:\android\V30\Treble\PixelExperienceP-arm-aonly.img

Sending sparse 'system' 1/4 (524284 KB) OKAY [ 2.138s]

Writing sparse 'system' 1/4 OKAY [ 0.007s]

Sending sparse 'system' 2/4 (524284 KB) OKAY [ 5.330s]

Writing sparse 'system' 2/4 OKAY [ 0.006s]

Sending sparse 'system' 3/4 (524284 KB) OKAY [ 4.422s]

Writing sparse 'system' 3/4 OKAY [ 0.007s]

Sending sparse 'system' 4/4 (55216 KB) OKAY [ 2.721s]

Writing sparse 'system' 4/4 OKAY [ 0.006s]

Finished. Total time: 22.267s