macOS: force fresh exFAT layout when formatting volumes

Pass -R to newfs_exfat in both GUI and text-mode volume creation so macOS derives a fresh exFAT layout instead of preserving stale geometry from an existing exFAT boot region. This matches Finder/Disk Utility erase behavior.

Validated on Windows 11: chkdsk no longer reports boot-region corruption on volumes formatted this way.

Fixes #1021.
This commit is contained in:
Mounir IDRASSI
2026-05-28 12:43:09 +02:00
parent 08b433012e
commit cfd54af700
3 changed files with 24 additions and 3 deletions
+3
View File
@@ -1136,6 +1136,9 @@ namespace VeraCrypt
}
#ifdef TC_MACOSX
if (IsMacOSXExFATFormatter (fsFormatter))
AddMacOSXExFATFormatterArgs (args);
if (IsMacOSXAPFSFormatter (fsFormatter) && !useElevatedAPFSFormatter)
AddMacOSXAPFSFormatterUserArgs (args);
#endif