3 ms·
Doesn't pv give you an ETA if the output device size is known? I recently did pv </dev/zero >/dev/sdb to zero a drive and I'm pretty sure it gave me an ETA..
by BenjiWiebe 5y ago
Doesn't pv give you an ETA if the output device size is known?
I recently did
pv </dev/zero >/dev/sdb
to zero a drive and I'm pretty sure it gave me an ETA...
- wyldfire 5y agoThat seems to be exactly why it's endorsed. > For larger disks, an ETA proves invaluable. I like pv for this task.
- LeoPanthera 5y agoYou have to supply the input device (or file) as an argument, instead of using stdin. Then it will read the size of the device/file. As far as I know, this does not work for the output device, and the size must be specified. So: pv /path/file >/dev/device Will give you an ETA.
- hddqsb 5y agoOn Linux, pv can actually determine the size of the output device (using lseek on stdout), so `pv </dev/zero >/dev/sdb` does give a correct ETA (tested with pv 1.6.6 on Debian).