dd

dd – convert and copy files.

Syntax:
# dd if=image of=/dev/sda bs=4M
or
# dd if=/dev/sda of=/mnt/image.raw

Example:

# dd if=raw.img of=/dev/zvol/pool/$uuid/cfg/1 oflag=direct bs=4M

Options:

bs=BYTES
read and write up to BYTES bytes at a time (default: 512)

count=N
copy only N input blocks

oflag=FLAGS
write as per the comma separated symbol list

Published by

Ferdy Mañago

Great Software Ideas, LLC