Skip to content

Blog

Reading ReFS on Linux: an open source driver built with AI

By Rudy Koens

Illustration of an open hard drive, connected by a bridge of glowing nodes to a terminal window and a penguin, with small blocks of data hopping across to the other side

Until recently, reading Microsoft ReFS on Linux was only possible with paid, closed-source software. Now you can recover, move or investigate data on a ReFS disk with an open source alternative. An engineer at Infodatek Group built it in his own free time, together with AI. After the project was published, a few tech sites wrote about the driver, Phoronix last week, followed by Hardware Busters, FOSSWire and daily.dev.

I think it is a great story, because it shows what happens when craftsmanship and AI come together. In this blog you will read what the project can do, how it was built and what it means for you.

Why was ReFS so hard to read on Linux?

ReFS (Resilient File System) is Microsoft's file system for Windows Server and Storage Spaces, and since Windows 11 the Dev Drive runs on it as well. Many organisations use it for file servers, virtualisation and backup storage.

Microsoft has never published how ReFS stores data on disk. Anyone who wanted to read a ReFS disk outside Windows had to rely on paid, closed-source software or on limited community projects. In our experience, that makes recovery and migration from Linux awkward.

What can you do with linux-refs?

Linux-ReFS can read all known versions of ReFS, ranging from versions 1.1 and 1.2 from Windows Server 2012 and versions 3.1 up to and including 3.14 from Server 2016 up to and including Server 2025 to the Dev Drives of Windows 11. The project only reads and never changes anything on the source, so your data stays untouched.

  • Standalone tools. You browse a disk or image and extract files, without mounting the volume and without administrator rights.
  • FUSE driver. This is a driver that runs as a program, and you mount a ReFS volume as a regular user.
  • Kernel driver. The driver runs in the core of Linux, and you mount the volume as a full file system.
  • Recovery and analysis. You recover deleted files and read the logs in which ReFS records changes (the redo log and the USN change journal).
  • Images. You open disk copies (images) in raw, VHD, VHDX and qcow2 format directly.

The sister project linux-storage-spaces combines Storage Spaces pools (simple, mirror and parity), so you can read ReFS on Storage Spaces too. BitLocker, tiered spaces and Storage Spaces Direct are outside the current version, and write support is on the roadmap. Both projects are open source under the GPLv2 licence.

How did AI help to build it?

Our colleague wrote the code together with Claude, the AI model from Anthropic. The AI did the raw programming work, but the real work lies in the approach around it.

  • Original code through a clean room. First, only facts about the storage structure were recorded. The code was then written from those notes, so the project contains only original code, with no code or software from Microsoft.
  • Thorough testing. Every file on the test volumes is compared byte for byte with what Windows itself has stored. The kernel driver has been tested on Linux 6.18, 7.0 and 7.3, and the components that read disk structures (parsers) have been tested with fuzzing, a method that uses random and corrupted input.

My lesson from this: AI speeds up the writing of code enormously. The quality comes from someone who knows the craft and checks every result.

What does it mean for you?

  • Securing data. Does a Windows Server no longer start, or are you phasing out a file server? Then you can read the data on ReFS from Linux while the source stays intact.
  • Migrating. You move data from ReFS and Storage Spaces to a new platform more easily, including from VHDX or qcow2 images.
  • Investigating incidents. After a ransomware attack, you analyse disks and images safely, including the change journal and deleted files. That supports the investigation and recovery under the Cyberbeveiligingswet (the Dutch Cybersecurity Act, NIS2).
  • An extra route to your backups. Many backup environments run on ReFS, and with access from Linux you have an extra route when Windows is temporarily unavailable.

What can you do with ReFS on Linux?

I am proud of our colleague. This project shows how quickly our field is changing: what used to take a team of programmers and possibly licences, a dedicated engineer now builds in a fraction of the time it used to need, as a play-and-learn project in his own free time.

Do you have data on ReFS or Storage Spaces that you want to secure, move or investigate? We are happy to think along with you. Want to know more about safe recovery? Take a look at Cybersecurity or our private cloud with backup and recovery.

Want to talk this through?

Half an hour with one of our specialists about what this means for your organisation. Your environment, your questions.

A smiling IT specialist at her computer, with headphones around her neck.