Note to self: How to use dd
dd
Note to self: How to use dd (disk dump):
dd if=/path/to/input of=/path/to/output bs=1024k status=progress
block size
block size depends on the hardware. 1024k might not be optimal but it’s hopefully not completely wrong.
See also:
- https://superuser.com/questions/234199/good-block-size-for-disk-cloning-with-diskdump-dd
- https://de.unixlinux.online/tx/1004038368.html
- https://www.baeldung.com/linux/dd-optimal-blocksize
input (if) and output (of)
- input (if) or output (of) can be files and devices (/dev).
- Double-check that you don’t accidentially choose the “wrong” device!
status
status=progress shows a progress information, which is good when you use dd in a terminal, but it might be a bad idea for use inside Bash scripts.