Skip to main content

Questions tagged [fallocate-command]

Use this tag for the fallocate command, NOT fallocate system call.

Filter by
Sorted by
Tagged with
6 votes
1 answer
726 views

In Linux in a Folder there are many files, all created with fallocate with random size. How to find files whose size is not divisible by 4096 and correct the filesize (rounded up) to a multiple of ...
Banana's user avatar
  • 241
2 votes
2 answers
3k views

When is executed the sudo fallocate -l 2G /swapfile command, then 2 GB is created, but with that kind of content or data? Can be it customized? If yes How?. I did do some research but there are no ...
Manuel Jordan's user avatar
13 votes
1 answer
4k views

If we create a swapfile with fallocate we are told that the file contains holes and therefore the operation is halted. What are these holes? Is it unallocated disk space, which makes the whole file ...
Nelssen's user avatar
  • 305
2 votes
1 answer
1k views

I want to have a LUKS volume as a loopback device pointing at a sparse file. Lets say I put a 20gb file on it, then later I delete it. How can I zero that area on the device itself so I can fallocate -...
Daffy's user avatar
  • 465
13 votes
2 answers
4k views

I totally understand that --dig-holes creates a sparse file in-place. That is, if the file has holes --dig-holes options removes those holes: Let's take it in a very simplified way, let's say we ...
direprobs's user avatar
  • 1,064