| ← Previous | ↑ Home | → Next |
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.
... | 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.
See the [dk-blks manual] for the full documentation of the program.
| ← Previous | ↑ Home | → Next |