[go: up one dir, main page]

Menu

dk-blks

Dirk Krause
← Previous ↑ Home → Next

dk-blks — Generate data stream with fixed buffer sizes

Description

The program reads a data stream from standard input and writes it to standard output using a specified block size.

It is inteded to prepare a data stream for the dd program, source data may come i.e. from network transmission (i.e. using netcat or dk-send/dk-recv) or a decryption or decompression program.


Example

... | dk-blks -b 1M | dd of=/dev/sda1 bs=1M
Program Option Purpose
Any command sequence resulting in a data stream of a disk partition image, may be netcat or dk-recv optionally combined with decryption and decompression commands.
dk-blks Collect data and issue sequence of fixed size blocks.
-b 1M Block size is 1 Mibibyte (1048576 bytes).
dd Apply data stream to disk or partition.
of=/dev/sda1 Partition to write is /dev/sda1.
bs=1M Block size is 1 Mibibyte (must match the blocksize used for dk-blks).

Note: You must use upper case characters in the bs= option of the dd command!
Lower case characters would result in 1000 Bytes, 1000000 bytes… and thus in a block size mismatch.


Manual

See the [dk-blks manual] for the full documentation of the program.


← Previous ↑ Home → Next

Related

Wiki: Home
Wiki: dk-blks manual
Wiki: dk-recv manual