Menu

Resizing an Encrypted File Container?

fractals
2014-07-09
2020-10-22
<< < 1 2 (Page 2 of 2)
  • simgojohn

    simgojohn - 2016-08-08
     

    Last edit: simgojohn 2018-02-23
  • simgojohn

    simgojohn - 2016-10-19
     

    Last edit: simgojohn 2018-02-23
  • Klaus

    Klaus - 2018-05-16

    Regarding Linux: There was a suggestion for this on superuser. Short summary:

    • Add data of any kind to the end of the container file, e.g. with dd if=/dev/urandom bs=1G count=4 >> CONTAINER.vc [1].
    • Use resize2fs on veracrypt entry in /dev/mapper to resize the filesystem inside the resized container.

    Beware: As far as I can tell this method will make Veracrypt unable to find the backup header, and I don't know if Veracrypt supports recreating it.


    [1] On superuser, using /dev/zero was suggested, which should mostly be fine; Using random data should be safer however.

     
  • azrathud

    azrathud - 2020-10-10

    Please note that the above advice is for a veracrypt file container not an encrypted partition. I broke a veracrypt partition trying to cat bytes on to the end of the mapper virtual device and just decided to wipe the veracrypt partition and create a new one that fits the size of the device.

     
  • buhtz

    buhtz - 2020-10-22

    What is the current state of this dicsussion or any solution?

    I could not find this topic in the FAQ.

    Can I use the current stable release for resizing?
    What is about the Expander-Tool? Could not find an official release on the VeraCrypt website.

     
<< < 1 2 (Page 2 of 2)

Log in to post a comment.