
Be VERY careful with if (input file) and of (output file).If you can attach both disks, copy directly: sudo dd if=/dev/disk2 of=/dev/disk3 bs=64k.Make sure the destination has enough space, eg, is equal to (or greater than) the source size.If the copy fails due to disk errors, try using the following command at step 3:ĭd if=/dev/disk2 of=/Users/mike/diskimage.img conv=noerror,syncĭd will take much longer using this option, errors are written as NUL bytes. The second dd command is almost the same, but if and of are reversed. Sudo dd of=/dev/disk2 if=/Users/mike/diskimage.img Attach and identify the destination disk ⇒Ħ. Sudo dd if=/dev/disk2 of=/Users/mike/diskimage.imgĤ. If the installation has primary and backup signalling servers, clone one at a time to avoid service interruption. Make a working copy of a Signalling Server hard disk This option can often recover a dead hard drive, or an unreadable file, but it does not repair the error. If the operation stops with an I/O error, try to salvage all readable data with conv=noerror,sync By adding sync, errors are padded with zero's (optional) bs=n sets both input and output block size (optional, default=512 byte blocks).
