Skip to content

Instantly share code, notes, and snippets.

@rriemann
Created November 29, 2011 19:17
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save rriemann/1406035 to your computer and use it in GitHub Desktop.
Save rriemann/1406035 to your computer and use it in GitHub Desktop.
Use pv and dd to copy an iso-file to an usb stick while showing the progress
dd if=openSUSE-12.1-DVD-x86_64.iso | pv --eta --size 4628414464 --progress --bytes --rate --wait > /dev/sdc
@jdanders
Copy link

jdanders commented Nov 30, 2016

Why not (except that maybe this didn't work 5 years ago :) )
pv openSUSE-12.1-DVD-x86_64.iso > /dev/sdc

@leonardo-fernandes
Copy link

In case you need sudo to write to /dev/sdc:
pv openSUSE-12.1-DVD-x86_64.iso | sudo dd of=/dev/sdc

@CodingByDay
Copy link

I used dd for ages but after I read about pv I switched. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment