When using the partition task in DS the task fails with: GDisk failed to create partition 1 on disk 1', return code 0, location 'Tcube_ClientPartitionDisk.cpp:689'
DS 8.7.2
GDisk from 8.7.2 (and older) has issues with status reporting, PectAgent from 8.7.1 (and older) has issues with GDisk status checking.
PectAgent from 8.7.2+ properly checks for statuses from GDisk.
this issue has been addressed and fixed in 8.7.3
-OR-
Workaround: Use a script task with Diskpart to format the drive with something like the following:
rem == CreatePartitions-UEFI.txt ==
rem == These commands are used with DiskPart to
rem create four partitions
rem for a UEFI/GPT-based PC.
rem Adjust the partition sizes to fill the drive
rem as necessary. ==
echo select disk 0 >> x:\diskpart.txt
echo clean >> x:\diskpart.txt
echo convert gpt >> x:\diskpart.txt
rem == 1. System partition =========================
echo create partition efi size=100 >> x:\diskpart.txt
rem ** NOTE: For Advanced Format 4Kn drives,
rem change this value to size = 260 **
echo format quick fs=fat32 label="System" >> x:\diskpart.txt
echo assign letter="S" >> x:\diskpart.txt
rem == 2. Microsoft Reserved (MSR) partition =======
echo create partition msr size=16 >> x:\diskpart.txt
rem == 3. Windows partition ========================
rem == a. Create the Windows partition ==========
echo create partition primary >> x:\diskpart.txt
rem == b. Create space for the recovery tools ===
rem ** Update this size to match the size of
rem the recovery tools (winre.wim)
rem plus some free space.
echo shrink minimum=650 >> x:\diskpart.txt
rem == c. Prepare the Windows partition =========
echo format quick fs=ntfs label="Windows" >> x:\diskpart.txt
echo assign letter="W" >> x:\diskpart.txt
rem === 4. Recovery tools partition ================
echo create partition primary >> x:\diskpart.txt
echo format quick fs=ntfs label="Recovery tools" >> x:\diskpart.txt
echo assign letter="R" >> x:\diskpart.txt
echo set id="de94bba4-06d1-4d40-a16a-bfd50179d6ac" >> x:\diskpart.txt
echo gpt attributes=0x8000000000000001 >> x:\diskpart.txt
echo list volume >> x:\diskpart.txt
echo exit >> x:\diskpart.txt
diskpart /s x:\diskpart.txt