转载自微软官网:
https://learn.microsoft.com/en-us/windows/wsl/disk-space
Windows WSL 文件存储位置
我有三个虚拟机
但ubuntu-22.04-test1是我乱放的,地址忘记了
如何查找地址呢?
查找EXT4.VHDX文件存储位置:
(Get-ChildItem -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Lxss | Where-Object { $_.GetValue("DistributionName") -eq 'ubuntu-22.04-test1' }).GetValue("BasePath") + "\ext4.vhdx"
输出类似于,这就是vhdx文件的具体位置: \\?\D:\python\ext4.vhdx