OSDeploy / OSD

OSD Shared Functions
MIT License
144 stars 59 forks source link

New-OSDCloudUSB throwing an error on GPT disk #42

Closed andrewtchilds closed 1 year ago

andrewtchilds commented 1 year ago

Getting error "New-Partition : A parameter is not valid for this type of partition. The parameters MbrType and IsActive cannot be used on a GPT disk." when running New-OSDCloudUSB and selecting a GPT partitioned USB drive.

It seems Clear-Disk doesn't "clear" the partition type as seen by Get-Disk.

image

To get around this, I first ran Get-Disk -Number 1 | Set-Disk -PartitionStyle MBR, then kicked off New-OSDCloudUSB again and it completed successfully.

OSDeploy commented 1 year ago

Thanks for adding the fix. This will be published in the next release