Score:0

ext4.vhdx corrupted after mounting with guestmount

tc flag

I'm running windows 11 and Ubuntu 22.04.2 LTS (Jammy Jellyfish) dual boot,yesterday i tried to mount the WSL2 disk image ext4.vhdx from ubuntu using guestmount, this is the command i used:

sudo guestmount --add /path/to/ext4.vhdx -i --rw /mnt/myubuntu

at first it worked with no problem, but today when i wanted to do it again and access the WSL2 files i got this error:

guestmount: access: /mnt/asus/Users/root1/Documents/WSL/Ubuntu/ext4.vhdx: Input/output error

even when i just try to run ls against the file:

ls: cannot access 'ext4.vhdx': Input/output error

when i try to ls ext4.vhdx

also when i boot from windows i get a notification saying that i have some files corrupted on myC: drive and when i run WSL it says that the ext4.vhdx is corrupted and unreadable, I run the check on C: drive then reboot, but no luck, also running chkdsk /f C: gives an error saying the volume is in use by another proccess.

is there a way to recover the disk image or at least some file inside it?

Thanks in advance

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.