New answers tagged

3

Some quick answers: first, you didn't create a sparse file. Try these extra commands dd if=/tmp/BIL of=/tmp/sparse seek=1000 ls -ls /tmp/sparse You will see the size is 512003 bytes, but only takes 8 blocks. The null bytes have to occupy a whole block, and be on a block boundary for them to be possibly sparse in the filesystem. Why does the second ...


1

Long story short - there's no way to do all of this without root permissions. For example, mount requires root permissions and there is no way to workaround this. It's for security reasons - if a user has mount privileges, this user can overmount let's say /etc and use whatever content there. It's a serious security risk and therefore by default only the ...


0

A small correction to the otherwise very detailed answer: The first number is the number of free non-zero blocks. (I.e. it does not count non-zero file blocks). As such, it is never larger than the number of free blocks. If you run zerofree (without -n) on a filesystem, then run it again (optionally with -n for dry-run) you will see that the first number ...



Top 50 recent answers are included