Find the answer to your Linux question:
Page 2 of 2 FirstFirst 1 2
Results 11 to 17 of 17
dd command doesn't output anything, when it is done it will return to the prompt this will take a long time depending on the size of the disk involved because ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #11
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149

    dd command doesn't output anything, when it is done it will return to the prompt

    this will take a long time depending on the size of the disk involved because you are doing an exact copy of it

  2. #12
    Just Joined!
    Join Date
    Dec 2009
    Posts
    15
    Quote Originally Posted by coopstah13 View Post
    dd command doesn't output anything, when it is done it will return to the prompt

    this will take a long time depending on the size of the disk involved because you are doing an exact copy of it
    Thanks! Patience is not my strong point, especially if I'm worried something will go wrong...

  3. #13
    Just Joined! Prioria's Avatar
    Join Date
    Sep 2010
    Location
    Gainesville, FL
    Posts
    31
    Quote Originally Posted by jeztastic View Post
    Thanks! Patience is not my strong point, especially if I'm worried something will go wrong...
    When the dd is running, open a second terminal and run:
    ps -ef | grep dd

    You'll get something like this:
    root 31733 31268 54 10:44 pts/0 00:01:55 dd of my-dd.img
    Then find the status of the dd by running:
    kill -SIGUSR1 31733 (replacing 31733 with your number)

    Then the original dd terminal will dump the status:

    #dd if=/dev/sda1 of=my-dd.img
    12574781+40555 records in
    12601304+0 records out
    6451867648 bytes (6.5 GB) copied, 224.634 s, 28.7 MB/s

  4. $spacer_open
    $spacer_close
  5. #14
    Just Joined!
    Join Date
    Dec 2009
    Posts
    15
    Code:
    ubuntu@ubuntu:~$ ps -ef | grep dd
    root         2     0  0 09:39 ?        00:00:00 [kthreadd]
    root      6683     1  0 09:40 ?        00:00:00 /bin/dd bs 1 if /proc/kmsg of /var/run/klogd/kmsg
    root      6953  6871  0 09:40 ?        00:00:00 hald-addon-input: Listening on /dev/input/event6 /dev/input/event5 /dev/input/event1 /dev/input/event2
    111       6961  6871  0 09:40 ?        00:00:00 hald-addon-acpi: listening on acpid socket /var/run/acpid.socket
    root      6978  6871  0 09:40 ?        00:00:06 hald-addon-storage: polling /dev/scd0 (every 2 sec)
    root      7016     2  0 09:41 ?        00:00:00 [btaddconn]
    ubuntu    7475     1  0 09:41 ?        00:00:02 //bin/dbus-daemon --fork --print-pid 6 --print-address 9 --session
    root      8058  7717 29 09:55 ?        02:04:34 dd if /dev/sda of /dev/sdb
    root     10296     1  0 12:38 ?        00:00:00 //bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
    root     10742 10592 18 12:52 pts/1    00:46:42 dd if /dev/sda of /dev/sdb
    ubuntu   15794 15776  0 17:02 pts/2    00:00:00 grep dd
    ubuntu@ubuntu:~$ kill -SIGUSR1 10742
    Code:
    ubuntu@ubuntu:~$ sudo dd if=/dev/sda of=/dev/sdb
    139979873+0 records in
    139979873+0 records out
    71669694976 bytes (72 GB) copied, 15329.6 s, 4.7 MB/s
    Does that look OK? It's a 500GB drive, about half full, but it's been running a few hours now. I tried a couple of times earlier, then stopped it and formatted the drive, I'm guessing that's what the earlier examples are.

  6. #15
    Just Joined! Prioria's Avatar
    Join Date
    Sep 2010
    Location
    Gainesville, FL
    Posts
    31
    That looks right. dd is definitely not known for speed, it's known for accuracy and reliability. I've had clones take over 20 hours before, just let it go.

  7. #16
    Just Joined!
    Join Date
    Dec 2009
    Posts
    15
    Heheh... Good. Thanks.

  8. #17
    Just Joined!
    Join Date
    Dec 2009
    Posts
    15
    Ok, it's all worked really well. It took getting on for 24 hours to clone the drive, however, it's all working. I just have to work out if the original drive is salvageable.

    Thanks to everyone who helped.

Page 2 of 2 FirstFirst 1 2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •