|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Status of dd command
Hi Ho all there,
if i invoke the dd command (for copiing a hd) it takes very long time and i want to know the status linke how much percent done oder how much MB copied. Can anybody help ? |
|
#2
|
|||
|
|||
|
ok, give this one a try (untested... could maybe work in bash):
Code:
dd if=/dev/hda1 of=/mnt/backup/backupfile.dat & // background the process while ($!) // while the process is still running kill -SIGINFO $! // request info from the process sleep 1000 // wait a second wend this is somewhat experimental. i never tried this nor tested this script. It probably does not work at all, nor on all / any unix version. it should only give you some hints on how to do it. explanation: the script would background the copy ("dd") process. it should send a SIGINFO every one second, making "dd" output some information about the progress. no idea if it works though... as i said, just a hint. from my experience, bash scripting has always been some trial-and-error ![]() ...hope this helps... M.
__________________
-- Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more. |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > Linux Help > Status of dd command |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|