Easy-GPU-PV icon indicating copy to clipboard operation
Easy-GPU-PV copied to clipboard

Update-VMGpuPartitionDriver can't find driver letter

Open atomic-kernel opened this issue 1 year ago • 2 comments

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.

atomic-kernel avatar Oct 02 '24 11:10 atomic-kernel

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.

https://github.com/jamesstringerparsec/Easy-GPU-PV/issues/407 Isnt related as their error was using the wrong script

Windows 11 pro 23h2

Plutoaurus avatar Oct 21 '24 07:10 Plutoaurus

#435 this is the solution. Just set th driver letter manualy onece using Windows Disk Dispatcher.

Axenic22 avatar Apr 17 '25 11:04 Axenic22