I have a hard drive, which, as I recently discovered, has a surface problem: one of the sectors can't be read. When I'm copying file "file-name" from the bad area at e:\source\ to f:\target\, Total Commander v8.52 shows the following error dialog:
Title: Total Commander
Text: Error: Cannot write f:\target\file-name!
Please remove the write protection!
Buttons: Skip Retry Abort
If, however, I try to view the file past a certain point with the Lister, I see the following message:
Title: Disk read error!
Text: e:\source\file-name
Buttons: OK Cancel
I would expect that while copying a file from a bad sector I would see a read error, rather than a write error. In fact, there is no problem with the writing (certainly no write protection or access restrictions) as any other file can be copied to f:\target\ with no issues.
PS: All paths involved are traditional HDDs, not network shares, SSDs or floppies or whatever.
8.52 Wrong Error Message On Disk Read Error
Moderators: Hacker, petermad, Stefan2, white
- ghisler(Author)
- Site Admin
- Posts: 50550
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
This can happen when you use the default copy method, which uses the Windows function CopyFileEx(). The function may return the same error for reading and writing in some specific cases. When this happens, TC tries whether it can open the source, and if it works, TC shows a write error. Unfortunately this doesn't cover the special case where there is a read error in the MIDDLE of the file. This cannot be detected when using CopyFileEx.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com