1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2026-06-10 06:46:59 -05:00

Linux/macOS: fix hidden volume FAT size limit

The Unix volume creation wizard applied the FAT32 sector-count limit as a blanket check for device-hosted hidden-volume outer volumes. On 512e disks Linux reports 512-byte logical sectors, so this incorrectly rejected larger device-hosted outer volumes even when the selected outer filesystem was not FAT.

Compute the actual VeraCrypt filesystem/data area size through a shared helper and apply the FAT32 size limit only when FAT is selected. This preserves correct FAT validation while allowing non-FAT outer volumes to proceed to the existing hidden-volume size estimation flow.

Update text-mode creation so FAT is not offered when the selected size cannot support it, and default to the platform native filesystem in that case. Clarify the user-facing FAT limit wording to refer to logical sector size.

Fixes #262
This commit is contained in:
Mounir IDRASSI
2026-05-29 16:42:29 +09:00
parent 610feb4c28
commit 170dfa83ee
46 changed files with 42 additions and 194 deletions
-4
View File
@@ -1520,10 +1520,6 @@
<entry lang="de" key="LINUX_MOUNTET_HINT">Das Dateisystem des gewählten Gerätes ist eingehängt. Bitte hängen Sie '{0}' aus, um fortzufahren.</entry>
<entry lang="de" key="LINUX_HIDDEN_PASS_NO_DIFF">Das versteckte Volume darf nicht zum äußeren Volume identische Schlüsseldateien, Passwörter und PIM haben.</entry>
<entry lang="de" key="LINUX_NOT_FAT_HINT">Bitte beachten Sie, dass das Volume nicht mit dem Dateisystem FAT formatiert wird. Deshalb kann die Installation eines Dateisystemtreibers auf anderen Plattformen als '{0}' notwendig sein, um das Volume einzuhängen.</entry>
<entry lang="de" key="LINUX_ERROR_SIZE_HIDDEN_VOL">FEHLER: Das zu erstellende versteckte Volume ist größer als {0} TB ({1} GB).\n\nMögliche Lösungen:\n- Erstellen Sie ein Volume/eine Partition kleiner als {0} TB.\n</entry>
<entry lang="de" key="LINUX_MAX_SIZE_HINT">- Verwenden Sie ein Laufwerk mit 4096-Byte-Sektoren, um versteckte Partitionen/Geräte mit bis zu 16 TB erstellen zu können</entry>
<entry lang="de" key="LINUX_DOT_LF">.\n</entry>
<entry lang="de" key="LINUX_NOT_SUPPORTED">(wird von den vorhandenen Komponenten dieser Plattform nicht unterstützt).</entry>
<entry lang="de" key="LINUX_KERNEL_OLD">Ihr System verwendet einen alten Linux-Kernel.\n\nWegen eines Fehlers im Linux-Kernel kann es passieren, dass Ihr System beim Schreiben auf ein VeraCrypt-Volume nicht mehr reagiert. Diese Problem kann durch einen Kernel in Version 2.6.24 oder neuer gelöst werden.</entry>
<entry lang="de" key="LINUX_VOL_UNMOUNTED">Volume {0} ausgehängt.</entry>
<entry lang="de" key="LINUX_VOL_MOUNTED">Volume {0} wurde eingehängt.</entry>