This project has moved. For the latest updates, please go here.

How to expand a volume to exactly 2 billion bytes

Topics: Users Discussion
May 24, 2016 at 7:19 AM
Edited May 26, 2016 at 7:16 AM
I currently have containers that are exactly 1.5 billions bytes (1,500,000,000 bytes).
I want to use the volume expander to increase the size to 2 billion bytes (2,000,000,000).

Unfortunately, I can only supply KB, MB, GB and TB. Are they kilobytes, or are they kibibytes?

Any help would be appreciated.

Edit:
My current volume is 1,500,000,000 bytes = 1,464,844 kB
My new volume should be 2,000,000,000 bytes = 1,953,125 kB

If I set the expander to kB and fill in 1953125 I get the following error:
"New volume size too small, must be at least 64kB larger than the current size."

Why? Doesn't the expander work at all?
May 27, 2016 at 11:51 AM
Edited May 27, 2016 at 11:55 AM
The error message looks like overflow to negative number and 2 000 000 000 is quite close to signed integer limit. If that's not a bug of expander, do you have filesystem which can store such a big file? Have you tried to increase only a bit, like to 1 600 000 000?
May 27, 2016 at 8:14 PM
Edited May 27, 2016 at 8:15 PM
Wait, what?!? Are containers limited to 2^31 - 1? That is very strange.

First, 2,000,000,000 is much lower than 2,147,483,647 so that shouldn't be a problem.
Secondly, I use NTFS on Windows 10 x64 with 32GB RAM, so that shouldn't be a problem either.
Third, there is almost 1TB free on the volume.
Fourth, I use the most recent release version of Veracrypt (v1.17).

I just now tried 1,600,000,000 bytes (1562500 kB).
I get the same error.