I have a broken hard drive with many corrupted blocks. I perform rescue with
ddrescue quite successfully (I am on 99,5 %). Unfortunately:
- For some reason, sometimes but not always when
ddrescuehits badly damaged part, the disk "goes crazy" and either returns only read errors for the rest of the disk or reports unaligned read error and terminates; the computer needs to be restarted and those parts can be read again.
- First block containing partition table is broken and system startup takes about an hour when the kernel retries to read the partition table again and again.
Funny thing: I do not need to read the partition table at all, I am performing a "whole disk" rescue.
So is there a way how to tell the kernel
- not to read the partition table or
- to limit the number of retries?
System startup speedup will increase recovery speed dramatically because in this phase the system starts for an hour, then continues in recovery for several minutes and then restarts due to one of errors mentioned above (I have automated this by startup script).
dmesg output: https://cloud.oprendek.sk/index.php/s/Mk8figkaspD8xRE