SSH or use ESXi Shell to your ESXi server. Use ls /dev/disks
to list your disks and disk ID. Stop and disable the USB arbitrator service (either via command line or via GUI). Unless otherwise noted, do not include the brackets [ ] as part of the command.
Run the following commands:
partedUtil mklabel /vmfs/devices/disks/
[DISK ID]
gpt
partedUtil getptbl /vmfs/devices/disks/
[DISK ID]
eval expr $(partedUtil getptbl /vmfs/devices/disks/
[DISK ID]
| tail -1 | awk '{print $1 " \\* " $2 " \\* " $3}') - 1
- [[VALUE WILL BE RETURNED HERE IN OUTPUT OF COMMAND ABOVE]]
partedUtil setptbl /vmfs/devices/disks/
[DISK ID]
gpt "1 2048 [VALUE FROM RESULT ABOVE] AA31E02A400F11DB9590000C2911D1B8 0"
vmkfstools -C vmfs6 -S USB-Datastore /vmfs/devices/disks/[DISK ID]:1