Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Checking progress of dd command, when will it finish?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
OdinsDream
Veteran
Veteran


Joined: 01 Jun 2002
Posts: 1057

PostPosted: Fri May 02, 2003 3:35 pm    Post subject: Checking progress of dd command, when will it finish? Reply with quote

I'm copying one harddrive to another, identical drive. The source harddrive is the primary slave. The destination blank drive is secondary master.

I started the command: dd if=/dev/hdb of=/dev/hdc quite awhile ago. Nearly 10 hours. How long should it take to copy 120 GB of information?

Is there a method to check on the progress of dd? Some way to tell where it is in the operation?
_________________
s/(?<!gnu\/)linux(?! kernel)/GNU\/Linux/gi

Don't blame me. I didn't vote for him.

http://john.simplykiwi.com
Back to top
View user's profile Send private message
magnet
Guru
Guru


Joined: 16 Mar 2003
Posts: 582
Location: france

PostPosted: Fri May 02, 2003 6:07 pm    Post subject: Reply with quote

umm this can be hard to guess....here his what I'd do :
first stop the dd with crtl +Z , then benchmark my hds, calculate necessary time, removing elapsed time.this should give you a reasonable approximation.
after start again the dd with 'fg' .
_________________
every step aim at glory.
Back to top
View user's profile Send private message
OdinsDream
Veteran
Veteran


Joined: 01 Jun 2002
Posts: 1057

PostPosted: Fri May 02, 2003 7:36 pm    Post subject: Reply with quote

magnet wrote:
umm this can be hard to guess....here his what I'd do :
first stop the dd with crtl +Z , then benchmark my hds, calculate necessary time, removing elapsed time.this should give you a reasonable approximation.
after start again the dd with 'fg' .


Hmm, I am unable to stop it with CTRL Z, or CTRL C... I switched to another console, and tried killing the process, which didn't work.

I ran hdparm -tT /dev/hdc which never came back, and also didn't die. What could be wrong here?

Right now I'm waiting at:

flushing ide devices: hda hdb hdc _

After asking the system to shutdown. Something must be wrong.
_________________
s/(?<!gnu\/)linux(?! kernel)/GNU\/Linux/gi

Don't blame me. I didn't vote for him.

http://john.simplykiwi.com
Back to top
View user's profile Send private message
OdinsDream
Veteran
Veteran


Joined: 01 Jun 2002
Posts: 1057

PostPosted: Fri May 02, 2003 8:23 pm    Post subject: Reply with quote

More information:

When I enable DMA on hdc, with: hdparm -d1 /dev/hdc, although I get confirmation, any subsequent disk access fails, and the program hangs.

For instance:
Code:

p2c2e root # hdparm -tT /dev/hdc

/dev/hdc
    Timing buffer-cache reads:     128MB in 0.66 seconds = 193.94 MB/sec
    Timing buffered disk reads:    64MB in 16.79 seconds = 3.81 MB/sec

p2c2e root # hdparm -d1 /dev/hdc

/dev/hdc:
    setting using_dma to 1 (on)
    using_dma      =  1 (on)
p2c2e root # hdparm -tT /dev/hdc

/dev/hdc:
_


At this point, the hdparm program hangs. The cursor blinks, but I cannot kill it with another console, nor can I do anything to stop it. When I shutdown the system, I get the same problem with "flushing ide devices: hda hdb hdc _"
_________________
s/(?<!gnu\/)linux(?! kernel)/GNU\/Linux/gi

Don't blame me. I didn't vote for him.

http://john.simplykiwi.com
Back to top
View user's profile Send private message
dma
Guru
Guru


Joined: 31 Jan 2003
Posts: 437
Location: Charlotte, NC, USA

PostPosted: Sat May 03, 2003 5:13 am    Post subject: Reply with quote

I suggest you take a look at sys-apps/buffer!!!

Code:
*  sys-apps/buffer
      Latest version available: 1.19-r1
      Latest version installed: [ Not Installed ]
      Size of downloaded files: 34 kB
      Homepage:    http://www.microwerks.net/~hugo/download.html
      Description: a tapedrive tool for speeding up reading from and writing to tape


Here's an example:
Code:
root@laureate:~# buffer -i /dev/video1 -o ee.xx -z 32k
       8096K


Home Page:
http://www.microwerks.net/~hugo/download.html

More Info:
http://www.geocrawler.com/archives/3/163/2001/9/0/6714478/
Back to top
View user's profile Send private message
OdinsDream
Veteran
Veteran


Joined: 01 Jun 2002
Posts: 1057

PostPosted: Sat May 03, 2003 5:19 am    Post subject: Reply with quote

dma wrote:
I suggest you take a look at sys-apps/buffer!!!

Code:
*  sys-apps/buffer
      Latest version available: 1.19-r1
      Latest version installed: [ Not Installed ]
      Size of downloaded files: 34 kB
      Homepage:    http://www.microwerks.net/~hugo/download.html
      Description: a tapedrive tool for speeding up reading from and writing to tape


Here's an example:
Code:
root@laureate:~# buffer -i /dev/video1 -o ee.xx -z 32k
       8096K


Home Page:
http://www.microwerks.net/~hugo/download.html

More Info:
http://www.geocrawler.com/archives/3/163/2001/9/0/6714478/


I'll check out this utility, to see if it applies to more than non-tape drives, however, I'm still a bit put off by DMA failing misearably. The drive is new, bought yesterday, so I doubt it would simply not support DMA...
_________________
s/(?<!gnu\/)linux(?! kernel)/GNU\/Linux/gi

Don't blame me. I didn't vote for him.

http://john.simplykiwi.com
Back to top
View user's profile Send private message
dma
Guru
Guru


Joined: 31 Jan 2003
Posts: 437
Location: Charlotte, NC, USA

PostPosted: Sat May 03, 2003 5:24 am    Post subject: Reply with quote

I was using it on raw webcam data above. :D

Try this one:
Code:
root@laureate:~# buffer -i /dev/zero -o /dev/null -z 32k
    1014144K
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum