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
@@ -1517,10 +1517,6 @@
<entry lang="th" key="LINUX_MOUNTET_HINT">ระบบไฟล์ของอุปกรณ์ที่เลือกถูกติดตั้งอยู่ในปัจจุบัน กรุณาถอดติดตั้ง '{0}' ก่อนดำเนินการต่อ.</entry>
<entry lang="th" key="LINUX_HIDDEN_PASS_NO_DIFF">ปริมาณที่ซ่อนไม่สามารถมีรหัสผ่าน, PIM และคีย์ไฟล์เดียวกันกับปริมาณภายนอก</entry>
<entry lang="th" key="LINUX_NOT_FAT_HINT">โปรดทราบว่าปริมาณจะไม่ได้ถูกฟอร์แมทด้วยระบบไฟล์ FAT และ, ดังนั้น, คุณอาจจะต้องติดตั้งไดรเวอร์ระบบไฟล์เพิ่มเติมบนแพลตฟอร์มอื่นเพื่อให้สามารถติดตั้งปริมาณได้.</entry>
<entry lang="th" key="LINUX_ERROR_SIZE_HIDDEN_VOL">ข้อผิดพลาด: ปริมาณที่ซ่อนที่กำลังจะถูกสร้างมีขนาดใหญ่กว่า {0} TB ({1} GB).\n\nวิธีแก้ปัญหาที่เป็นไปได้:\n- สร้างตัวเก็บ/พาร์ติชันที่มีขนาดเล็กกว่า {0} TB.\n</entry>
<entry lang="th" key="LINUX_MAX_SIZE_HINT">- ใช้ไดรฟ์ที่มีเซ็กเตอร์ขนาด 4096-ไบต์เพื่อให้สามารถสร้างพาร์ติชัน/อุปกรณ์ที่มีปริมาณที่ซ่อนได้ถึง 16 TB</entry>
<entry lang="th" key="LINUX_DOT_LF">.\n</entry>
<entry lang="th" key="LINUX_NOT_SUPPORTED"> (ไม่รองรับโดยส่วนประกอบที่มีอยู่ในแพลตฟอร์มนี้).\n</entry>
<entry lang="th" key="LINUX_KERNEL_OLD">ระบบของคุณใช้เวอร์ชันเก่าของเคอร์เนล Linux.\n\nเนื่องจากบั๊กในเคอร์เนล Linux, ระบบของคุณอาจหยุดตอบสนองเมื่อเขียนข้อมูลไปยังปริมาณ VeraCrypt. ปัญหานี้สามารถแก้ได้โดยการอัปเกรดเคอร์เนลเป็นเวอร์ชัน 2.6.24 หรือใหม่กว่า.</entry>
<entry lang="th" key="LINUX_VOL_UNMOUNTED">ปริมาณ {0} ถูกถอดติดตั้งแล้ว.</entry>
<entry lang="th" key="LINUX_VOL_MOUNTED">ปริมาณ {0} ถูกติดตั้งแล้ว.</entry>