Mac OS X view DD command to burn USB drive Progress

Source: Internet
Author: User

The DD command runs on the Linux operating system, and we use the "KILLALL-USR1 DD" command to display the progress of the current DD command burning, but executing this command on OS X may cause the DD process to abort;

Wikipedia's introduction to the DD command says: "to a runningddProcess SendSiginfoThe signal (USR1 on Linux) allows it to print I/O statistics toStandard erroronce, and then continue copying (note that on OS X, the signal can cause the process to terminate). "The focus is on the SIGINFP signal, whichsends a siginfo signal to a running process using" KILLALL-USR1 DD "on Linux, but the command to send Siginfo to the process in OS X is not " KILLALL-USR1 DD " , instead of "Kill-siginfo PID" or "killall-29 dd" (because Siginfo is numbered 29 in OS X, it can be viewed using kill-l siginfo);


Here's how to use the demo:

1. Use PS aux to get the PID that the DD command is currently running;

# PS aux | grep DD | Grep-v "grep" # root 40637 0.0 0.0 2463108 2136 s006 s+ 7:07 pm 0:00.01 sudo dd If=downloads/opensu Se-leap-42.2-dvd-x86_64.iso/opensuse-leap-42.2-dvd-x86_64.iso Of=/dev/disk5 bs=1m


2. Use the KILL command to send the siginfo signal to the DD command PID;

# sudo kill-siginfo 40637


3, you can display the DD command is currently burning USB drive progress;

578+0 Records in577+0 records out605028352 bytes transferred in 201.823793 secs (2997805 bytes/sec)


Or:

sudo killall-29 dd #一条命令搞定!


Note: The output of the information unit is bytes, please convert to MB,GB;

This article is from the "Wangjian it road!" "Blog, be sure to keep this provenance http://asherwang.blog.51cto.com/11255017/1942171

Mac OS X view DD command to burn USB drive Progress

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.