18-Dec-2013: Convert to sparse file utility (win32)

Just wrote utility intended for converting files into sparse ones on Windows NTFS file system. Sparse files are those in which long zero blocks are not stored on hard disk, but replaced to information about them (metadata) instead. These files are very useful for saving space on storing half-empty ISO files, half-downloaded torrent files, virtual machine disk images.

I need it primarily for VMware WS disk images "compressing". I suppose, many other Oracle specialists use VMware machines with a lot of Oracle versions as well :-)

More about them: https://en.wikipedia.org/wiki/Sparse_file

Compiled executable file: //yurichev.com/utils/cvt2sparse.exe

That is how it looks after converting:

This one-liner is to be run inside of *NIX virtual machine to write zeroes to unused parts of file system:

dd if=/dev/zero of=empty_file; rm empty_file

This open sourced site and this page in particular is hosted on GitHub. Patches, suggestions and comments are welcome.


→ [list of blog posts, my twitter/facebook]

The page last updated on 16-September-2016