°Ô½Ã¹° 1,369°Ç
   
dd status Ç¥½Ã
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2016-08-16 (È­) 13:34 Á¶È¸ : 3892
±ÛÁÖ¼Ò :
                                
:: dd »óÅÂÁøÇà Ç¥½Ã
  ºí·Ï º¹Á¦Çϰųª....¿øÇÏ´Â »çÀÌÁî ÆÄÀÏÀ» ¸¸µé¶§ »ç¿ë

1.  PV(Pipe Viewer) »ç¿ë
# sudo apt-get install pv
# dd if=/dev/zero | pv | dd of=test.img bs=2048 count=1000000
dd: warning: partial read (1024 bytes); suggest iflag=fullblock
982442+17558 ·¹ÄÚµå µé¾î¿È] [            <=>                  ]
982442+17558 ·¹ÄÚµå ³ª°¨
2030613504 bytes (2.0 GB, 1.9 GiB) copied, 5.38553 s, 377 MB/s
1.89GiB 0:00:05 [ 359MiB/s] [              <=>                 ]

¡Ø pv options ( -tpreb )
-t, --timer          Turn the timer on.  This will display the total elapsed time that pv has been running for.
-p, --progress   Turn the progress bar on.  If standard input is not a file and no size was given (with the -s modifier), the progress bar cannot indicate how close to completion the transfer is, so it will just  move  left  and right to indicate that data is moving.
-r ,--rate            Turn the rate counter on.  This will display the current rate of data transfer.
-e, --eta            Turn the ETA timer on.  This will attempt to guess, based on previous transfer rates and the total data size, how long it will be before completion.  This option will have no effect if the total data size cannot be determined.
-b, --bytes        Turn the total byte counter on.  This will display the total amount of data transferred so far.

dialog È­¸éÇÏ°í  ¿¬µ¿
# sudo apt-get install dialog
# (pv -n /dev/sda | dd of=/dev/sdb bs=128M conv=notrunc,noerror) 2>&1 | dialog --gauge "Running dd command (cloning), please wait..." 10 70 0



2. status=progress
status ¿É¼ÇÁß progress´Â coreutils >= 8.24 ºÎÅÍ Áö¿ø
Ubuntu 16.04 ¿¡¼­´Â ±âº»¹öÀüÀÌ 8.25

# dpkg --list |grep coreutils
ii  coreutils                          8.25-2ubuntu2                       amd64        GNU core utilities

# dd if=/dev/zero of=test.img bs=2048 count=1000000 status=progress
1471096832 bytes (1.5 GB, 1.4 GiB) copied, 2 s, 736 MB/s
1000000+0 ·¹ÄÚµå µé¾î¿È
1000000+0 ·¹ÄÚµå ³ª°¨
2048000000 bytes (2.0 GB, 1.9 GiB) copied, 2.77894 s, 737 MB/s


Âü°í http://askubuntu.com/questions/215505/how-do-you-monitor-the-progress-of-dd

À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

 



 
»çÀÌÆ®¸í : ¸ðÁö¸®³× | ´ëÇ¥ : ÀÌ°æÇö | °³ÀÎÄ¿¹Â´ÏƼ : ·©Å°´åÄÄ ¿î¿µÃ¼Á¦(OS) | °æ±âµµ ¼º³²½Ã ºÐ´ç±¸ | ÀüÀÚ¿ìÆí : mojily°ñ¹ðÀÌchonnom.com Copyright ¨Ï www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.