LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do i know when dd command has finished? (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-know-when-dd-command-has-finished-845417/)

morella 11-19-2010 08:46 PM

How do i know when dd command has finished?
 
Hi! I'm trying to put zero in one hd (60GB) toshiba. So i use the command sudo dd if=/dev/zero of=/dev/sdx. I learned to see the status and now after 24hrs the status is:
Code:

111108189+0 records in
111108189+0 records out
56887392768 bytes (57 GB) copied, 85620,7 seconds, 664 kb/s

So, when do i know when the task is complete? I thought that when reached about 55GB has stop. Because one hd with 60GB has actualy 55GB.

Thx!

syg00 11-19-2010 08:57 PM

You'll get a similar display. 60GB is about 55GiB - much different.

Forget to mention - in future use a (large) bs on that command; will speed it up mightily.

morella 11-19-2010 09:08 PM

Did mean when display about 600000000000 bytes (60 GB) then the task finally finish?

syg00 11-19-2010 09:12 PM

Yep.

morella 11-19-2010 09:25 PM

Ok thx! So what is that bs you have mention and how can i use in the command line in the future?

syg00 11-19-2010 09:46 PM

I just use a Meg, but I see a Gig is mentioned in the manpage - perhaps try that on a decent size drive.


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