I am trying to write Raspbian to an SD card and see the progress of the write procedure, is there another command that will do this?
Asked
Active
Viewed 5,967 times
1 Answers
1
To see the progress of dd, You can use eg. this command to send usr1 signal. When dd receive the signal it will print it's current status.
Open an extra terminal window and copy paste this:
sudo kill -usr1 $(ps aux | grep " dd " | grep -v sudo | grep -v grep | awk 'begin{}{print $2}end')
If you want to do it manually, use ps aux and find the pid of dd.If you run dd with sudo, you should also use sudo for kill command. sudo kill -usr1 pid
Edit:
Found a shorter one-line here using pgrep https://askubuntu.com/a/215521/196592
However, when I am at it, I see no reason for not using pkill instead eg. sudo pkill -USR1 ^dd
Anders F. U. Kiær
- 2,171
- 1
- 18
- 29