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

Incorrect path Error

Open Axenic22 opened this issue 9 months ago • 0 comments

Hi. The row $DriveLetter = (Mount-VHD -Path $VHD.Path -PassThru | Get-Disk | Get-Partition | Get-Volume | Where-Object {$_.DriveLetter} | ForEach-Object DriveLetter) in file Update-VMGpuPartitionDriver.ps1 returns empty string. This happens bacuse command Mount-VHD -Path $VHD.Path -PassThru | Get-Disk | Get-Partition | Get-Volume doesn't set disk drive letter automaticaly. To fix this I did next steps:

  1. Run Mount-VHD -Path $VHD.Path -PassThru.
  2. Open disk dispatcher in Windows.
  3. Right click on mounted disk and check "Change disk letter or path to disk".
  4. Set letter and save.
  5. Next run Dismount-VHD -Path $VHD.Path.
  6. Run script Update-VMGpuPartitionDriver.ps1.

The problem is the host OS doesn't set disk letter automaticaly to mounted disk. We must do it manualy onece. After that each next mount will set the disk letter automaticaly.

Note. My host OS is windows 11 Home. I installed Hyper-V component using instruction from internet.

Axenic22 avatar Apr 17 '25 10:04 Axenic22