Sparse files

On Sparse Files, checking their real size versus their apparent size.
Introduction
Copy or share this direct link!
Click = Copy
Copied to clipboard!
https://www.kicksecure.com/wiki/Sparse_files?direction=prev&oldid=84656#Introduction
Click below ↴ = Copy to Clipboard
Click = Copy
Copied to clipboard!
[[Sparse_files#Introduction|Introduction]]
Copy as Wikitext
Click = Copy
Copied to clipboard!
[Introduction](https://www.kicksecure.com/wiki/Sparse_files?direction=prev&oldid=84656#Introduction)
for Discourse, reddit, GitHub
Click = Copy
Copied to clipboard!
[Introduction](https://www.kicksecure.com/wiki/Sparse_files?direction=prev&oldid=84656#Introduction)
Copy as Markdown
Click = Copy
Copied to clipboard!
[url=https://www.kicksecure.com/wiki/Sparse_files?direction=prev&oldid=84656#Introduction]Introduction[/url]
Copy as phpBB
Click below ↴ = Open social URL with share data
We don't use embedded scripts
This share button is completely self-hosted by this webserver. No scripts from any of the social networks are embedded on this webserver. See also
Social Share Button.
Kicksecure KVM images are sparse files. In result, on common Linux operating systems with common file systems such as ext4
these appear to be taking 100 GB of disk space but in reality only use ~ 1 GB disk space time of writing. Different utilities show the apparent size versus the actual size.
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
Copy or share this direct link!
Click = Copy
Copied to clipboard!
https://www.kicksecure.com/wiki/Sparse_files?direction=prev&oldid=84656#Check_Real_Size
Click below ↴ = Copy to Clipboard
Click = Copy
Copied to clipboard!
[[Sparse_files#Check_Real_Size|Check Real Size]]
Copy as Wikitext
Click = Copy
Copied to clipboard!
[Check Real Size](https://www.kicksecure.com/wiki/Sparse_files?direction=prev&oldid=84656#Check_Real_Size)
for Discourse, reddit, GitHub
Click = Copy
Copied to clipboard!
[Check Real Size](https://www.kicksecure.com/wiki/Sparse_files?direction=prev&oldid=84656#Check_Real_Size)
Copy as Markdown
Click = Copy
Copied to clipboard!
[url=https://www.kicksecure.com/wiki/Sparse_files?direction=prev&oldid=84656#Check_Real_Size]Check Real Size[/url]
Copy as phpBB
Click below ↴ = Open social URL with share data
We don't use embedded scripts
This share button is completely self-hosted by this webserver. No scripts from any of the social networks are embedded on this webserver. See also
Social Share Button.
You must change directory into the correct folder first. For your home folder. Depending on which one you want to check.
Click = Copy Copied to clipboard! cd ~
Or.
Click = Copy Copied to clipboard! cd /var/lib/libvirt/images/
Run.
Click = Copy Copied to clipboard! du -h Kicksecure-*.qcow2
Should show something like this.
2.5G Kicksecure-*.qcow2
Check Apparent Size
Copy or share this direct link!
Click = Copy
Copied to clipboard!
https://www.kicksecure.com/wiki/Sparse_files?direction=prev&oldid=84656#Check_Apparent_Size
Click below ↴ = Copy to Clipboard
Click = Copy
Copied to clipboard!
[[Sparse_files#Check_Apparent_Size|Check Apparent Size]]
Copy as Wikitext
Click = Copy
Copied to clipboard!
[Check Apparent Size](https://www.kicksecure.com/wiki/Sparse_files?direction=prev&oldid=84656#Check_Apparent_Size)
for Discourse, reddit, GitHub
Click = Copy
Copied to clipboard!
[Check Apparent Size](https://www.kicksecure.com/wiki/Sparse_files?direction=prev&oldid=84656#Check_Apparent_Size)
Copy as Markdown
Click = Copy
Copied to clipboard!
[url=https://www.kicksecure.com/wiki/Sparse_files?direction=prev&oldid=84656#Check_Apparent_Size]Check Apparent Size[/url]
Copy as phpBB
Click below ↴ = Open social URL with share data
We don't use embedded scripts
This share button is completely self-hosted by this webserver. No scripts from any of the social networks are embedded on this webserver. See also
Social Share Button.
Run.
Click = Copy Copied to clipboard! du -h --apparent-size Kicksecure-*.qcow2
Should show something like this.
101G Kicksecure-*.qcow2
Also See
Copy or share this direct link!
Click = Copy
Copied to clipboard!
https://www.kicksecure.com/wiki/Sparse_files?direction=prev&oldid=84656#Also_See
Click below ↴ = Copy to Clipboard
Click = Copy
Copied to clipboard!
[[Sparse_files#Also_See|Also See]]
Copy as Wikitext
Click = Copy
Copied to clipboard!
[Also See](https://www.kicksecure.com/wiki/Sparse_files?direction=prev&oldid=84656#Also_See)
for Discourse, reddit, GitHub
Click = Copy
Copied to clipboard!
[Also See](https://www.kicksecure.com/wiki/Sparse_files?direction=prev&oldid=84656#Also_See)
Copy as Markdown
Click = Copy
Copied to clipboard!
[url=https://www.kicksecure.com/wiki/Sparse_files?direction=prev&oldid=84656#Also_See]Also See[/url]
Copy as phpBB
Click below ↴ = Open social URL with share data
We don't use embedded scripts
This share button is completely self-hosted by this webserver. No scripts from any of the social networks are embedded on this webserver. See also
Social Share Button.
Maybe interesting:
- virt-sparsify
(available in Debian in package libguestfs-tools
)
Footnotes
Copy or share this direct link!
Click = Copy
Copied to clipboard!
https://www.kicksecure.com/wiki/Sparse_files?direction=prev&oldid=84656#Footnotes
Click below ↴ = Copy to Clipboard
Click = Copy
Copied to clipboard!
[[Sparse_files#Footnotes|Footnotes]]
Copy as Wikitext
Click = Copy
Copied to clipboard!
[Footnotes](https://www.kicksecure.com/wiki/Sparse_files?direction=prev&oldid=84656#Footnotes)
for Discourse, reddit, GitHub
Click = Copy
Copied to clipboard!
[Footnotes](https://www.kicksecure.com/wiki/Sparse_files?direction=prev&oldid=84656#Footnotes)
Copy as Markdown
Click = Copy
Copied to clipboard!
[url=https://www.kicksecure.com/wiki/Sparse_files?direction=prev&oldid=84656#Footnotes]Footnotes[/url]
Copy as phpBB
Click below ↴ = Open social URL with share data
We don't use embedded scripts
This share button is completely self-hosted by this webserver. No scripts from any of the social networks are embedded on this webserver. See also
Social Share Button.


Copy as Wikitext

for Discourse, reddit, GitHub

Copy as Markdown

Copy as phpBB Click below ↴ = Open social URL with share data











We believe security software like Kicksecure needs to remain Open Source and independent. Would you help sustain and grow the project? Learn more about our 12 year success story and maybe DONATE!