Global Edition
REF: 418
Technology

Windows appears to lack native support for reading Linux file systems but there is an alternative.

Dual-booting Windows and Linux often presents this problem: when you boot into Windows to tackle a task, File Explorer fails to recognize your connected Linux drive, despite its presence in Disk Management. The drive's health is confirmed,

Technology — lead image
Lead image — News Trend Today wire

Dual-booting Windows and Linux often presents this problem: when you boot into Windows to tackle a task, File Explorer fails to recognize your connected Linux drive, despite its presence in Disk Management. The drive's health is confirmed, yet its contents remain inaccessible. This anomaly occurs even though the drive is properly plugged in.

Typically, a Windows partition on Linux appears without issue, allowing effortless file transfers between the two operating systems. This one-way accessibility creates an impression that Windows is intentionally isolating users from their own data. Fortunately, there's a workaround to bridge this gap and enable access to Linux files within Windows.

RelatedDitching Windows? Replace top picks with these five Linux counterparts.

02Windows struggles with Linux partition visibility.

Windows lacks native Linux file system compatibility.

Unsupported file systems are the root cause of this issue. Windows natively recognizes a limited set of file systems, including NTFS, exFAT, FAT32 and ReFS. Linux distributions, on the other hand, employ distinct file systems like ext4, Btrfs, XFS or ZFS.

Windows struggles to support native access to Linux file systems due to missing drivers. Consequently, a Linux-formatted partition might be visible in Disk Management, yet its files are off-limits through File Explorer.

Read nextWindows struggles with legacy system integration.

Modern Linux distributions often come equipped with native NTFS support, enabling seamless integration with Windows partitions. This allows for effortless browsing, copying, and editing of Windows files directly from the Linux environment without requiring additional configuration or setup procedures.

Traditionally, users have relied on external solutions to bridge the gap between Windows and Linux file systems. This often involved utilizing free applications such as DiskInternals Linux Reader or Ext2Read, while others opted for paid alternatives like Linux File Systems for Windows at a price of approximately $20.

Fortunately, users can now access Linux files directly within Windows without relying on external tools or workarounds. This capability is natively available in Windows 11, addressing a longstanding limitation. Its functionality may seem unconventional, yet it delivers impressive results.

Windows lacks native Linux file system compatibility. image 1
Windows lacks native Linux file system compatibility. image 1

Traditionally, users have relied on external solutions tobridge the gap betweenWindows and Linux file systems. This often involved utilizing free applications such as DiskInternals Linux Reader or Ext2Read, while others opted for paid alternatives like Linux File Systems for Windows at a price of approximately $20.

11Accessing Linux files with WSL2 ease.

Native Linux file system support found within Windows.

Microsoft has introduced WSL2, a virtualization-based system that enables seamless integration of a native Linux file system within the Windows operating system. This innovative technology allows users to access a full-fledged Linux kernel directly from their Windows environment.

Windows users can now install various Linux distributions such as Ubuntu, Debian, and Arch directly within their system. This is made possible by the native support for Linux file systems in WSL2, which allows seamless interaction with file systems like ext4.

To access your Linux files from Windows, simply connect the physical drive with your Linux partition to WSL2 and mount it within the Linux environment. The integrated file system then allows seamless access to those files from Windows.

With the integration of WSL, accessing Linux files from within Windows becomes seamless. Files on your Linux partition are now visible in File Explorer, allowing for effortless drag-and-drop operations between platforms without the need for additional software or terminal commands. This convenience eliminates the hassle associated with managing cross-platform file transfers.

Native Linux file system support found within Windows. image 1
Native Linux file system support found within Windows. image 1
Native Linux file system support found within Windows. image 2
Native Linux file system support found within Windows. image 2

Microsoft has introducedWSL2, a virtualization-based system thatenables seamless integration of a native Linux file system within the Windows operating system. This innovative technology allows users to access a full-fledged Linux kernel directly from their Windows environment.

20Mounting a Linux Partition on Your Windows Computer

Time required is just ten minutes.

To access Linux files on Windows, follow this straightforward process for integrating your Linux partition into Windows.

Locate the storage device.

Open the Power User menu by pressing Win+X, then choose Terminal (Admin) from the options. Next, execute this command

The system displays a comprehensive list of physical disks, including their model names, sizes, and unique identifiers resembling \\.\PHYSICALDRIVE0. Identify your Linux drive by its distinctive model name and size, then record the corresponding DeviceID for future reference.

