WSL2 表示它使用了超过 90% 的大小。
System information as of Sat Jul 30 22:52:35 CST 2022
System load: 0.107421875
Usage of /: 90.7% of 250.98GB
Memory usage: 10%
Swap usage: 0%
Processes: 44
Users logged in: 0
IPv4 address for br-345a7fa3f56b: 172.18.0.1
IPv4 address for docker0: 172.17.0.1
IPv4 address for eth0: 172.31.228.161
=> / is using 90.7% of 250.98GB
但是,DISKPART 说Virtual size: 500 GB
DISKPART> detail vdisk
Device type ID: 0 (Unknown)
Vendor ID: {00000000-0000-0000-0000-000000000000} (Unknown)
State: Added
Virtual size: 500 GB
Physical size: 235 GB
Filename: E:\WSL2\ubuntu\ext4.vhdx
Is Child: No
Parent Filename:
Associated disk#: Not found.
这是输出Get-VHD –Path xxx
ComputerName : DESKTOP-RMF966H
Path : E:\WSL2\ubuntu\ext4.vhdx
VhdFormat : VHDX
VhdType : Dynamic
FileSize : 253127294976
Size : 536870912000
MinimumSize :
LogicalSectorSize : 512
PhysicalSectorSize : 4096
BlockSize : 1048576
ParentPath :
DiskIdentifier : xxxxxxxxxxxxxxxxxxx
FragmentationPercentage : 100
Alignment : 1
Attached : True
DiskNumber :
IsPMEMCompatible : False
AddressAbstractionType : None
Number :
为什么wsl2不能识别500GB?