<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://halfgeek.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Dd</id>
	<title>Dd - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://halfgeek.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Dd"/>
	<link rel="alternate" type="text/html" href="https://halfgeek.org/wiki/index.php?title=Dd&amp;action=history"/>
	<updated>2026-05-28T12:11:28Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.0</generator>
	<entry>
		<id>https://halfgeek.org/wiki/index.php?title=Dd&amp;diff=2292&amp;oldid=prev</id>
		<title>Psmay: /* Print status messages */</title>
		<link rel="alternate" type="text/html" href="https://halfgeek.org/wiki/index.php?title=Dd&amp;diff=2292&amp;oldid=prev"/>
		<updated>2017-05-03T17:56:53Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Print status messages&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{unix}}{{lowercase|title=dd}}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;dd&amp;#039;&amp;#039;&amp;#039; (doesn&amp;#039;t stand for anything that matters) is a powerful and dangerous unix program that performs raw block copies of data. In particular, it is often used for copying hard disk data raw partition-to-partition, partition-to-file, and/or file-to-partition.&lt;br /&gt;
&lt;br /&gt;
==Synopsis==&lt;br /&gt;
&lt;br /&gt;
Often the invocation is as simple as&lt;br /&gt;
&lt;br /&gt;
 dd if=&amp;#039;&amp;#039;&amp;lt;input file = stdin&amp;gt;&amp;#039;&amp;#039; of=&amp;#039;&amp;#039;&amp;lt;output file = stdout&amp;gt;&amp;#039;&amp;#039; bs=&amp;#039;&amp;#039;&amp;lt;block size = 512&amp;gt;&amp;#039;&amp;#039; count=&amp;#039;&amp;#039;&amp;lt;block count = until end of input&amp;gt;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
That is, from the beginning of &amp;#039;&amp;#039;if&amp;#039;&amp;#039; copy &amp;#039;&amp;#039;count&amp;#039;&amp;#039; blocks of &amp;#039;&amp;#039;bs&amp;#039;&amp;#039; bytes to the file &amp;#039;&amp;#039;of&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
===Block sizes===&lt;br /&gt;
&lt;br /&gt;
bs can use human suffixes. Use e.g. kB, MB, GB for decimal meanings (1000^n), but use e.g. K, M, G or KiB, MiB, GiB for the binary equivalents (1024^n).&lt;br /&gt;
&lt;br /&gt;
bs can be replaced by ibs and obs to set in and out block sizes separately.&lt;br /&gt;
&lt;br /&gt;
===Writing to files in-place===&lt;br /&gt;
&lt;br /&gt;
See conv=notrunc, seek=, skip=.&lt;br /&gt;
&lt;br /&gt;
===Hard disk recovery===&lt;br /&gt;
&lt;br /&gt;
When recovering a failing drive, among the recommendations are:&lt;br /&gt;
&lt;br /&gt;
* Use a small block size, such as 512 bytes&lt;br /&gt;
* Use the conv option noerror, which causes the program to continue even if a read fails&lt;br /&gt;
* Use the conv option sync, which causes short (erroneously read) blocks to be padded out so that any good output still aligns correctly&lt;br /&gt;
&lt;br /&gt;
In other words:&lt;br /&gt;
&lt;br /&gt;
 dd bs=512 if=/dev/&amp;#039;&amp;#039;&amp;lt;some device&amp;gt;&amp;#039;&amp;#039; of=output.img conv=noerror,sync&lt;br /&gt;
&lt;br /&gt;
==Print status messages==&lt;br /&gt;
&lt;br /&gt;
By default, dd keeps quiet about its progress. In most versions, there is a way to send it a signal to request a progress report.&lt;br /&gt;
&lt;br /&gt;
In Linux, this signal is the USR1 signal. The following command will cause all running dd processes to echo status every second:&lt;br /&gt;
&lt;br /&gt;
 while killall -USR1 dd; do sleep 1; done&lt;br /&gt;
&lt;br /&gt;
killall can be replaced with the equivalent kill command and pid to signal only one process.&lt;br /&gt;
&lt;br /&gt;
===dcfldd===&lt;br /&gt;
&lt;br /&gt;
The program &amp;#039;&amp;#039;&amp;#039;dcfldd&amp;#039;&amp;#039;&amp;#039; is a fork of dd that has special security- and display-related options. The USR1 signal is not necessary to produce a readout; by default, a status is printed to stderr every 256 blocks. Set &amp;lt;code&amp;gt;statusinterval=&amp;lt;&amp;#039;&amp;#039;number of blocks&amp;#039;&amp;#039;&amp;gt;&amp;lt;/code&amp;gt; to change the interval.&lt;/div&gt;</summary>
		<author><name>Psmay</name></author>
		
	</entry>
</feed>