In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article introduces the knowledge of "how to access the Linux file system in Windows and WSL 2". Many people will encounter this dilemma in the operation of actual cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Starting with Windows Insiders preview version 20211, WSL 2 will provide a new feature: wsl-- mount. This new parameter allows you to connect and mount a physical disk in WSL 2 so that you can access file systems that Windows does not support (such as ext4).
So, if you use different disks to double boot Windows and Linux, you can now access your Linux files from Windows.
Start using
To mount the disk, open a PowerShell window with administrator privileges and run it.
Wsl-mount
"to list the available disks in Windows, run."
Wmic diskdrive list brief
To unmount and detach the disk from WSL 2, run the following command
Wsl-unmount
The disk path can be found in the DeviceID column. It is usually in the format of\. PHYSICALDRIVE*. The following is an example of mounting a specific partition of a specified hard disk to WSL and browsing its files:
Access these files using File Explorer
Once mounted, these disks can also be accessed through Windows Explorer by navigating to\ wsl$, and then to the mount folder.
Limitation
By default, wsl-- mount attempts to mount the disk as ext4. To specify a file system, or a more advanced scenario, see mounting the disk in WSL 2.
Also note that there is a limitation to this feature that only physical disks can connect to WSL 2. Currently, a single partition cannot be attached.
That's all for "how to access the Linux file system in Windows and WSL 2". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.