Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 1
    Have you tried just making the file larger? It should work…? Commented Aug 31, 2024 at 7:50
  • what do you mean by making the file larger? like concatating another file to it, and then trying the same thing as the tutorial? Commented Sep 1, 2024 at 17:40
  • 1
    Thing is while cryptsetup will format and use files, it does not really help you at all in creating or managing them. So it's all up to you how you do it. There are many different ways to change a file's size; I usually do it with truncate --size but if you get the size wrong the data is gone... the example shown in Windigo's answer should be safer. And then you still have to resize whatever is encrypted inside the image. Commented Sep 1, 2024 at 18:02