Locate the storage device. image 1
Locate the storage device. image 1
Locate the storage device. image 2
Locate the storage device. image 2

Open the Power User menuby pressing Win+X,then choose Terminal (Admin) from the options. Next, execute this command

Attach your drive to WSL next.

In the admin PowerShell window, execute this command.

Swap "PHYSICALDRIVE0" for the accurate disk identifier obtained in the preceding procedure. The command connects the physical drive to WSL2, bypassing automatic partition mounting.

Attach your drive to WSL next. image 1
Attach your drive to WSL next. image 1

Inspect the contents of that external drive.

Launch a standard Windows Terminal session, navigate to WSL by typing "wsl", then execute commands.

Visible block devices in WSL are listed, encompassing the newly attached disk along with its respective filesystem types and labels for each partition. The entries of interest include sda, sdb, and their corresponding partitions (sda1, sda2, etc.). Locate the partition holding the Linux files you aim to access. From this point, you can either mount all detected partitions or just the one containing the desired Linux files.

Inspect the contents of that external drive. image 1
Inspect the contents of that external drive. image 1

Mount your preferred partition now.

Mounting a specific partition in Linux hinges on its underlying filesystem type. For ext4 file systems found in various distributions like Ubuntu, Debian, and Mint, execute these consecutive commands.

A mount directory is created by the initial command, which then serves as the destination for the partition's mounting process.

For distributions like Garuda, Fedora, and openSUSE that rely on Btrfs by default, mounting a partition is almost identical, but with one key difference: managing subvolumes requires extra consideration.

Typically, the root subvolume is designated as @ and the home subvolume as @home, though this can vary by distribution configuration.

Mount your preferred partition now. image 1
Mount your preferred partition now. image 1
Mount your preferred partition now. image 2
Mount your preferred partition now. image 2
Mount your preferred partition now. image 3
Mount your preferred partition now. image 3
Mount your preferred partition now. image 4
Mount your preferred partition now. image 4

Accessing Linux files from within File Explorer is possible.

The moment of truth arrives. Navigate to File Explorer, then enter the specified path in the address field.

WSL2 Linux filesystems become accessible through a specialized Windows network-like environment, allowing exposure of these files to Windows users. The list of installed Linux distributions is displayed, including any that have been set up using WSL. In my case, Ubuntu is visible.

To access Linux files from within File Explorer, navigate to the folder housing your WSL distro that was used for mounting your Linux partition. Within this folder, you'll discover the entire filesystem of that specific distro. Next, pinpoint the mnt directory and open it, where you'll find the mounted Linux partition. From there, you can freely browse files, open them, transfer files to your Windows drive, or drag files in the opposite direction.

Accessing Linux files from within File Explorer is possible. image 1
Accessing Linux files from within File Explorer is possible. image 1
Accessing Linux files from within File Explorer is possible. image 2
Accessing Linux files from within File Explorer is possible. image 2
Accessing Linux files from within File Explorer is possible. image 3
Accessing Linux files from within File Explorer is possible. image 3
Accessing Linux files from within File Explorer is possible. image 4
Accessing Linux files from within File Explorer is possible. image 4
Accessing Linux files from within File Explorer is possible. image 5
Accessing Linux files from within File Explorer is possible. image 5

55Mounts can be automated to avoid repetition.

Schedule a single task to avoid repetition.

To ensure the Linux partition mounts each time you log in to Windows, consider setting up a scheduled task to execute the wsl --mount commands automatically. Open the Terminal as an administrator and enter the required command.

When reconfiguring your system, recall the specific drive number, file system type, partition path, and mounting location previously utilized. Failing to verify these values can result in incorrect partition mounting or errors triggered by a hastily copied command.

After completing the task, execute these two commands consecutively.

A scheduled task has been set up to execute the mount script upon login, ensuring seamless access to the Linux partition from within Windows at any given time.

To cancel a recurring task, execute this specific command instead.

Schedule a single task to avoid repetition. image 1
Schedule a single task to avoid repetition. image 1

Seamless dual-booting becomes increasingly effortless now.

Now you can effortlessly engage with your Linux partition directly from within your Windows environment. The Linux drive is neatly integrated into File Explorer, mirroring standard drive functionality, allowing for seamless file transfers across both systems.

More Filings

Technology
Technology

Ditching Windows? Replace top picks with these five Linux counterparts.

Technology
Technology

Windows struggles with legacy system integration.

Technology
Technology

Three innovative Linux utilities for common CLI issues.