From 544c55debc4d1a99588de099ae2eede3d8f24585 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Fri, 13 Feb 2015 14:40:22 +0100 Subject: Linux: Perform a quick NTFS formatting by adding the "-f" switch to mkfs.ntfs. Without this, the creation of big NTFS volumes takes ages. The code already takes care of the empty sectors by encrypting them with different key to randomize plaintext. --- src/Main/Forms/VolumeCreationWizard.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Main/Forms') diff --git a/src/Main/Forms/VolumeCreationWizard.cpp b/src/Main/Forms/VolumeCreationWizard.cpp index bff459a1..214c041d 100644 --- a/src/Main/Forms/VolumeCreationWizard.cpp +++ b/src/Main/Forms/VolumeCreationWizard.cpp @@ -477,6 +477,10 @@ namespace VeraCrypt if (SelectedFilesystemType == VolumeCreationOptions::FilesystemType::MacOsExt && VolumeSize >= 10 * BYTES_PER_MB) args.push_back ("-J"); + + // Perform a quick NTFS formatting + if (SelectedFilesystemType == VolumeCreationOptions::FilesystemType::NTFS) + args.push_back ("-f"); args.push_back (string (virtualDevice)); -- cgit v1.2.3