News: 1599853213

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

Climb every mountain, wsl --mount every Linux disk in latest Windows Preview

(2020/09/11)


Although Windows 10X remains missing in action, Microsoft dished up some more goodies for Linux fans in the latest Dev Channel build of Windows 10.

Microsoft opted to start by highlighting the, er, revolutionary "Search" feature to the Default Apps page now available to all Dev Channel Insiders in [1]build 20211 , however it was [2]a tweak to Windows Subsystem for Linux (WSL) 2 that will be of most interest to the community.

Browsing a WSL2 Linux filesystem in Windows 10 has been a thing for a while now but the update allows a user to attach and mount a physical disk inside a WSL2 distribution and peer at it from Windows.

The feature will be useful for those who currently dual-boot Windows and Linux; a swift wsl -–mount with a valid drive path will permit access to the Linux filesystem (even those unsupported by Windows) from File Explorer.

The default filesystem is Ext4 (as beloved by the likes of Ubuntu), and filesystems that can be mounted are limited to those natively supported in the kernel. USB flash drives do not work at present (although USB disks should) and only entire disks can be attached to WSL2.

The feature [3]had been teased earlier this week during [4]microWSLConf 2020 .

We took the build out for a spin, and while it is undoubtedly neat to see filesystems previously not easily accessible from Windows available within the File Explorer, some rough edges remain in this preview – the vEthernet adaptor in WSL2 has a habit of disconnecting itself after a while and issues persist with the wsl --install failing to, er, install the Linux kernel.

Heck, this is preview code after all and, as with everything in the Dev Channel, may never see the light of day. Unlike, alas, a nasty that appears to have turned up with [5]Tuesday's bumper batch of bug fixes for Windows 10 2004.

Nestled among all the updates lurked something that has broken WSL2 for some users with an [6]"Element not found" error on start-up.

[7]Other users reported a "The remote procedure call failed" error after the same update was applied by Windows Update.

Ben Hillis, a member of the WSL team at Microsoft, [8]told users that the team was "actively investigating" and suggested that those affected uninstall KB4571756. Doing so seems to cure the borkage for most people, although many will be keen to have both the update and WSL2 working properly.

"Might break WSL" is, alas, not yet listed as a known issue for the update. ®

Get our [9]Tech Resources



[1] https://blogs.windows.com/windows-insider/2020/09/10/announcing-windows-10-insider-preview-build-20211/

[2] https://devblogs.microsoft.com/commandline/access-linux-filesystems-in-windows-and-wsl-2/

[3] https://twitter.com/wslconf/status/1303912181352796161

[4] https://www.wslconf.dev/

[5] https://support.microsoft.com/en-gb/help/4571756/windows-10-update-kb4571756

[6] https://github.com/microsoft/WSL/issues/5880

[7] https://github.com/microsoft/WSL/issues/5890

[8] https://github.com/microsoft/WSL/issues/5880#issuecomment-690740126

[9] https://whitepapers.theregister.com/

Not till hell freezes over.

oiseau

... those who currently dual-boot Windows and Linux; a swift wsl -–mount with a valid drive path will permit access to the Linux filesystem ...

If you actually "dual-boot Windows and Linux" it is probably because your daily boot is on Linux and need (for whatever reason) access to a Windows installation every so often.

ie: dual-boot Linux and Windows. Not the other way around.

Those who know what they are doing will value their Linux installation and stay away from this dumb tomfoolery.

It is a recipe for disaster, a hellish "fox in the henhouse" scenario.

If you really need to have windows, you can set up your desk next to one [8^D!] or fire up one or more virtual machines in Linux with all the Windows you need.

But let any Windows installation acess my Linux drives?

Not till hell freezes over.

Twice.

O.

You will become rich and famous unless you don't.