Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New-OSDCloudUSB throwing an error on GPT disk #42

Closed
andrewtchilds opened this issue Oct 13, 2022 · 1 comment
Closed

New-OSDCloudUSB throwing an error on GPT disk #42

andrewtchilds opened this issue Oct 13, 2022 · 1 comment
Assignees

Comments

@andrewtchilds
Copy link
Contributor

andrewtchilds commented Oct 13, 2022

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.

andrewtchilds added a commit to andrewtchilds/OSD that referenced this issue Oct 13, 2022
Fix for OSDeploy#42

I tried `Initialize-Disk`, but it threw error "Initialize-Disk : The disk has already been initialized.", so went with `Set-Disk` instead.
@OSDeploy
Copy link
Owner

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

@OSDeploy OSDeploy self-assigned this Oct 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants