<?xml version="1.0" encoding="UTF-8"?> <rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" ><channel><title>Enhanced Linux &#187; Uncategorized</title> <atom:link href="http://enhancedlinux.com/category/uncategorized/feed/" rel="self" type="application/rss+xml" /><link>http://enhancedlinux.com</link> <description>Enhancing Linux since 2006!</description> <lastBuildDate>Wed, 06 Apr 2011 22:44:38 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=</generator> <item><title>Check the Status of &#8216;dd&#8217; Command</title><link>http://enhancedlinux.com/2010/07/11/check-the-status-of-dd-command/</link> <comments>http://enhancedlinux.com/2010/07/11/check-the-status-of-dd-command/#comments</comments> <pubDate>Sun, 11 Jul 2010 17:46:14 +0000</pubDate> <dc:creator>Christer</dc:creator> <category><![CDATA[Uncategorized]]></category> <category><![CDATA[linux]]></category><guid isPermaLink="false">http://enhancedlinux.com/?p=153</guid> <description><![CDATA[The other day I was copying the entire contents of one USB drive to another. To use this I used the dd command, as I needed the images to be identical. Once the copy started I started wondering about its progress, and was reminded that dd does not have any kind of progress bar or [...]]]></description> <content:encoded><![CDATA[<p>The other day I was copying the entire contents of one USB drive to another. To use this I used the dd command, as I needed the images to be identical. Once the copy started I started wondering about its progress, and was reminded that dd does not have any kind of progress bar or other status output. In this article I&#8217;ll outline how to output the status / progress of dd during a large copy.</p><p><strong>A note about speed</strong></p><p>Before I outline how to output the status of the dd command, I wanted to comment briefly on the speed of the dd reads/writes. The dd command allows you to specify the input file, output file, block size and count. I have found that not specifying the block size can have detrimental effects on the speed of your transfer. Currently I find the best performance specifying a 4k block size, the same as the default block size on ext file systems.</p><p>To specify this block size, use:</p><blockquote><p><code>dd if=/source/file of=/dest/file bs=4k</code></p></blockquote><p><strong>Status of dd command</strong></p><p>The quickest and easiest way I&#8217;ve found to check the status of the dd command is to run the following:</p><blockquote><p><code>watch -n 10 killall -USR1 dd</code></p></blockquote><p>There are, of course, other ways to find the result, but this is what I use. This command will report the status on any running dd process every 10 seconds. When the transfer is finished you can kill this reporting via ctrl-c.</p> ]]></content:encoded> <wfw:commentRss>http://enhancedlinux.com/2010/07/11/check-the-status-of-dd-command/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: basic
Database Caching 8/16 queries in 0.026 seconds using disk: basic

Served from: enhancedlinux.com @ 2012-02-04 07:31:31 -->
