The virtual disk ("userdata.2.vhdx") of the Windows Subsystem for Android is damaged, which caused WSA startup failure.

Problems
I once tried to copy a large amount of files from the subsystem to Windows by using adb command:
.\adb connect 127.0.0.1:58526
.\adb pull /sdcard/… C:\…
However, for some unknown reasons, the progress is stuck at a certain value, so I close the terminal window. But then i found that i cannot open the subsystem anymore. I tried to open some apps and the Amazon app store. Each time the subsystem was launched, the launching window would last for a time, and then it closed itself and opened an identical one. This thing repeated about three or four times and finally stopped.
When i open the task manager to monitor the whole progress, i find that each time when the window was closed, the progress vemmemWSA
would reboot. And when the window was closed for the last time, it ended.
Developers Mode is still can be used:
I thought there was something wrong with the vdisk, because when i tried to used the Repair function, it didn't fix it. I copyed the userdata.2.vhdx
and Reset wsa. it worked.but when i used the old vdisk file to covered the new one, the same problem appeared again.
There is some important data in the vdisk. Are there any ways to fix the problem? If not, can the vdisk be opened without wsa? Thanks! 🫶
Additional Information
- The apps in wsa showed that the wsa storage space was only about 125 gb. (However, my computer has about 500 GB of space left.) When i used the
pull
command, thereonly a few dozen kilobytes of space remained. - I once tried to use
diskpart
to extenduserdata.2.vhdx
:
diskpart
sel vdisk file=C:\Users\[username]\AppData\Local\Packages\MicrosoftCorporationII.WindowsSubsystemForAndroid_8wekyb3d8bbwe\LocalCache\userdata.2.vhdx
expand vdisk maximum=[...]
However, (though the "Compress contents to save disk space" and "Encrypt contents to secure data" checkboxes are unselected), it cannot work and an error was reported:
"The requested operation could not be completed due to a virtual disk system limitation. Virtual hard disk files must be uncompressed and unencrypted and must not be sparse."
-
attach vdisk
command cannot be used for the same reason. When mounting the vdisk in the Disk Manager, an error occurs indicating that the disk is not initialized.
- Windows Event Logs: when the wsa is opened, Application Error:
日誌名稱: Application
來源: Application Error
日期: 2024/1/7 12:27:23
事件 ID: 1000
任務類別: 應用程序崩潰事件
級別: 錯誤
關鍵字:
用戶: ZJYLAPTOP\eric2
計算機: zjylaptop
描述:
錯誤應用程序名稱: WsaClient.exe,版本: 2310.40000.2.0,時間戳: 0x654eccac
錯誤模塊名稱: WsaClient.exe,版本: 2310.40000.2.0,時間戳: 0x654eccac
異常代碼: 0xc0000409
錯誤偏移量: 0x00000000000237b7
錯誤進程 ID: 0x0x2278
錯誤應用程序啟動時間: 0x0x1DA412183D6B524
錯誤應用程序路徑: C:\Program Files\WindowsApps\MicrosoftCorporationII.WindowsSubsystemForAndroid_2310.40000.2.0_x64__8wekyb3d8bbwe\WsaClient\WsaClient.exe
錯誤模塊路徑: C:\Program Files\WindowsApps\MicrosoftCorporationII.WindowsSubsystemForAndroid_2310.40000.2.0_x64__8wekyb3d8bbwe\WsaClient\WsaClient.exe
報告 ID: 5cfc0669-bd80-47b3-a490-bcefb31b4493
錯誤程序包全名: MicrosoftCorporationII.WindowsSubsystemForAndroid_2310.40000.2.0_x64__8wekyb3d8bbwe
錯誤程序包相對應用程序 ID: App
事件 Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Application Error" Guid="{a0e9b465-b939-57d7-b27d-95d8e925ff57}" />
<EventID>1000</EventID>
<Version>0</Version>
<Level>2</Level>
<Task>100</Task>
<Opcode>0</Opcode>
<Keywords>0x8000000000000000</Keywords>
<TimeCreated SystemTime="2024-01-07T04:27:23.6008494Z" />
<EventRecordID>12886</EventRecordID>
<Correlation />
<Execution ProcessID="14248" ThreadID="11160" />
<Channel>Application</Channel>
<Computer>zjylaptop</Computer>
<Security UserID="S-1-5-21-901417204-2354185849-3855297307-1001" />
</System>
<EventData>
<Data Name="AppName">WsaClient.exe</Data>
<Data Name="AppVersion">2310.40000.2.0</Data>
<Data Name="AppTimeStamp">654eccac</Data>
<Data Name="ModuleName">WsaClient.exe</Data>
<Data Name="ModuleVersion">2310.40000.2.0</Data>
<Data Name="ModuleTimeStamp">654eccac</Data>
<Data Name="ExceptionCode">c0000409</Data>
<Data Name="FaultingOffset">00000000000237b7</Data>
<Data Name="ProcessId">0x2278</Data>
<Data Name="ProcessCreationTime">0x1da412183d6b524</Data>
<Data Name="AppPath">C:\Program Files\WindowsApps\MicrosoftCorporationII.WindowsSubsystemForAndroid_2310.40000.2.0_x64__8wekyb3d8bbwe\WsaClient\WsaClient.exe</Data>
<Data Name="ModulePath">C:\Program Files\WindowsApps\MicrosoftCorporationII.WindowsSubsystemForAndroid_2310.40000.2.0_x64__8wekyb3d8bbwe\WsaClient\WsaClient.exe</Data>
<Data Name="IntegratorReportId">5cfc0669-bd80-47b3-a490-bcefb31b4493</Data>
<Data Name="PackageFullName">MicrosoftCorporationII.WindowsSubsystemForAndroid_2310.40000.2.0_x64__8wekyb3d8bbwe</Data>
<Data Name="PackageRelativeAppId">App</Data>
</EventData>
</Event>
Windows Error Reporting:
日誌名稱: Application
來源: Windows Error Reporting
日期: 2024/1/7 12:33:38
事件 ID: 1001
任務類別: 無
級別: 信息
關鍵字:
用戶: ZJYLAPTOP\eric2
計算機: zjylaptop
描述:
故障存儲段 ,類型 0
事件名稱: MoBEX
響應: 不可用
Cab ID: 0
問題簽名:
P1: MicrosoftCorporationII.WindowsSubsystemForAndroid_2310.40000.2.0_x64__8wekyb3d8bbwe
P2: praid:App
P3: 2310.40000.2.0
P4: 654eccac
P5: WsaClient.exe
P6: 2310.40000.2.0
P7: 654eccac
P8: 00000000000237b7
P9: c0000409
P10: 0000000000000007
附加文件:
可在此處獲取這些文件:
\\?\C:\ProgramData\Microsoft\Windows\WER\ReportQueue\AppCrash_MicrosoftCorpora_33f9f1b9393299bd6a226de749dff6c61cf61b4_660ed956_d491060d-a628-4d21-8770-c52d4f7ae2da
分析符號:
重新檢查解決方案: 0
報告 ID: 9723a884-dd68-48f0-8cfa-2e5a6a8315ca
報告狀態: 4
哈希存儲段:
Cab GUID: 0
事件 Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Windows Error Reporting" Guid="{0ead09bd-2157-539a-8d6d-c87f95b64d70}" />
<EventID>1001</EventID>
<Version>0</Version>
<Level>4</Level>
<Task>0</Task>
<Opcode>0</Opcode>
<Keywords>0x8000000000000000</Keywords>
<TimeCreated SystemTime="2024-01-07T04:33:38.4133727Z" />
<EventRecordID>12897</EventRecordID>
<Correlation />
<Execution ProcessID="14160" ThreadID="13056" />
<Channel>Application</Channel>
<Computer>zjylaptop</Computer>
<Security UserID="S-1-5-21-901417204-2354185849-3855297307-1001" />
</System>
<EventData>
<Data Name="Bucket">
</Data>
<Data Name="BucketType">0</Data>
<Data Name="EventName">MoBEX</Data>
<Data Name="Response">不可用</Data>
<Data Name="CabId">0</Data>
<Data Name="P1">MicrosoftCorporationII.WindowsSubsystemForAndroid_2310.40000.2.0_x64__8wekyb3d8bbwe</Data>
<Data Name="P2">praid:App</Data>
<Data Name="P3">2310.40000.2.0</Data>
<Data Name="P4">654eccac</Data>
<Data Name="P5">WsaClient.exe</Data>
<Data Name="P6">2310.40000.2.0</Data>
<Data Name="P7">654eccac</Data>
<Data Name="P8">00000000000237b7</Data>
<Data Name="P9">c0000409</Data>
<Data Name="P10">0000000000000007</Data>
<Data Name="AttachedFiles">
</Data>
<Data Name="StorePath">\\?\C:\ProgramData\Microsoft\Windows\WER\ReportQueue\AppCrash_MicrosoftCorpora_33f9f1b9393299bd6a226de749dff6c61cf61b4_660ed956_d491060d-a628-4d21-8770-c52d4f7ae2da</Data>
<Data Name="AnalysisSymbol">
</Data>
<Data Name="Rechecking">0</Data>
<Data Name="ReportId">9723a884-dd68-48f0-8cfa-2e5a6a8315ca</Data>
<Data Name="ReportStatus">4</Data>
<Data Name="HashedBucket">
</Data>
<Data Name="CabGuid">0</Data>
</EventData>
</Event>
When the Error occured for the first time:
日誌名稱: Application
來源: Windows Error Reporting
日期: 2023/12/23 1:57:53
事件 ID: 1001
任務類別: 無
級別: 信息
關鍵字:
用戶: SYSTEM
計算機: zjylaptop
描述:
故障存儲段 ,類型 0
事件名稱: StoreAgentScanForUpdatesFailure0
響應: 不可用
Cab ID: 0
問題簽名:
P1: Update;
P2: 8024402c
P3: 22621
P4: 2861
P5: Windows.Desktop
P6:
P7:
P8:
P9:
P10:
附加文件:
可在此處獲取這些文件:
\\?\C:\ProgramData\Microsoft\Windows\WER\ReportQueue\NonCritical_Update;_dd101add47cbe4a28f75cb8d45ea1ee4ba1bd5_00000000_350d76fb-9962-4a8d-804f-52b28f648cb4
分析符號:
重新檢查解決方案: 0
報告 ID: 350d76fb-9962-4a8d-804f-52b28f648cb4
報告狀態: 4
哈希存儲段:
Cab GUID: 0
事件 Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Windows Error Reporting" Guid="{0ead09bd-2157-539a-8d6d-c87f95b64d70}" />
<EventID>1001</EventID>
<Version>0</Version>
<Level>4</Level>
<Task>0</Task>
<Opcode>0</Opcode>
<Keywords>0x8000000000000000</Keywords>
<TimeCreated SystemTime="2023-12-22T17:57:53.0458568Z" />
<EventRecordID>12066</EventRecordID>
<Correlation />
<Execution ProcessID="9260" ThreadID="19204" />
<Channel>Application</Channel>
<Computer>zjylaptop</Computer>
<Security UserID="S-1-5-18" />
</System>
<EventData>
<Data Name="Bucket">
</Data>
<Data Name="BucketType">0</Data>
<Data Name="EventName">StoreAgentScanForUpdatesFailure0</Data>
<Data Name="Response">不可用</Data>
<Data Name="CabId">0</Data>
<Data Name="P1">Update;</Data>
<Data Name="P2">8024402c</Data>
<Data Name="P3">22621</Data>
<Data Name="P4">2861</Data>
<Data Name="P5">Windows.Desktop</Data>
<Data Name="P6">
</Data>
<Data Name="P7">
</Data>
<Data Name="P8">
</Data>
<Data Name="P9">
</Data>
<Data Name="P10">
</Data>
<Data Name="AttachedFiles">
</Data>
<Data Name="StorePath">\\?\C:\ProgramData\Microsoft\Windows\WER\ReportQueue\NonCritical_Update;_dd101add47cbe4a28f75cb8d45ea1ee4ba1bd5_00000000_350d76fb-9962-4a8d-804f-52b28f648cb4</Data>
<Data Name="AnalysisSymbol">
</Data>
<Data Name="Rechecking">0</Data>
<Data Name="ReportId">350d76fb-9962-4a8d-804f-52b28f648cb4</Data>
<Data Name="ReportStatus">4</Data>
<Data Name="HashedBucket">
</Data>
<Data Name="CabGuid">0</Data>
</EventData>
</Event>