dd cloning of whole disk


 
Thread Tools Search this Thread
Operating Systems Linux Ubuntu dd cloning of whole disk
# 8  
Old 07-27-2012
An enhanced version of GNU dd called dcfldd is often used by forensic examiners. It outputs status messages continually to stderr.
# 9  
Old 07-27-2012
Quote:
Originally Posted by Royalist
Thanks for your opinion.
I use GNU dd quite often, and sadly think this is more than opinion. Nothing went wrong, you just got impatient. Copying a terabyte of data can take ages, even when you're getting ideal transfer rates(which you often don't).

It may also have gotten hung up for some reason, though that seems unlikely. dd will print error messages if you start getting read or write errors.
Quote:
The 'dd' results were returned although I didn't record the number of bytes copied
Yes, it prints statistics whenever it quits for any reason. That doesn't mean it finished.
Quote:
However, the process was clearly marked as 'sleeping' and I took that to mean that it was complete.
All dd has to do is while(!eof) { read(buffer); write(buffer); }. That's a whole lot of transfer for very few instructions, so 99% of the time is spent asleep waiting for the disk to catch up. Most processes spend 99% of their time asleep, waiting for I/O.

Last edited by Corona688; 07-27-2012 at 01:40 PM..
# 10  
Old 08-03-2012
Success Thanks to you all

Yes! 'dd' does work. Scrutiniser's 'bs=1M' did the job. A bootable clone in 2.75hours with results returned with no discrepancies.
Previously, I had taken the advice re-unfillable sink etc from Alister and used that method to test the various signals that had been suggested. Not one achieved the expected result, but then I may have mis-applied them perhaps.
The clone's partitions have now been resized with GParted with no apparent data loss and the new partitions are now in use.
Finally, I have done my history homework and read up about the GNU and Linux and looked for an apparent non existent link to IBM. I now understanding the grounding of Ubuntu.
Thank you all for being so patient.

Regards
RoySmilie
These 2 Users Gave Thanks to Royalist For This Post:
# 11  
Old 08-03-2012
Thanks for reporting back, Royalist..
# 12  
Old 08-03-2012
Quote:
Originally Posted by Royalist
Yes! 'dd' does work. Scrutiniser's 'bs=1M' did the job. A bootable clone in 2.75hours with results returned with no discrepancies.
For your goal IMHO it's better (and easier) to use dd_rescue than dd, even better to use ddrescue. And you learn to use something useful in case of hardware problems (dead sectors). For some more info:
System Administration Bits of Knowledge

To install and learn dd_rescue in Ubuntu:

Code:
sudo apt-get install ddrescue
man dd_rescue

Yes, dd_rescue is in package ddrescue (Debian and Ubuntu).

To install and learn ddrescue in Ubuntu:

Code:
sudo apt-get install gddrescue
man ddrescue

Yes, ddrescue is in package gddrescue (Debian and Ubuntu).

For single partitions, best (and often much faster) is to use Partimage.
--
Bye
# 13  
Old 08-03-2012
dd_rescue is indeed simpler and more convenient if you have it, which is why I suggested it earlier.
# 14  
Old 08-04-2012
Yes, thanks. I do have dd_rescue, but have not tried it as yet.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Linux

Disk cloning ?

Dear All I needed to clone my disk to another hard drive . I did it as the following : #dd if=/dev/sdb of=/dev/sdc But after a while, the procedure ended with the "writing to /dev/sdc input/output error" message. Can you please let me know how can I overcome this as the fdisk now returns as "... (1 Reply)
Discussion started by: hadimotamedi
1 Replies

2. HP-UX

HP-UX server cloning

Hello Friends, Am in requirement to clone a Live HP-UX server here's details OS: HpUX B-11.11 with mirrored LVM disks . S/ws: Remedy, XML engine, Annoysystem, Oracle All Oracle, XMl and Remedy data is on SAM LUN which is used for clustering . My requirement to create a clone server and... (10 Replies)
Discussion started by: Shirishlnx
10 Replies

3. Shell Programming and Scripting

Cloning

Hi, Is there disadvantages if we do AIX Serevr cloning to the new AIX server. Thanks in advance (0 Replies)
Discussion started by: kmsekhar
0 Replies

4. Filesystems, Disks and Memory

Automated disk cloning

Hi, I'm running Ubuntu on my laptop. To keep my data safe and easy disaster recovery as well I bought similar HDD to one installed in my laptop with higher capacity and using USB box I'm doing disk clone to it. So at any time I can replace disk and carry on with my work as before. I'm trying... (2 Replies)
Discussion started by: uvaio
2 Replies

5. Solaris

Problem by cloning boot disk.

Hello guys! I use the Solaris 10 x86 machine. I need to clone the boot disk. Why, when I copy slice 1 - there is a following: # ufsdump 0f - /dev/rdsk/c0d0s1 | (cd /mnt && ufsrestore rf - ) DUMP: Warning - super-block on device `/dev/rdsk/c0d01` is corrupt - run fsck Dump: The Entire... (6 Replies)
Discussion started by: wolfgang
6 Replies

6. Red Hat

cloning a server

I wish to clone a RedHat EL5 server. What's the easiest way to do this? Thanks :) (4 Replies)
Discussion started by: wazzu62
4 Replies

7. Solaris

Disk cloning using ufsrestore

I am using ufsdump and ufsrestore to clone the root disk on one of my servers. I would like to automate this as much as possible, but have run into a problem where it prompts for changing the owner/mode when it is complete. Any ideas for running this in the background and not being prompted? ... (4 Replies)
Discussion started by: patricko0317
4 Replies

8. HP-UX

Hpux Disk Cloning

hello, Anybody that has already running script or command that can disk clone the hpux machine thanks (2 Replies)
Discussion started by: eykyn17
2 Replies

9. SCO

Disk cloning

Hello everybody, :confused: I have to change the system disk on an old PC running SCO 5.0.5. The disk is up and running, this is a preventive action. My experience on UNIX is very limited and I look for the easyest solution to clone this unit. Is it possible with commands or through a clone... (2 Replies)
Discussion started by: mhachez
2 Replies
Login or Register to Ask a Question