linux_wiki:dd

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
linux_wiki:dd [2014/11/24 22:38]
billdozor
linux_wiki:dd [2019/05/25 23:50] (current)
Line 1: Line 1:
-====== SSH Pub/Priv Keys ======+====== dd ======
  
-Description: Using dd to create a USB bootable image.+**General Information**
  
-The command+Using dd to create a USB bootable image. 
 + 
 +**Checklist** 
 +  * Distro(s): Any 
 + 
 +---- 
 + 
 +===== The command =====
 <code bash> <code bash>
 dd if=~/image.iso of=/dev/sdx oflag=direct  bs=2MB dd if=~/image.iso of=/dev/sdx oflag=direct  bs=2MB
 </code> </code>
  
-Explanation+==== Explanation ====
  
   * if = in file, the location of source image   * if = in file, the location of source image
Line 15: Line 22:
   * bs = write in the specified block size   * bs = write in the specified block size
  
-__Get DD status__+---- 
 + 
 +===== Get DD status =====
  
 To get a progress report while dd is running, you need to open another virtual terminal, and then send a special USR1 signal to the dd process. To get a progress report while dd is running, you need to open another virtual terminal, and then send a special USR1 signal to the dd process.
Line 42: Line 51:
 watch -n 10 kill -USR1 8789 watch -n 10 kill -USR1 8789
 </code> </code>
 +
 +----
 +
 +===== Alternative DD status =====
 +
 +Another method of getting dd status is using pv.
 +PV "monitors the progress of data through a pipe".
 +
 +The dd command then becomes:
 +<code bash>
 +dd if=~/image.iso | pv -petr | of=/dev/sdx oflag=direct  bs=2MB
 +</code>
 +
 +pv options
 +
 +  * -p : show progress bar
 +  * -e : estimated time remaining
 +  * -t : timer on, show total time running
 +  * -r : rate of data transfer
  • linux_wiki/dd.1416886700.txt.gz
  • Last modified: 2019/05/25 23:50
  • (external edit)