Difference between revisions of "Data Duplicator"
Jump to navigation
Jump to search
| (5 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
= dd = | = dd = | ||
Convert and copy a file. Also, write to tape</br> | Convert and copy a file. Also, write to [[Magnetic Tape|magnetic tape]].</br> | ||
== Use == | == Use == | ||
<code>dd if=<PATH> of=<PATH></code>duplicate infile to outfile</br> | <code>dd if=<PATH> of=<PATH></code> duplicate infile to outfile</br> | ||
Ex:</br> | |||
<code>dd if=/dev/urandom of=/dev/st0 bs=65536 count=1000</code> write a random data stream to tape st0 with 65K block size 1000 times</br> | |||
== Useful Flags == | == Useful Flags == | ||
<code>status=progress</code> show progress and speed | <code>status=progress</code> show progress and speed</br> | ||
<code>bs=<BYTES></code> read and write up to BYTES bytes at a time (default: 512)</br> | <code>bs=<BYTES></code> read and write up to BYTES bytes at a time (default: 512)</br> | ||
<code>count=<N></code> copy only N input blocks</br> | <code>count=<N></code> copy only N input blocks</br> | ||
To mount a dd disk image with multiple partitions:</br> | |||
<code>losetup -Pf /path/to/your/image.dd</code> | |||
Latest revision as of 13:16, 17 September 2025
dd
Convert and copy a file. Also, write to magnetic tape.
Use
dd if=<PATH> of=<PATH> duplicate infile to outfile
Ex:
dd if=/dev/urandom of=/dev/st0 bs=65536 count=1000 write a random data stream to tape st0 with 65K block size 1000 times
Useful Flags
status=progress show progress and speed
bs=<BYTES> read and write up to BYTES bytes at a time (default: 512)
count=<N> copy only N input blocks
To mount a dd disk image with multiple partitions:
losetup -Pf /path/to/your/image.dd