windows挂载ext4_WSL2 支持挂载物理磁盘,Windows 可直接访问 ext4

77119aea930b54b6f87e951a8e0c390c.png

喜欢就关注我们吧!

最新的 Windows Insiders Preview Build 为 WSL2 的命令行程序增加了新功能:wsl --mount,这个新参数支持在 WSL2 添加和挂载物理磁盘,用户通过它能访问 Windows 没有原生支持的 Linux 文件系统(例如 ext4)。

对于使用多启动设置或执行 Linux 备份到 ext4 或其他非 Windows 文件系统的用户来说,利用 WSL 的新挂载选项可以与这些文件进行交互。

下面是将给定硬盘的特定分区挂载到 WSL 并浏览其文件的示例。

e12a02027ae651cda10dfd7f1d4dd334.png

此外,一旦磁盘被 WSL 挂载,还可以通过 Windows 资源管理器进行访问,方法是先导航至 \wsl$,然后再导航到 mount 文件夹。

但有一个值得注意的限制是,目前的 Windows Insider 版本无法浏览单个分区,只能查看 WSL2 挂载的整个磁盘。

d2f4bd6bea421c3742bcc11d43e5e1ea.png

▼  往期精彩回顾  ▼ Linus 回应言行不当争议:Debian 文化问题强迫症福音!玩 Flappy Bird 怎样可以拿到 2000 高分华为鸿蒙正式开源,进入开放原子开源基金会中国终于有开源基金会了!既然 Star 可以刷,那我们如何判断一个开源项目的好坏?

0da59cc17aa6912354a0eb2fda68d326.gif

                      f7ff2300c6bab473ed73252675ef4662.png

觉得不错,请点个在看呀

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
可以读写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、付费专栏及课程。

余额充值