#sparse #image #file #block-device #devices #section #zero

app sparse-flash

A utility for writing sparse files to a block device. It will zero out empty sections of the block device.

1 unstable release

0.1.0 Jul 26, 2022

#35 in #block-device

MIT license

9KB
163 lines

sparse-flash

Usage

sudo $(which sparse-flash) --progress --input=/path/to/sparse/file.img /dev/sdX

TAR Files

This tool only supports POSIX format TAR files. Using a GNU TAR file will result in panics. To generate the correct kind of tar file, and write to stdout, you can use the options for TAR in the below example:

tar --format=posix -cS -f- /path/to/sparse/file.img | sudo $(which sparse-flash) --progress --stdin-tar /dev/sdX

Dependencies

~8–18MB
~241K SLoC