Re: how to know the progressive state of dd

2018-06-28 Thread Raimo Niskanen
On Mon, Jun 25, 2018 at 06:07:23PM -0600, Todd C. Miller wrote: > As someone else mentioned you would use pkill on OpenBSD. > > However, you will also need to use SIGINFO, not SIGUSR1, to get > dd's status. BSD systems have traditionally used SIGINFO for this > purpose. Linux lacks SIGINFO so th

Re: how to know the progressive state of dd

2018-06-27 Thread Stuart Henderson
On 2018-06-26, Ax0n wrote: > When I'm dd-ing images (e.g. flashing SD Cards for raspberry pi), I > occasionally use pv from packages to do the file reading e.g. > > pv armv7.img | doas dd bs=1M of=/dev/rsd1c > > pv will send the file/device contents to stdout as fast as it can read it, > and dd wi

Re: how to know the progressive state of dd

2018-06-26 Thread Ax0n
When I'm dd-ing images (e.g. flashing SD Cards for raspberry pi), I occasionally use pv from packages to do the file reading e.g. pv armv7.img | doas dd bs=1M of=/dev/rsd1c pv will send the file/device contents to stdout as fast as it can read it, and dd will read stdin to write the file to disk

Re: how to know the progressive state of dd

2018-06-26 Thread Tuyosi T
thanks for kind advises . on linux - # dd if=/dev/sdb of=./OpenBSD-8G-snapshot.img bs=32k 58195+0 records in 58194+0 records out 1906900992 bytes (1.9 GB, 1.8 GiB) copied, 25.1818 s, 75.7 MB/s 109011+0 records in 109010+0 records out 3572039680 bytes (3.6 GB, 3.3 GiB) copied, 56.2196 s, 63.5 M

Re: how to know the progressive state of dd

2018-06-25 Thread Theo de Raadt
Todd C. Miller wrote: > As someone else mentioned you would use pkill on OpenBSD. > > However, you will also need to use SIGINFO, not SIGUSR1, to get > dd's status. BSD systems have traditionally used SIGINFO for this > purpose. Linux lacks SIGINFO so there is no consistent signal for > this k

Re: how to know the progressive state of dd

2018-06-25 Thread Theo de Raadt
Tuyosi T wrote: > hi all . > > on Linux > > dd-progress.bat < > --- > while true > do > date > killall -USR1 dd > echo > echo > sleep 30 > done > > but killall is not possibele on OpenBSD . > --- > regards true. doesn't work for me on wind

Re: how to know the progressive state of dd

2018-06-25 Thread Todd C. Miller
As someone else mentioned you would use pkill on OpenBSD. However, you will also need to use SIGINFO, not SIGUSR1, to get dd's status. BSD systems have traditionally used SIGINFO for this purpose. Linux lacks SIGINFO so there is no consistent signal for this kind of a thing there. - todd

Re: how to know the progressive state of dd

2018-06-25 Thread IL Ka
I do not understand what are you trying to achieve, but instead of killall you may use pkill(1) On Tue, Jun 26, 2018 at 1:33 AM, Tuyosi T wrote: > hi all . > > on Linux > > dd-progress.bat < > --- > while true > do > date > killall -USR1 dd

how to know the progressive state of dd

2018-06-25 Thread Tuyosi T
hi all . on Linux dd-progress.bat < --- while true do date killall -USR1 dd echo echo sleep 30 done but killall is not possibele on OpenBSD . --- regards