Re: [LAD] [OT] bash vs disk activity

From: Patrick Shirkey <pshirkey@email-addr-hidden>
Date: Thu Oct 11 2007 - 11:58:06 EEST

On Thu, 2007-10-11 at 10:32 +0200, Luis Garrido wrote:
> > Can anyone here shed a little more light on how to monitor the disk
> > activity while transferring data?
> >
>
> Not sure if this would work, but first thing I can think of is:
>
> 1) Calculate the amount of data to transfer (du command.)
> 2) Find out the remaining free space in the target unit (df command.)
> 3) Calculate the remaining free space when the copy is done.
> 4) Begin copy.
> 5) Periodically monitor the free space.

Hi Luis,

Thanks for your suggestion.

I have tried that already but the cp command grabs the space allocated
while it is buffering the data to transfer so as far as df is concerned
the space has been filled :/

Cheers.

-- 
Patrick Shirkey
Boost Hardware Ltd.
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/mailman/listinfo.cgi/linux-audio-dev
Received on Thu Oct 11 12:15:02 2007

This archive was generated by hypermail 2.1.8 : Thu Oct 11 2007 - 12:15:02 EEST