Windows stopped copying the PDF of our community garden’s plot map from my flash drive to the laptop we use at sign-in. The watering schedule copied over fine. The map is still on my home computer, so I don’t need to recover it from the drive.
Is it worth using a dedicated program to check the flash drive for bad sectors, or would the built-in Windows disk check tell me just as much?
If just the map did not transfer, then you can try transferring the PDF from the USB stick to your home machine (make sure to give it a different name so as not to overwrite) and see if this works. If this also fails, then the problem is unlikely to be with the login machine. Just because the watering schedule transferred does not indicate that the file was readable by windows.
Save anything else you need from the stick before running a repair. A plain chkdsk X: checks the file system, while chkdsk X: /r checks for unreadable areas and attempts repairs. Run it from an administrator Command Prompt and replace X: with the stick’s actual drive letter. The second check takes longer, but it’s the built-in option that answers your bad-sector question.
What some dedicated USB flash drive repair tools offer, as the flash drive repair guide explains, is a different test: they can write data and read it back to verify the stick really holds as much as it claims. I wouldn’t bother with that for a single failed copy. If the stick gives you read errors on both computers, I’d use another one for sign-in even if Windows later reports a clean scan.
If there is insufficient storage space, this is not necessarily indicated by this error. If the PDF is larger than the watering chart, it may be that there was sufficient storage for the watering chart but not for the map. However, first check how much free storage space is available on the laptop.
If the error message indicates that the source file can not be read, you can use some ‘repair’ tools on the USB Flash Drive to indicate the unreadable sections. If the error occurs because there is insufficient storage space on your destination device, then you do not need to run this tool.
Try to copy the PDF from the stick to another folder on the home machine. Do not attempt any USB flash disk repair tools. If you are unable to do this then it is unlikely to be an issue with the sign in machine.
Even if you have some corruption in the PDF itself, you can still get through this stage. The bad sector test just checks that the file can be read. It does not know what your plot map should be so do not bother with this specific test for now.
The suggestion to try the stick on your home computer makes sense. If the copy works there, you’ve got a useful check that the scanner can’t do: compare that copy with the original. Windows has a PowerShell command called Get-FileHash for that. Run it on each PDF, for example Get-FileHash 'C:\Maps\plot-map.pdf', using the actual path to each file. Matching hashes mean the contents match, even if you gave the copy a different name. That tells you something about the map, not about the rest of the stick.
To log in: copy the file across via email to your laptop. Place in the login folder. Unplug the stick and open the map from the login folder (it’s a good idea to do this before people arrive). If you accidentally open the version from the stick, you might get confused into thinking that everything is fine on your laptop.
Just because the scan has failed does not mean that there are bad sectors on the stick. If it disappears from File Explorer, Windows will be unable to complete the scan on a drive that is no longer plugged in. For now, try checking the connection instead of using the specific testing tool.
Re-open This PC and attempt to map again. If the transfer stops, note what the error says. It is helpful to know whether only the PDF has failed to transfer, or if the drive itself disappeared (even if it appears to come back shortly after).
If the drive disappeared, attempt to transfer the PDF using a different USB port on the login computer. If the USB stick was previously being used in a hub, try connecting it directly to the computer. Ensure that you are trying to transfer the same PDF to the same location.
If it transfers successfully in this port, you cannot confirm that the stick is working correctly, but you have reason to investigate the original port/hub. If the drive can be seen in both USB ports, and the same error appears, then try running the test on your computer at home. In neither case would I run an external scanning tool as a first option.
Try just opening up the PDF document from the USB stick on the home computer. If you can open it without problems then the issue is not due to faulty sectors on the USB stick. Try checking the laptop and port instead.
Copy the map from the stick to this new folder on the sign-on machine. If there was previously a map in the sign-on folder, do not replace it. This means the new file will be created.
If there is already a PDF with the same file name, it may be open in the viewer. If the schedule was copied successfully (as it has a different filename) then it may be unnecessary to worry. However, if you get an error saying the map is in use, close the copy on the sign-on machine and try again. Don’t do anything to the stick yet.
I disagree with considering that if a PDF can be opened in the viewer, the stick is working. It may not have been fully read. If the file was successfully copied into this new folder, we can be sure that Windows was able to read the entire file from the stick and write it to the laptop. While this does not prove the drive is working perfectly, if you still get errors when trying to copy to the sign-on folder, it may be worth investigating differences between the two destinations.
Skipping the specific check
By performing this check you are simply changing the destination of the copy, and it takes approximately the same amount of time as a regular copy. This check can also identify problems with the stick which would be impossible to find with a general scan.