On Mon, 29 Nov 2004 22:54, Hans du Plooy wrote:
On Friday 26 November 2004 15:58, Graham Smith wrote:
I don't know if this will help but there is a package called ddrescue on
the SuSE distribution.
I thought of that, but didn't know if that would help. How did you do
this?
I used it to retreive a file off a floppy. The command I used was the same as
I would use for cp.
dd_rescue /media/floppy/<filename> ./
It appears to change the blocksize down to where it is can retreive data from
the source. I believe it can act the same a dd and copy a whole image at once
although I haven't tried using that function.
ddrescue - Data Copying in the Presence of I/O Errors
Dd_rescue helps when nobody else will: your disk has crashed and you try to
copy it over to another one. While standard Unix tools like cp, cat, and dd
wail "abort" on every I/O error, dd_rescue will not.
The following is the output of dd_rescue without any options given
======================================================
dd_rescue Version 1.10, garloff@suse.de, GNU GPL
($Id: dd_rescue.c,v 1.46 2004/08/28 21:45:09 garloff Exp $)
dd_rescue copies data from one file (or block device) to another
USAGE: dd_rescue [options] infile outfile
Options: -s ipos start position in input file (default=0),
-S opos start position in output file (def=ipos);
-b softbs block size for copy operation (def=65536),
-B hardbs fallback block size in case of errs (def=512);
-e maxerr exit after maxerr errors (def=0=infinite);
-m maxxfer maximum amount of data to be transfered (def=0=inf);
-l logfdile name of a file to log errors and summary to (def="");
-r reverse direction copy (def=forward);
-t truncate output file (def=no);
-d/D use O_DIRECT for input/output (def=no);
-w abort on Write errors (def=no);
-a spArse file writing (def=no),
-A Always write blocks, zeroed if err (def=no);
-i interactive: ask before overwriting data (def=no);
-f force: skip some sanity checks (def=no);
-p preserve: preserve ownership / perms (def=no)
-q quiet operation,
-v verbose operation;
-V display version and exit;
-h display this help and exit.
Note: Sizes may be given in units b(=512), k(=1024), M(=1024^2) or G(1024^3)
bytes
This program is useful to rescue data in case of I/O errors, because
it does not necessarily abort or truncate the output.
==========================================================
Just install it and give it a try.
--
Regards,
Graham Smith
---------------------------------------------------------