* [REGRESSION][NTFS] Linux 7.3.4 mounts 64K-cluster NTFS read-only after $MFTMirr record 24 mismatch
@ 2026-11-20 12:49 d3nchk
2026-11-20 14:26 ` liubaolin
2026-11-20 20:39 ` Sasha Levin
0 siblings, 2 replies; 3+ messages in thread
From: d3nchk @ 2026-11-20 12:49 UTC (permalink / raw)
To: ntfs@lists.linux.dev
Cc: linkinjeon@kernel.org, hyc.lee@gmail.com, zenghongling@kylinos.cn,
regressions@lists.linux.dev, stable@vger.kernel.org
Hello,
Resending in plain text because the previous HTML-formatted message was rejected by the regressions mailing list. Apologies if this creates duplicates for other recipients.
I am reporting a regression in the in-kernel fs/ntfs driver (NOT ntfs3).
Environment:
- Distribution: Debian 13, backports kernel
- Working kernel: 7.2.12
- Broken kernel: 7.3.4+deb13-amd64
- Device: /dev/nvme0n1p1
- Filesystem: NTFS 3.1
- Cluster size: 65536 bytes
- Mount options: defaults (including errors=continue)
- Driver: fs/ntfs/ntfs.ko.xz
Kernel log:
ntfs: (device nvme0n1p1): check_mft_mirror(): $MFT and $MFTMirr record 24 do not match. Run chkdsk.
ntfs: volume version 3.1, dev nvme0n1p1, cluster size 65536
ntfs: (device nvme0n1p1): load_system_files(): Errors were recorded during mount. Mounting read-only. Run chkdsk.
This volume worked read-write with kernel 7.2.12. After upgrading to 7.3.4, it is forcibly mounted read-only, making normal file operations impossible.
Windows chkdsk has been run repeatedly, both through the GUI and command line, including dismounted-volume checks. The issue persists after rebooting into Linux.
I suspect commit 749357bd48c16c4cdc09093450deca609492f012 introduced the new read-only behavior for this case.
There is also a potentially relevant NTFS compatibility issue: modern Windows may not keep all $MFTMirr records synchronized on volumes with large clusters. Here the mismatch is reported at record 24, beyond the first 16 records.
Please investigate:
1. Whether the comparison of MFT mirror record 24 is valid for modern Windows-created NTFS volumes with 64K clusters.
2. Whether this is a false-positive filesystem corruption report.
3. Whether errors=continue can be honored for noncritical MFT mirror mismatches, while retaining mandatory read-only protection for Windows hibernation and genuinely unsafe filesystem states.
4. Whether a fix can be backported to the Linux 7.3 stable series.
This regression prevents normal read-write access to this volume.
Thank you.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [REGRESSION][NTFS] Linux 7.3.4 mounts 64K-cluster NTFS read-only after $MFTMirr record 24 mismatch
2026-11-20 12:49 [REGRESSION][NTFS] Linux 7.3.4 mounts 64K-cluster NTFS read-only after $MFTMirr record 24 mismatch d3nchk
@ 2026-11-20 14:26 ` liubaolin
2026-11-20 20:39 ` Sasha Levin
1 sibling, 0 replies; 3+ messages in thread
From: liubaolin @ 2026-11-20 14:26 UTC (permalink / raw)
To: d3nchk@outlook.com, ntfs@lists.linux.dev
Cc: linkinjeon@kernel.org, hyc.lee@gmail.com, zenghongling@kylinos.cn,
regressions@lists.linux.dev, stable@vger.kernel.org
在 2026/11/20 20:49, d3nchk@outlook.com 写道:
> Hello,
>
> Resending in plain text because the previous HTML-formatted message was rejected by the regressions mailing list. Apologies if this creates duplicates for other recipients.
>
> I am reporting a regression in the in-kernel fs/ntfs driver (NOT ntfs3).
>
> Environment:
> - Distribution: Debian 13, backports kernel
> - Working kernel: 7.2.12
> - Broken kernel: 7.3.4+deb13-amd64
> - Device: /dev/nvme0n1p1
> - Filesystem: NTFS 3.1
> - Cluster size: 65536 bytes
> - Mount options: defaults (including errors=continue)
> - Driver: fs/ntfs/ntfs.ko.xz
>
> Kernel log:
>
> ntfs: (device nvme0n1p1): check_mft_mirror(): $MFT and $MFTMirr record 24 do not match. Run chkdsk.
> ntfs: volume version 3.1, dev nvme0n1p1, cluster size 65536
> ntfs: (device nvme0n1p1): load_system_files(): Errors were recorded during mount. Mounting read-only. Run chkdsk.
>
> This volume worked read-write with kernel 7.2.12. After upgrading to 7.3.4, it is forcibly mounted read-only, making normal file operations impossible.
>
> Windows chkdsk has been run repeatedly, both through the GUI and command line, including dismounted-volume checks. The issue persists after rebooting into Linux.
>
> I suspect commit 749357bd48c16c4cdc09093450deca609492f012 introduced the new read-only behavior for this case.
>
> There is also a potentially relevant NTFS compatibility issue: modern Windows may not keep all $MFTMirr records synchronized on volumes with large clusters. Here the mismatch is reported at record 24, beyond the first 16 records.
>
> Please investigate:
>
> 1. Whether the comparison of MFT mirror record 24 is valid for modern Windows-created NTFS volumes with 64K clusters.
> 2. Whether this is a false-positive filesystem corruption report.
> 3. Whether errors=continue can be honored for noncritical MFT mirror mismatches, while retaining mandatory read-only protection for Windows hibernation and genuinely unsafe filesystem states.
> 4. Whether a fix can be backported to the Linux 7.3 stable series.
>
> This regression prevents normal read-write access to this volume.
>
> Thank you.
Hi,
Thanks for the report and the detailed logs.
I checked 749357bd48c1. It didn't introduce the mirror comparison,
but it did make errors recorded during mount force a read-only mount,
even with errors=continue. That explains the change in behaviour you're
seeing.
There is a known compatibility issue with the comparison itself.
On volumes with large clusters, Windows 10 can leave later records
in $MFTMirr out of date.
ntfs-3g already handles this by comparing only the first 16 records,
or fewer if the mirror is smaller. See commit 85e208176ffd ("Stopped
checking matches of MFTMirr against MFT at record 16").
fs/ntfs still compares the whole mirror. With 64 KiB clusters and
1 KiB MFT records, that means records 0 through 63. A difference
at record 24 could therefore just be a stale mirror copy, rather
than filesystem corruption. Your report looks consistent with
this case.
I'll follow the ntfs-3g approach and limit the record checks and
comparison to the first 16 records within the mirror. We'll still
read the full mirror and check its location, and leave the mirror
writeback range unchanged.
This should allow read-write mounting in this case, provided
there are no other errors. We shouldn't need to relax the general
errors= handling or change the read-only protection for hibernated
volumes and other unsafe states.
I'll include a Fixes tag and Cc stable so the patch can be
considered for the 7.3 stable series after upstream acceptance.
I'll send the patch shortly and CC you. You can then give it a
try and let us know whether it resolves the issue.
Thanks,
Baolin
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [REGRESSION][NTFS] Linux 7.3.4 mounts 64K-cluster NTFS read-only after $MFTMirr record 24 mismatch
2026-11-20 12:49 [REGRESSION][NTFS] Linux 7.3.4 mounts 64K-cluster NTFS read-only after $MFTMirr record 24 mismatch d3nchk
2026-11-20 14:26 ` liubaolin
@ 2026-11-20 20:39 ` Sasha Levin
1 sibling, 0 replies; 3+ messages in thread
From: Sasha Levin @ 2026-11-20 20:39 UTC (permalink / raw)
To: ntfs@lists.linux.dev
Cc: Sasha Levin, linkinjeon@kernel.org, hyc.lee@gmail.com,
zenghongling@kylinos.cn, regressions@lists.linux.dev,
stable@vger.kernel.org, d3nchk@outlook.com
> I suspect commit 749357bd48c16c4cdc09093450deca609492f012 introduced the new read-only behavior for this case.
Yes, this comes from 749357bd48c1 ("ntfs: mount hibernated volumes read-only
regardless of errors="), b0a4eefbb2a1 in 7.3.y. Stable will pick up the ntfs
maintainers' fix once it lands. Until then, mount the volume read-only or use
ntfs3.
--
Thanks,
Sasha
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-11-20 20:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-20 12:49 [REGRESSION][NTFS] Linux 7.3.4 mounts 64K-cluster NTFS read-only after $MFTMirr record 24 mismatch d3nchk
2026-11-20 14:26 ` liubaolin
2026-11-20 20:39 ` Sasha Levin
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.