Re: Watching the prgress of dd if=drive1 of=drive2

2008-03-02 Thread Woodchuck
On Mon, 25 Feb 2008, Jan Stary wrote:

 On Feb 23 12:15:21, Jon wrote:
  I'm using dd to clone a drive. How can I watch the progress of this or
  see the transfer rate in real time?
 
 You can use 'fstat -o' on the device file.
 
   Jan

If the dd is running on a terminal, sending the status signal
will cause a little printout.  Usually that's a CTRLT, which
for console may need to be set first with 
$ stty status ^T  
where ^ and T are normal characters.  See man stty and
also note the kerninfo option.

Dave
-- 
   The future isn't what it used to be.
 -- G'kar



Re: Watching the prgress of dd if=drive1 of=drive2

2008-02-25 Thread Jan Stary
On Feb 23 12:15:21, Jon wrote:
 I'm using dd to clone a drive. How can I watch the progress of this or
 see the transfer rate in real time?

You can use 'fstat -o' on the device file.

Jan



Re: Watching the prgress of dd if=drive1 of=drive2

2008-02-23 Thread Brian A. Seklecki
On Sat, 2008-02-23 at 12:15 -0800, Jon wrote:
 I'm using dd to clone a drive. How can I watch the progress of this or
 see the transfer rate in real time?
 

http://www.openbsd.org/cgi-bin/cvsweb/src/bin/dd/dd.c?rev=1.15content-type=text/x-cvsweb-markup


main(int argc, char *argv[])

   (void)signal(SIGINFO, summaryx);



Re: Watching the prgress of dd if=drive1 of=drive2

2008-02-23 Thread Brian A. Seklecki (Mobile)
On Sat, 2008-02-23 at 12:15 -0800, Jon wrote:
 I'm using dd to clone a drive. How can I watch the progress of this or
 see the transfer rate in real time?

It should accept SIGINFO (control+G) on most terminals.  

You may also be able to compile progress(1)

~BAS




IMPORTANT: This message contains confidential information and is intended only 
for the individual named. If the reader of this message is not an intended 
recipient (or the individual responsible for the delivery of this message to an 
intended recipient), please be advised that any re-use, dissemination, 
distribution or copying of this message is prohibited. Please notify the sender 
immediately by e-mail if you have received this e-mail by mistake and delete 
this e-mail from your system.



Re: Watching the prgress of dd if=drive1 of=drive2

2008-02-23 Thread Steve McConville
On 23/02/2008, Jon [EMAIL PROTECTED] wrote:
 I'm using dd to clone a drive. How can I watch the progress of this or
  see the transfer rate in real time?

Try sending it a SIGINFO (as it says in the man page).

-- 
steev
http://www.daikaiju.org.uk/~steve/



Re: Watching the prgress of dd if=drive1 of=drive2

2008-02-23 Thread Pierre Riteau
On Sat, Feb 23, 2008 at 9:15 PM, Jon [EMAIL PROTECTED] wrote:
 I'm using dd to clone a drive. How can I watch the progress of this or
  see the transfer rate in real time?



From the manpage:

 If dd receives a SIGINFO (see the ``status'' argument for stty(1)) sig-
 nal, the current input and output block counts will be written to the
 standard error output in the same format as the standard completion mes-
 sage.

-- 
Pierre Riteau



Re: Watching the prgress of dd if=drive1 of=drive2

2008-02-23 Thread Alexey Vatchenko
On 2008-02-23, Brian A. Seklecki (Mobile) [EMAIL PROTECTED] wrote:

 It should accept SIGINFO (control+G) on most terminals.  


Isn't it control+T?

-- 
Alexey Vatchenko
http://www.bsdua.org



Thank you: Re: Watching the prgress of dd if=drive1 of=drive2

2008-02-23 Thread Jon
I solved the problem with (I believe it was) the first response out of
the four or five I got almost immediately.

I got four _separate_ completely valid solutions and this has pointed me
 on some learning paths here. This mailing list is awesome. Thank you.



Re: Watching the prgress of dd if=drive1 of=drive2

2008-02-23 Thread Hannah Schroeter
Hi!

On Sat, Feb 23, 2008 at 09:31:00PM +, Alexey Vatchenko wrote:
On 2008-02-23, Brian A. Seklecki (Mobile) [EMAIL PROTECTED] wrote:

 It should accept SIGINFO (control+G) on most terminals.  

Isn't it control+T?

By default it isn't mapped at all.

So use stty status ^t, for example, before starting dd. (Or other
commands that do something useful with SIGINFO, like ping or dump.)

Kind regards,

Hannah.



Re: Thank you: Re: Watching the prgress of dd if=drive1 of=drive2

2008-02-23 Thread Brian A. Seklecki (Mobile)
On Sat, 2008-02-23 at 13:46 -0800, Jon wrote:
  on some learning paths here. This mailing list is awesome. Thank you.

just remember that when 4.3 CD pre-release-sales are announced :)




IMPORTANT: This message contains confidential information and is intended only 
for the individual named. If the reader of this message is not an intended 
recipient (or the individual responsible for the delivery of this message to an 
intended recipient), please be advised that any re-use, dissemination, 
distribution or copying of this message is prohibited. Please notify the sender 
immediately by e-mail if you have received this e-mail by mistake and delete 
this e-mail from your system.



Re: Watching the prgress of dd if=drive1 of=drive2

2008-02-23 Thread STeve Andre'
On Saturday 23 February 2008 15:15:21 Jon wrote:
 I'm using dd to clone a drive. How can I watch the progress of this or
 see the transfer rate in real time?

It doesn't.  dd only reports stats at the end.

man dd   for more info.

--STeve Andre'