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

Update-VMGpuPartitionDriver can't find driver letter #404

Open
atomic-kernel opened this issue Oct 2, 2024 · 1 comment
Open

Update-VMGpuPartitionDriver can't find driver letter #404

atomic-kernel opened this issue Oct 2, 2024 · 1 comment

Comments

@atomic-kernel
Copy link

My windows version is win11 24h2

run Update-VMGpuPartitionDriver.ps1 get a lot of error like :

Copy-item : Not support xxx
 E:\xiazai\Easy-GPU-PV-main\Add-VMGpuPartitionAdapterFiles.psm1:62 : 17
+ ...             Copy-item -path "$DriverDir" -Destination "$driverDest" - ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Copy-Item], NotSupportedException
    + FullyQualifiedErrorId : System.NotSupportedException,Microsoft.PowerShell.Commands.CopyItemCommand

and the reason is
image
here get DriveLetter is empty, it seems that windows does not add driverletter to it automatically after mounting

I slove the problem by run Mount-VHD -Path $VHD.Path -PassThru manually, then open windows disk manager, and a driver letter to the disk, then umount it.

When it mounts next time, the driver letter will be reserved, so the script works.

@Plutoaurus
Copy link

Plutoaurus commented Oct 21, 2024

My windows version is win11 24h2

run Update-VMGpuPartitionDriver.ps1 get a lot of error like :

Copy-item : Not support xxx
 E:\xiazai\Easy-GPU-PV-main\Add-VMGpuPartitionAdapterFiles.psm1:62 : 17
+ ...             Copy-item -path "$DriverDir" -Destination "$driverDest" - ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Copy-Item], NotSupportedException
    + FullyQualifiedErrorId : System.NotSupportedException,Microsoft.PowerShell.Commands.CopyItemCommand

and the reason is image here get DriveLetter is empty, it seems that windows does not add driverletter to it automatically after mounting

I slove the problem by run Mount-VHD -Path $VHD.Path -PassThru manually, then open windows disk manager, and a driver letter to the disk, then umount it.

When it mounts next time, the driver letter will be reserved, so the script works.

Hi.

Also getting this error and have to manually mount the vhdx and assign letter before ejecting and then the script runs ok
Mount-VHD -Path $VHD.Path -PassThru

This isnt a Graphics driver issue but a issue with the mount-vhd command.

#407
Isnt related as their error was using the wrong script

Windows 11 pro 23h2

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