I have here a partition that has a few I/O errors. I am just copying what's possible to another drive but now I want to know the files it could not read because of the I/O error so that I can restore these exact files from another source.
How can I scan the disk for files that have this error in bash?
The filesystem is NTFS and I am currently using cp to copy the files over (to a zfs disk but that doesn't matter). It takes more than a day already because it are more than 300GB and once in a while it stumbles on I/O errors and skips individual files.
The files are part of components for a DAW and single MIDI files or WAV samples are not readable. For the project files that made it through I want to reinstall the specific sample-packs from another backup but since this is really a lot, I don't want to reinstall everything or test all project files and sub folders, that might have missing or corrupt files, and waste another day or more. So knowing the path to the files that had I/O-errors, might save me some time just re-installing the few packs that got corrupted.