LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-15-2005, 01:04 AM   #1
sausagejohnson
Member
 
Registered: Mar 2004
Location: Canberra Area, Australia
Distribution: Kubuntu
Posts: 242

Rep: Reputation: 30
dd verbose mode?


Is there a verbose mode for dd? We copy 80GB - 200GB disks here at work and it can take anywhere from 45 minutes to 12 hours long.

The CPU is basically idle before dd is kicked off.

We can't pin point why sometimes it takes so darn long, so I'm wondering if anyone knows if there is any way to tell what stage dd is up to in it's duplication cycle.

Thanks.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 04-15-2005, 01:33 AM   #2
ahwkong
Member
 
Registered: Aug 2004
Location: Australia
Distribution: Fedora
Posts: 282

Rep: Reputation: 30
Hmmmmm, it means like dd does not support more verbose user feedback...

Well, I guess, either
1) You hack the source code to put in some printf stmt
or
2) By indirectly monitor the system performance :

Fire up three consoles:
In one of them runs "watch vmstat -d"
In another one runs "top"
Then in the third one start the dd operation.

See how the statistic change and it may ring a bell.
 
Old 04-15-2005, 01:49 AM   #3
sausagejohnson
Member
 
Registered: Mar 2004
Location: Canberra Area, Australia
Distribution: Kubuntu
Posts: 242

Original Poster
Rep: Reputation: 30
Thanks for that. I'll check out the watch command. I've also seperated to different IDE channels. I have since discovered some settings as DMA=0 so that will be causing some serious slow down. Also trying larger block sizes.
 
Old 04-15-2005, 03:01 AM   #4
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,288

Rep: Reputation: 65
i hacked the dd command years ago with a printf for output. i also found i get much better speed when i make the block size bigger like 1 meg or similar.
schily has a dd like program called sdd that gives the output you want.

http://public.planetmirror.com/pub/fokus-unix/sdd/
 
Old 01-04-2010, 02:55 PM   #5
jma89
LQ Newbie
 
Registered: Jan 2010
Location: Earth
Distribution: Ubuntu
Posts: 6

Rep: Reputation: 3
This may be far too late to be of good use, but perhaps the search spiders will pick it up and somebody else can gain from it.

Current versions of dd will type out their current record counts and such if the process receives an INFO signal (SIG number 29)

You can manipulate the KILL command to send any SIG command you wish. Here are the steps to bring up the current status of any dd operation:

First, get the PID for dd:
Code:
ps | grep dd
The process ID is the first column returned. (The full command is at the far right column, so you can tell which dd you want to send INFO to.)

Once you have that, go ahead and send the signal:
Code:
kill -s 29 1070
(Note: 1070 is the number you'll change to what came out from the first step.)

Viola! Check back on the terminal that's running dd and you should see the current record counts along with how much data it's transferred (in bytes) and how long it's been going.

Hope that helps!
 
2 members found this post helpful.
Old 03-30-2010, 11:23 PM   #6
h4shBrpwnz
LQ Newbie
 
Registered: Mar 2010
Posts: 1

Rep: Reputation: 0
Thread necromancy, GO!

In fact the kill command posted above sort of works in that it produced a message, but it also killed my dd process. A little further research turned up a kill message specifically used to get dd to print status information. Again though, check your man page for dd to see if it's applicable.

Code:
kill -USR1 <process ID>
 
1 members found this post helpful.
Old 08-29-2012, 09:35 PM   #7
peterkidd
LQ Newbie
 
Registered: Aug 2012
Posts: 1

Rep: Reputation: Disabled
Another consideration is to use the iostat command in the sysstat package.
Use command
Code:
sudo apt-get install sysstat
then
Code:
iostat
and you can determine how much has been written to your device in question.
 
Old 04-13-2013, 04:14 PM   #8
jorijnsmit
LQ Newbie
 
Registered: Apr 2013
Posts: 2

Rep: Reputation: Disabled
The command
Code:
dcfldd
is a more elaborate version of
Code:
dd
which does exactly what you need it to; it shows a live amount of blocks and bytes written when busy.
 
Old 06-19-2017, 04:42 AM   #9
Hairyloon
LQ Newbie
 
Registered: Mar 2008
Posts: 29

Rep: Reputation: 15
Quote:
Originally Posted by jorijnsmit View Post
The command
Code:
dcfldd
is a more elaborate version of
Code:
dd
which does exactly what you need it to; it shows a live amount of blocks and bytes written when busy.
Thanks.
Is the syntax the same as dd?
 
Old 06-20-2017, 05:51 AM   #10
jorijnsmit
LQ Newbie
 
Registered: Apr 2013
Posts: 2

Rep: Reputation: Disabled
https://linux.die.net/man/1/dcfldd
 
Old 06-20-2017, 06:15 AM   #11
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 18,297

Rep: Reputation: 2994Reputation: 2994Reputation: 2994Reputation: 2994Reputation: 2994Reputation: 2994Reputation: 2994Reputation: 2994Reputation: 2994Reputation: 2994Reputation: 2994
Considering how old this thread is, it should be noted dd itself now has a progress indicator. dclfdd hasn't been maintained in a very long time.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Verbose to Silent Mode Very Maqbool Linux - Software 2 07-16-2005 03:34 AM
Permanent verbose mode for startup Fnurr Mandriva 4 02-07-2005 04:15 AM
Bootsplash works only in verbose mode drawhla Debian 7 10-28-2004 09:10 PM
How to set for verbose mode boot in Mandrake will103 Mandriva 3 10-23-2004 10:48 AM
How Do I Set Start Up At Verbose Mode gram_vaz Mandriva 4 08-24-2004 04:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:06 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration