Quantcast
Channel: Active questions tagged windows-subsystem-for-linux - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2796

Is Accessing WSL2 Filesystem from Ubuntu Dual Boot Safe? Need Advice!

$
0
0

I've been exploring the idea of accessing the WSL2 filesystem directly from Ubuntu in a dual-boot setup with Windows. The concept involves mounting the WSL2 virtual hard disk (VHD) from Ubuntu to interact with the files stored within the WSL2 environment. This process could potentially streamline workflows that span both operating systems. ChatGPT tells me, this is risky, but won't provide sources, and i do not find much online. It thinks read-only is a good idea, but that would make it kinda useless.

It recommends it like this:

sudo apt install libguestfs-tools sudo guestmount -a /path/to/your/WSL2-distro.vhdx -m /dev/sda --ro /mnt/wsl2--ro .. read-only

Anyone tried this? Success stories or cautionary tales welcome. Looking for advice or insights to do this safely.

Thanks!


Viewing all articles
Browse latest Browse all 2796

Trending Articles