I'm trying to copy data off a rather damaged CD using the following command:
dd if=/dev/sr1 of=IDT.img conv=sync,noerror status=progress
However, the 'of' device got disconnected and the dd stopped (output below).
...
dd: error reading '/dev/sr1': Input/output error
1074889+17746 records in
1092635+0 records out
559429120 bytes (559 MB, 534 MiB) copied, 502933 s, 1.1 kB/s
dd: writing to 'IDT.img': Input/output error
1074889+17747 records in
1092635+0 records out
559429120 bytes (559 MB, 534 MiB) copied, 502933 s, 1.1 kB/s
Can I resume with:
dd if=/dev/sr1 of=IDT.img conv=sync,noerror status=progress seek=1092635 skip=1092635
Or should the seek/skip numbers be both 1092636
, or should skip/seek be different from each other, or something entirely different?
PS I know I'm probably using the wrong command for this, e.g. ddrescue is probably better. But I'm probably stuck with dd now(?). I don't expect any more errors on the output file side of things.
conv=sync
would line up the blocks, but I guess not! BTW, the files on the input CD are all videos. I mounted the image and the videos seem to play albeit with some corruption, it seems. Nevertheless, looks like ddrescue is the way to go! – bmcws May 26 '21 at 11:51