I am having ext3
filesystem, and recent Linux distribution.
I need to copy (read) a file(s) over to a new destination.
Unfortunately cp
/ mv
or MC (Midnight Commander) stop / fail at certain point within the file(s).
Some files stops rather early, 30%, others stop at 98% with a sector error being shown in the system log.
mv
/ cp
but also MC can not continue to copy the file simply skipping over this (and other) sectors that give I/O read errors. Inside MC I did try retry several times, but to no avail.
The files could be useful to me, and just because some single or few sectors wouldn't be readable on the current disk any more, I would like to continue to read the rest and other healthy parts of the files.
Any good tools or proven mechanism to read a file to the biggest extent possible? The first I/O read error always ends this game for me.
There is probably some way or even a handy tool that can read files more robustly, and just fill the unreadable sector with some placeholder bytes or similar.
Can Linux with a mounted ext3
filesystem not achieve this goal?
Does Linux as a kernel offer some way to read beyond sector errors, and skip to the next sector of the file and so forth?
The system log shows always the same sector (per file) to cause the I/O read error, just to make this clear, and I guess there would be plenty of more sectors and healthy parts to read from these files.