PS C:\platform-tools> ./adb push sgdisk /sbin PS C:\platform-tools> ./adb shell sh-5.0# chmod 0777 /sbin/sgdisk sh-5.0# sgdisk --delete=18 /dev/block/sda 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. sh-5.0# sgdisk --delete=19 /dev/block/sda 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. sh-5.0# sgdisk --delete=20 /dev/block/sda 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. sh-5.0# sgdisk --delete=47 /dev/block/sde The operation has completed successfully. sh-5.0# sgdisk --delete=48 /dev/block/sde The operation has completed successfully. sh-5.0# sgdisk --new 0:0:+1024M --change-name=18:vendor --typecode=18:97D7B011-54DA-4835-B3C4-917AD6E73D74 /dev/block/> Setting name! partNum is 17 REALLY setting name! 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.
sh-5.0# sgdisk --new 0:0:+64M --change-name=19:recovery --typecode=19:9D72D4E4-9958-42DA-AC26-BEA7A90B0434 /dev/block/> Setting name! partNum is 18 REALLY setting name! 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. sh-5.0# sgdisk --new 0:0:+0 --change-name=20:cache --typecode=20:5594C694-C871-4B5F-90B1-690A6F68E0F7 /dev/block/sda Setting name! partNum is 19 REALLY setting name! 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.
sh-5.0# sgdisk --new 0:0:+512M --change-name=47:cust --typecode=47:C3008246-512A-4FEB-8A51-068FA4AD5F6D /dev/block/sde Setting name! partNum is 46 REALLY setting name! The operation has completed successfully. sh-5.0# sgdisk --new 0:0:0 --change-name=48:system --typecode=48:97D7B011-54DA-4835-B3C4-917AD6E73D74 /dev/block/sde Setting name! partNum is 47 REALLY setting name! The operation has completed successfully. sh-5.0# sgdisk --print /dev/block/sde Disk /dev/block/sde: 1179648 sectors, 4.5 GiB Logical sector size: 4096 bytes Disk identifier (GUID): A9708BF8-6148-6573-F93F-EF3C911FC364 Partition table holds up to 64 entries First usable sector is 6, last usable sector is 1179642 Partitions will be aligned on 2-sector boundaries Total free space is 16379 sectors (64.0 MiB)