windows挂载ext4_如何在Win 10中使用Windows资源管理器访问Linux文件

微软发布Windows10预览版20211,新增功能允许用户通过WSL2访问Windows不支持的Linux文件系统如ext4。用户可通过PowerShell安装磁盘,并通过Windows资源管理器访问。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

IT之家 9 月 11 日消息 微软今天宣布向开发人员内部人员发布 Windows 10 Insider Preview Build 20211。其为用户带来了一项新功能,该功能支持用户访问 Windows 本身不支持的 Linux 文件系统(例如 ext4)。

990847407d1b8b4663c9662e460c034f.png

IT之家了解到,Windows 10 的这一功能也支持在 WSL 2 内附加和安装物理磁盘。wsl --mount.

从 Windows 访问 Linux 文件的方法如下:

要安装磁盘,请使用管理员权限打开 PowerShell 窗口并运行:

wsl --mount

要列出 Windows 中的可用磁盘,请运行:

wmic diskdrive list brief

要从 WSL 2 卸下和分离磁盘,请运行:

wsl --unmount >Diskpath>

挂载后,用户可以通过 Windows 资源管理器访问这些磁盘,方法是导航到 wsl $,然后导航到 mount 文件夹。

目前该功能尚存在一些限制:仅物理磁盘可以连接到 WSL 2,并且不能连接单个分区

可以读写Ext2,以Ext2方式挂载Ext3文件系统(不支持Ext3日志),不支持中文! It provides Windows NT4.0/2000/XP/2003/Vista/2008 with full access to Linux Ext2 volumes (read access andwrite access). This may be useful if you have installed both Windows and Linux as a dual boot environment on your computer. What features are supported? Complete reading and writing access to files and directories of volumes with theExt2 orExt3 file system. Supports features which are specific to the I/O-system of Windows: Byte Range Locks, Directory Notfication (so the Explorer updates the view of a directory on changes within that directory), Oplocks (so SMB clients are able to cache the content of files). Allows Windows to run with paging files on Ext2 volumes. UTF-8 encoded file names are supported. The driver treats files with file names that start with a dot "." character ashidden. Supports GPT disks if the Windows version used also does. Supports use of the Windows mountvol utility to create or delete drive letters for Ext2 volumes (except on Windows NT 4.0). See also section"Can drive letters also be configured from scripts?". What features are *not* supported? Inodes that are larger than 128 bytes are not supported. Access rights are not maintained. All users can access all the directories and files of an Ext2 volume. If a new file or directory is created, it inherits all the permissions, the GID and the UID from the directory where it has been created. There is one exception to this rule: a file (but not a directory) the driver has created always has cleared "x" permissions, it inherits the "r" and the "w" permissions only. See also section"What limitations arise from not maintaining access rights?". The driver does not allow accessing special files at Ext2 volumes, the access will be always denied. (Special files are sockets, soft links, block devices, character devices and pipes.) Alternate 8.3-DOS names are not supported (just because there is no place to store them in an Ext2 file system). This can prevent legacy DOS applications, executed by the NTVDM of Windows, from accessing some files or directories. Currently the driver does not implement defragging support. So defragmentation applications will neither show fragmentation information nor defragment any Ext2 volume. This software does not achieve booting a Windows operating system from an Ext2 volume. LVM volumes are not supported, so it is not possible to access them.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值