To have a logfile, just use the optional [logfile] field.
For example (I think it's pretty self-explanatory):
Just one pass. You're done.
About the "-f" option: ddrescue doesn't copy only from disk to disk: it copies from a standard file, a partition or a disk to a standard file, a partition or a disk. It can copy from a file to a partition, or from a disk to a file, or whatever you like. Now: if the destination is a device or a partition, so if it isn't a regular file, ddrescue will refuse to overwrite it without "-f" option: "it's for your own protection"(R). So you're right using it.
About the logfile: ddrescue is thought for situations where the origin is tipically a disk with some bad unreadable sectors. ddrescue task is to copy as much as possible, as quick as possible, with the least possible stress. But something won't be copied, usually. It won't be possible to read some sectors on the origin, and the corresponding sectors on the destination will be zero-filled. That's why a logfile is so relevant: to know what has been copied and what hasn't.
But you're using ddrescue just to clone a healthy disk, so your logfile (yes, have it, it won't harm) will be really tiny and not interesting.
About "-g" option: let's say someone used ddrescue to recover data from a failing disk and without a logfile (shame on him!). Now he has the origin, he has the (partial) copy, he hasn't got the logfile. Thanks God (well, thanks ddrescue) he can generate the logfile (well, an approximate logfile) even "ex post", with "-g" option: ddrescue -g origin alreadymadecopy /var/log/ddrescuelog. Of course this is not your case, so you're not interested at all in "-g" option, which makes ddrescue just compare an origin with a copy, and create a log about what has probably been done.
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)
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)
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)
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)
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)
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)