Sparse files

From Kicksecure
Jump to navigation Jump to search

Backgrounds-164099640.jpg

Introduction[edit]

Wikipedia notes: [1]

In computer science, a sparse file is a type of computer file that attempts to use file system space more efficiently when the file itself is partially empty. This is achieved by writing brief information (metadata) representing the empty blocks to disk instead of the actual "empty" space which makes up the block, using less disk space. The full block size is written to disk as the actual size only when the block contains "real" (non-empty) data.

When reading sparse files, the file system transparently converts metadata representing empty blocks into "real" blocks filled with null bytes at runtime. The application is unaware of this conversion.

Check Real Size[edit]

You must change directory into the correct folder first. For your home folder. Depending on which one you want to check.

cd ~

Or.

cd /var/lib/libvirt/images/

Run.

du -h Kicksecure-*.qcow2

Should show something like this.

2.5G Kicksecure-*.qcow2

Check Apparent Size[edit]

Run.

du -h --apparent-size Kicksecure-*.qcow2

Should show something like this.

101G Kicksecure-*.qcow2

Also See[edit]

Maybe interesting:

Footnotes[edit]



Unfinished: This wiki is a work in progress. Please do not report broken links until this notice is removed, use Search Engines First and contribute improving this wiki.