I Cannot Create USB Drive: Set-Disk ‘Not Supported’ When Creating DGX Recovery Image

I followed the System Recovery guide to reinstall the OS, but failed to create the USB drive when running CreateUSBKey.cmd. My OS is Windows 11 Pro 25H2. The error log is attached below:

For DGX Spark
FastOS Image Version:
NAME="DGX SPARK FASTOS"
DATE="2025-11-12T17:35:20+00:00"
VERSION="1.105.17"
BUILD_TYPE="customer"

Select USB Drive
  - Press Enter to pick the drive highlighted in green
  - Use Up and Down arrows to navigate the list

> TU280Pro 256G thinkplus (No Drive Letter) - 238.47GB

Selected drive: TU280Pro 256G thinkplus
Are you sure you want to format this drive? (Y/N): Y
Clear-Disk : The disk has not been initialized.
Activity ID: {dcb76252-5b79-0002-33cf-badc795bdc01}
At C:\Users\Di\Desktop\DGX-Image\scripts\CreateUSBKey.ps1:141 char:9
+         Clear-Disk -Number $selectedDrive.Number -RemoveData -RemoveO ...
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (StorageWMI:ROOT/Microsoft/Windows/Storage/MSFT_Disk) [Clear-Disk], CimExc
   eption
    + FullyQualifiedErrorId : StorageWMI 41000,Clear-Disk

Setting disk partition style to MBR MSFT_Disk (ObjectId = "{1}\\FD\root/Microsoft/Windows/Storage/...)
Set-Disk : Not Supported
Activity ID: {dcb76252-5b79-0002-33cf-badc795bdc01}
At C:\Users\Di\Desktop\DGX-Image\scripts\CreateUSBKey.ps1:148 char:5
+     Set-Disk -Number $selectedDrive.Number -PartitionStyle MBR
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (StorageWMI:ROOT/Microsoft/..._StorageCmdlets) [Set-Disk], CimExceptio
   n
    + FullyQualifiedErrorId : StorageWMI 1,Set-Disk

New-Partition : The disk has not been initialized.
Activity ID: {dcb76252-5b79-0002-33cf-badc795bdc01}
At C:\Users\Di\Desktop\DGX-Image\scripts\CreateUSBKey.ps1:152 char:22
+ ... partition = New-Partition -DiskNumber $selectedDrive.Number -Size 31G ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (StorageWMI:ROOT/Microsoft/Windows/Storage/MSFT_Disk) [New-Partition], Cim
   Exception
    + FullyQualifiedErrorId : StorageWMI 41000,New-Partition

An error occurred: Cannot validate argument on parameter 'Partition'. The argument is null. Provide a valid value for the argument, and then try running the command again.
Press any key to continue...

It could be an issue either with this specific USB driver or it’s size. Please try a different USB stick, maybe a smaller one (but at least 16 GB)

1 Like

Thanks for your reply! It works for me when using an old SanDisk 16GB USB 2.0 flash drive.

I think a better solution seems to be modifying the source code. Hope this problem can be solved in the future.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.