Skip to content

jenerous/how_long

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

status update on dd or other copy functions

Prints the time left based on given estimated final size of a file being copied.

Usage

Example: You're using dd to clone an SD-card to your computer. You know the card is 64GB of size.

# carefully change input and output!
# dd if=/dev/sda of=sdbackup.img bs=2M

During this is running, you wonder how long it is going to take. You can find out with this script:

./how_long.py sdbackup.img 64GB

You will get a status message every few seconds:

2.09GB (3.27%) 80.80MB/s -> 13min 4s to finish

The output is currently set to GBs for the overall size and MBs for the write speed. You can change this within the scripts easily. You can give a third argument to the script to define the seconds to wait between reads.

About

status update on dd or other copy functions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages