ntfs: deleting $Extend breaks subsequent mount
From: theBIT5 x3zk
Date: Mon Nov 23 2026 - 15:01:11 EST
Hi,
Was messing around with the new ntfs driver (fs/ntfs) on 7.4.0-rc3-1-mainline
and noticed you can just rm -rf '$Extend' even without show_sys_files.
After umount, the filesystem fails to mount again.
Steps:
# mount -t ntfs /root/ntfs.img /mnt -o loop
# cd /mnt
# ls '$Extend'
'$ObjId' '$Quota' '$Reparse'
# rm -rf '$Extend'
# cd /
# umount /mnt
# mount -t ntfs /root/ntfs.img /mnt -o loop
mount: /mnt: wrong fs type, bad option, bad superblock on /dev/loop0,
missing codepage or helper program, or other error.
dmesg:
ntfs: volume version 3.1, dev loop0, cluster size 4096
ntfs: (device loop0): load_system_files(): Failed to load $Extend.
ntfs: (device loop0): ntfs_fill_super(): Failed to load system files (-22).
--
theBIT5