如果您在 PC 上与Windows一起安装了(Windows)Linux发行版,则访问Windows驱动器将毫无问题。NTFS是默认的Windows文件系统,得到很好的支持,大多数Linux发行版都能够轻松挂载NTFS驱动器。
然而,对于Windows用户来说,情况就不同了。不支持Ext4等常见的Linux文件系统。如果你想在Windows中访问(Windows)Linux分区,你需要安装一些额外的软件来完成这项工作。
为 Linux 分区选择正确的软件(Choosing The Right Software for Linux Partitions)
对于希望在Linux(Linux)上访问其文件的Windows用户,有多种软件选项。多年来,Ext2Fsd一直是首选选项,允许您在Windows本身内读取和写入您的Linux文件系统。
不幸的是,Ext2Fsd自 2017 年以来一直没有更新,倒数第二个版本 0.68 有一个“严重错误(critical bug)”,可能会损坏您在启用 64 位模式的Ext4驱动器上的数据。(Ext4)Ext2Fsd的站点已关闭,目前尚不清楚Ext2Fsd 0.69是否修复了此错误。
如果您需要对Linux驱动器进行写访问,这仍然是一种选择,但考虑到风险,如果您有 64 位(Linux)Ext4 Linux分区,这不是我们的主要建议。确保首先备份所有关键数据并仅使用最新的 0.69 版本的Ext2Fsd。
作为替代方案,我们推荐DiskInternals Linux Reader。它允许您从最常见的Linux文件系统访问文件。与Ext2fs不同,它不通过Windows Explorer执行此操作,而是通过其自己的文件管理器执行此操作。它也是免费供您使用的。
它不会让您直接将文件写入Linux驱动器,但您可以将需要编辑的任何文件保存到Windows驱动器。一个类似的开源替代品Ext2read也可供您使用,具有许多相同的功能。您不需要安装Ext2read,因为它是一个可移植的 .exe 文件。
使用 DiskInternals Linux 阅读器(Using DiskInternals Linux Reader)
DiskInternals Linux Reader是免费软件,因此您无需付费即可下载和使用。
首先,您需要下载 Linux Reader 安装程序(download the Linux Reader installer)。打开安装程序,接受条款,确认您的安装位置,然后单击安装(Install)。
安装完成后,确保选中Run DiskInternals Linux Reader复选框,然后单击Finish。
Linux Reader客户端设计精良,在设计上与Windows 文件资源管理器(Windows File Explorer)有一些相似之处。您将看到驱动器列表,包括任何可移动存储设备,例如USB闪存驱动器或 SD 卡。
在Hard Disk Drives(Hard Disk Drives)或Drives with Removable Storage下找到您的Linux分区。
您可以双击查看文件,或者右键单击并从下拉菜单中选择打开分区。(Open Partition)
您将看到一个分屏,上半部分显示Linux驱动器上的文件和文件夹。正如我们已经提到的,您不能直接对驱动器进行任何更改。您需要将文件复制到您的Windows驱动器或另一个适合Windows的分区。
为此,请选择要复制的文件和文件夹。右键单击(Right-click)所选文件,然后单击保存(Save)。
在导出向导(Export Wizard)中,您会看到保存文件的选项已被选中。
单击下一步(Next)。
选择保存文件和文件夹的位置。您可以自己键入位置,或单击“浏览(Browse )”以查找合适的输出文件夹,然后单击“下一步”。(Next.)
您将看到您选择的文件和文件夹的最终列表。如果您想在复制过程开始之前删除任何文件或文件夹,请取消选中任何项目旁边的复选框。
单击下一步(Next)继续。
完成后,您将看到最终确认,确认复制的文件和文件夹的数量以及保存位置。单击完成(Finish)关闭导出向导(Export Wizard)。
虽然 DiskInternals Linux Reader不允许您直接修改文件或文件夹,但您可以使用它快速访问任何重要的Linux文件。然后,您可以在运行Linux(Linux)时将它们传输回您的Linux驱动器,或者,如果您愿意冒险,您可以使用Ext2Fsd代替。
使用 Ext2Fsd 进行读写访问(Read & Write Access With Ext2Fsd)
正如我们之前提到的, Ext2Fsd(Ext2Fsd)是需要直接从Windows中更改其(Windows)Linux驱动器上的文件或文件夹的用户的唯一选择。安装后,您可以照常从Windows 文件资源管理器中访问您的驱动器。(Windows File Explorer)建议使用Ext2Fsd 0.69(Ext2Fsd 0.69),尤其是对于具有Ext4 64 位Linux分区的用户。
首先,下载 Ext2Fsd 安装程序(download the Ext2Fsd installer)文件并开始安装。接受条款和安装位置,并确保在Select Additional Tasks下选中所有复选框。
安装程序完成后,系统会要求您重新启动 PC。安全关闭所有基本程序,然后单击完成(Finish)以重新启动。
重新启动后,查看是否在文件资源管理(File Explorer)器中找到了驱动器并双击打开它。如果您没有看到它,请打开Ext2卷管理器(Manager),右键单击您的驱动器,然后单击分配驱动器号。(Assign Drive Letter.)
为您的驱动器分配驱动器号后,您应该能够在文件资源管理器(File Explorer)中看到它。您将能够像使用任何其他驱动器一样创建、复制、移动或删除文件,但考虑到风险,除非您确定有可用的备份,否则请勿将其用于关键数据。
在 Windows 上安全访问您的 Linux 文件(Safely Accessing Your Linux Files On Windows)
访问Linux(Linux)文件或文件夹的最安全方法是使用只读选项,例如DiskInternals Linux Reader。使用这样的软件,损坏文件的机会为零。
如果您绝对需要编辑Linux驱动器上的文件或文件夹,Ext2Fsd将允许您这样做,但请注意通过使用最新版本来避免风险,并且只能在具有非关键文件的驱动器上进行。
如果您想在以后避免此问题,请考虑使用“池化”Linux分区驱动器(格式化为NTFS)在两个系统之间共享您的文件,或者将您的文件同步(sync your files)到 Google Drive。
How to Access Linux Partitions in Windows
If you have a Linux distribution sitting alongside Windowѕ on your PC, you’ll have no problem aсcessing уour Windows drive. NTFS, the default Windows file system, is well supported, аnd most Linux distros will be аble to mount NTFS drives with ease.
The same can’t be said for Windows users, however. Common Linux file systems like Ext4 aren’t supported. If you want to access Linux partitions in Windows, you’ll need to install some additional software to do the job.
Choosing The Right Software for Linux Partitions
There are several software options for Windows users looking to access their files on Linux. For many years, Ext2Fsd has been the go-to option, allowing you to read and write to your Linux file systems within Windows itself.
Unfortunately, Ext2Fsd hasn’t been updated since 2017, and the penultimate release, 0.68, had a “critical bug” that could corrupt your data on Ext4 drives with 64-bit mode enabled. The site for Ext2Fsd has gone down, and it’s unclear whether Ext2Fsd 0.69 fixed this bug.
It’s still an option if you need write access to your Linux drive, but given the risks, it isn’t our main recommendation if you have a 64-bit Ext4 Linux partition. Make sure you back up any critical data first and use only the most recent, 0.69 release of Ext2Fsd.
As an alternative, we recommend DiskInternals Linux Reader. It lets you access files from the most common Linux file systems. Unlike Ext2fs, it doesn’t do this through Windows Explorer, but through its own file manager. It’s also free for you to use.
It won’t let you write files to your Linux drive directly, but you can save any files you need to edit to your Windows drive. A similar, open-source alternative, Ext2read, is also available for you to use, with many of the same features. You don’t need to install Ext2read, as it comes as a portable .exe file.
Using DiskInternals Linux Reader
DiskInternals Linux Reader is freeware, so you don’t have to pay to download and use it.
To begin, you’ll need to download the Linux Reader installer. Open the installer, accept the terms, confirm your installation location and click Install.
Once the installation is complete, make sure the Run DiskInternals Linux Reader checkbox is checked, and then click Finish.
The Linux Reader client is well designed and has some similarities in design to the Windows File Explorer. You’ll see a list of your drives, including any removable storage like USB flash drives or SD cards.
Find your Linux partition, under either Hard Disk Drives or Drives with Removable Storage.
You can either double-click to view your files, or right-click and select Open Partition from the drop-down menu instead.
You’ll see a split-screen, with the top half showing files and folders on your Linux drive. As we’ve mentioned already, you can’t make any changes to the drive directly. You’ll need to copy the files to your Windows drive, or to another Windows-suitable partition.
To do this, select the files and folders you want to copy. Right-click the selected files and click Save.
In the Export Wizard, you’ll see the option to save files is already selected.
Click Next.
Choose the location to save your files and folders. You can type the location yourself, or click Browse to find a suitable output folder before clicking Next.
You’ll see a final list of your chosen files and folders. If you want to remove any files or folders before the copying process begins, uncheck the checkbox next to any items.
Click Next to proceed.
Once completed, you’ll see a final confirmation, confirming the number of files and folders copied, as well as the save location. Click Finish to close the Export Wizard.
While DiskInternals Linux Reader doesn’t allow you to modify files or folders directly, you can use it to quickly access any essential Linux files. You can then transfer these back to your Linux drive when you’re running Linux or, if you’re willing to take the risk, you can use Ext2Fsd instead.
Read & Write Access With Ext2Fsd
Ext2Fsd, as we mentioned previously, is the only option for users who need to make changes to files or folders on their Linux drive directly from within Windows. Once it’s installed, you can access your drive from within Windows File Explorer as normal. Ext2Fsd 0.69 is recommended, especially for users with Ext4 64-bit Linux partitions.
To start, download the Ext2Fsd installer file and begin the installation. Accept the terms and installation location, and make sure that under Select Additional Tasks, all the checkboxes are checked.
Once the installer is completed, you’ll be asked to restart your PC. Safely close any essential programs and click Finish to reboot.
Once you’ve rebooted, see if you spot your drive in File Explorer and double-click to open it. If you don’t see it, open the Ext2 Volume Manager, right-click your drive, and click Assign Drive Letter.
As soon as a drive letter is assigned to your drive, you should be able to see it in File Explorer. You’ll be able to create, copy, move, or delete files as you would any other drive, but given the risks, don’t use this for critical data unless you’re certain you have a backup available.
Safely Accessing Your Linux Files On Windows
The safest method for accessing Linux files or folders is to use a read-only option like DiskInternals Linux Reader. With software like this, the chances of corrupting your files are zero.
If you absolutely need to edit files or folders on your Linux drive, Ext2Fsd will allow you to do it, but take care to avoid risks by using the most recent version, and only on a drive with non-critical files.
If you want to avoid this problem in the future, consider having a “pooled” Linux partition drive (formatted as NTFS) to share your files across both systems, or sync your files to Google Drive instead.