10
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

dd コマンドの進捗状況を表示する方法

Last updated at Posted at 2017-01-29

ddコマンドの進捗状況を表示する方法をググってみると、 SIGUSR1 シグナルを送る方法が、たくさん出てくる。

SIGUSR1シグナルを送る例
pkill -USR1 dd

Coreutils のバージョンがあまり古くなければ、status オプションで表示できるみたいで、こっちのほうがラクだった。

ddコマンドにstatusオプションを指定する例
$ rpm -q coreutils # CentOS7.x
coreutils-8.22-24.el7.x86_64
$ sudo dd if=./ubuntu-20.04-desktop-amd64.iso of=/dev/sdb bs=1k status=progress
2714452992 バイト (2.7 GB) コピーされました, 1017.815421 s, 2.7 MB/s

See also

10
10
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?