Learn a few different ways to get a progress bar for your dd command – Info Linux

The dd tool has been a critical component on the (and UNIX) command line for ages. You know a command-line tool is important if it has only two letters, and dd is no exception. What I love about it in particular is that it truly embodies the sense of a powerful tool with no safety features, as described in Neal Stephenson’s In the Beginning was the Command Line. The dd command does something simple: it takes input from one file and outputs it to another file, and since in UNIX “everything is a file”, that means dd doesn’t care if the output file is another file on your disk, a partition or even your active hard drive, it happily will overwrite it! Because of this, dd fits in that immortal category of sysadmin tools that I type out and then pause for five to ten seconds, examining the command, before I press Enter.

Unfortunately, dd has fallen out of favor lately, and some distributions even will advise using tools like cp or a graphical tool to image drives. This is largely out of the concern that dd doesn’t wait for the disk to sync before it exits, so even if it thinks it’s done writing, that doesn’t mean all of the data is on the output file, particularly if it’s over slow I/O like in the case of USB flash storage. The other reason people have tended to use other imaging tools is that traditionally dd doesn’t output any progress. You type the command, and then if the image is large, you just wait, wait and then wait some more, wondering if dd will ever complete.

But, it turns out that there are quite a few different ways to get progress output from dd, so I cover a few popular ones here, all based on the following dd command to image an ISO file to a disk: Read more here https://www.linuxjournal.com/content/progress-your-image

Article Prepared by Ollala Corp

You might also like More from author

Leave A Reply

Your email address will not be published.