LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-21-2017, 09:17 AM   #1
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Rep: Reputation: 10
Post dd command with progress.


Hello.
I like to use "dd" command and it show me the progress of task but I can't find any useful parameters. I fount "https://www.cyberciti.biz/faq/linux-...-while-coping/ it but my "dd" command not have any "status=progress" parameter!!!
Code:
dd: invalid status flag: ‘progress’
Try 'dd --help' for more information.
Any idea?

Thank you.
 
Old 08-21-2017, 09:27 AM   #2
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,585

Rep: Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351
dcfldd?
 
Old 08-21-2017, 09:30 AM   #3
remma12
Member
 
Registered: May 2017
Distribution: Arch
Posts: 65

Rep: Reputation: 28
Smile

Quote:
Originally Posted by hack3rcon View Post
Hello.
I like to use "dd" command and it show me the progress of task but I can't find any useful parameters. I fount "https://www.cyberciti.biz/faq/linux-...-while-coping/ it but my "dd" command not have any "status=progress" parameter!!!
Code:
dd: invalid status flag: ‘progress’
Try 'dd --help' for more information.
Any idea?

Thank you.
status=progress is a standard feature of DD - see the official manual here

You have mis-typed my friend
 
2 members found this post helpful.
Old 08-21-2017, 10:16 AM   #4
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 4,547

Rep: Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082
Quote:
Originally Posted by remma12 View Post
status=progress is a standard feature of DD - see the official manual here

You have mis-typed my friend
It is a standard feature for the dd command in coreutils version 8.24 or above. Earlier versions lack that feature.

Check the output from "dd --version".
 
Old 08-21-2017, 10:21 AM   #5
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-30
Posts: 5,290

Rep: Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916
ddrescue ?
also:
Quote:
Sending a USR1 signal to a running 'dd' process makes it print I/O statistics to standard error and then resume copying.

CW$ dd if=/dev/zero of=/dev/null& pid=$!

CW$ kill -USR1 $pid; sleep 1; kill $pid
18335302+0 records in
18335302+0 records out 9387674624 bytes (9.4 GB) copied, 34.6279 seconds, 271 MB/s
https://linux.die.net/man/1/dd

Last edited by schneidz; 08-21-2017 at 10:25 AM.
 
Old 08-22-2017, 02:03 AM   #6
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 1,852

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
From this link: https://askubuntu.com/questions/2155...progress-of-dd

Quote:
Installation

sudo apt-get install pv
Example

dd if=/dev/urandom | pv | dd of=/dev/null
Output

1,74MB 0:00:09 [ 198kB/s] [ <=> ]
 
Old 08-22-2017, 02:40 AM   #7
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 10
Quote:
Originally Posted by remma12 View Post
status=progress is a standard feature of DD - see the official manual here

You have mis-typed my friend
mis-typed?
 
Old 08-22-2017, 02:40 AM   #8
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 10
Quote:
Originally Posted by rknichols View Post
It is a standard feature for the dd command in coreutils version 8.24 or above. Earlier versions lack that feature.

Check the output from "dd --version".
Code:
$ dd --version
dd (coreutils) 8.23
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Paul Rubin, David MacKenzie, and Stuart Kemp.
 
Old 08-22-2017, 03:44 AM   #9
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 16,510

Rep: Reputation: 5552Reputation: 5552Reputation: 5552Reputation: 5552Reputation: 5552Reputation: 5552Reputation: 5552Reputation: 5552Reputation: 5552Reputation: 5552Reputation: 5552
yes, your dd is a bit outdated. You can use dcfldd (see post #2) - you may need to install it. It is almost fully compatible with dd and has status info.
Or you can use pv, see post #6. Also you can use sigusr1, see post #5
And finally you can try to upgrade your dd to 8.24 or newer.
 
Old 08-22-2017, 12:47 PM   #10
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873
Per post #2 ... +1 dcfldd, it's a fork of dd that "SHOWS PROGRESS".

dcfldd has basically the same syntax as dd. If the syntax does differ I don't know how (yet). I would imagine that it has an extra flag to turn OFF progress info if it does differ, but the default is ON. The smaller the bs= value, the more often it updates the progress information. Which probably means that it's pretty chatty if you let it default to 512 bytes. I normally do bs=1M so I get updates every 256MB-ish.
 
Old 08-23-2017, 08:18 AM   #11
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 10
Quote:
Originally Posted by pan64 View Post
yes, your dd is a bit outdated. You can use dcfldd (see post #2) - you may need to install it. It is almost fully compatible with dd and has status info.
Or you can use pv, see post #6. Also you can use sigusr1, see post #5
And finally you can try to upgrade your dd to 8.24 or newer.
I guess it is the current version of Debian package because when I use "apt-get update" the "dd" not updated.
 
Old 08-23-2017, 08:27 AM   #12
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 10
Problem solved via "pv" :
Code:
# dd if=/dev/device address | pv | dd of=/output address
"dcfldd" is good too and by default support "progress" feature.

Last edited by hack3rcon; 08-23-2017 at 08:30 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
show progress for command robertkwild CentOS 6 03-03-2017 04:40 AM
Start command on ssh and access the progress of the command later. sublimemusic Linux - General 2 07-12-2015 01:23 PM
show progress while using cp command qweyu Linux - Newbie 2 02-20-2013 05:09 AM
tar command with progress bar netpumber Linux - General 1 11-05-2009 05:54 AM
cp command with progress indicator exodist Linux - Software 1 07-21-2004 06:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration