Monitoring the progress of dd by Josh Sherman

Related Articles

Whether you are resetting an old disk drive or creating a USB flash drive with your preferred Linux distribution, dd He’s there to take care of business.

One of the disadvantages used dd In the past there has been a lack of transparency about what she actually does and where she has been in the process. This sharpened interest when you consider how slow drives once were.

Fortunately, in 2015 when GNU coreutils 8.24 came out, dd Expanded so that there is a status An argument that you can use to set the level of information to which you want to print stderr.

To view some status information from time to time, you can slap status=progress
To the end of your command:

dd if=/path/to/some.iso of=/dev/drive status=progress

There’s not much in it!

But unfortunately, if you’re like me, you’re probably forgetting to include it on a regular basis. You can CTRL+c Command and restart it, or you can leverage the kill Command To give you information about the command as follows:

Great for one-time status, but what if you want a period update similar to Lid dd claim? Combine that with watch Command to spit out the status every few seconds:

watch -n 5 'kill -USR1 $(pgrep ^dd$)'

Match the number transferred to it -n To set the number of seconds you want the command to run and you go to races without having to restart the process!

good things? Want more?

Weekly emails on technology, development and sometimes sauerkraut.

100% fresh, first-class content, never spam.



Please enter your comment!
Please enter your name here

Popular Articles