File content check

Get help for specific problems
Posts: 3
Joined: 30 Jun 2021

david47

I'm not sure what exactly file content check means in "Compare" options, does it mean file integrity and checksum checking?
I'm asking this because I sometimes get corrupt files on my usb when copying with windows. I wonder if this program can do such errors detection either if I use "Synchronize" or "Compare" functions and also within rar password protected archives?!
Thanks.
Posts: 1202
Joined: 8 May 2006

therube

"2. Compare by File content
Two files are marked as equal if they have identical content. This variant should be selected when doing consistency checks to see if the files on both sides are bit-wise identical."
https://freefilesync.org/manual.php?topic=comparison-settings
I sometimes get corrupt files on my usb when copying with windows.
What makes you aware that that has occurred?
(It shouldn't be occurring, & that it does would seem to indicate that there is something wrong somewhere along the line - be it the usb drive itself (incl. cabling or port) or something funky with Windows copy.)
within rar password protected archives
The rar archive file itself would be checked, not the validity of its contents (which should be checked by rar, I would think).

I would think you could script something fairly easily to check the validity of your rar files.

pseudo-code:
for i in *.rar
do
rar t %i%
if errorlevel .ne. 0 echo %errorlevel% %1% Bad RAR >> Bad_RAR_FILES.TXT
done
User avatar
Posts: 4867
Joined: 11 Jun 2019

xCSxXenon

That option does not verify data the way you are thinking. You need to set a flag in the xml file that holds the settings for FFS.
https://freefilesync.org/manual.php?topic=expert-settings
Posts: 3
Joined: 30 Jun 2021

david47

I sometimes get corrupt files on my usb when copying with windows.
What makes you aware that that has occurred?
(It shouldn't be occurring, & that it does would seem to indicate that there is something wrong somewhere along the line - be it the usb drive itself (incl. cabling or port) or something funky with Windows copy.)
therube, 30 Jun 2021, 15:39
When extracting files from usb drive winrar says some files are corrupt. I don't know why this occurs, maybe because I left the usb flash drive formatted with fat32.
User avatar
Posts: 4867
Joined: 11 Jun 2019

xCSxXenon

What if you extract with 7zip? I've had archives say that and it was nothing to do with what they were stored on, but something with the process of compressing them
Posts: 3
Joined: 30 Jun 2021

david47

What if you extract with 7zip? I've had archives say that and it was nothing to do with what they were stored on, but something with the process of compressing them xCSxXenon, 30 Jun 2021, 16:54
Tried with 7zip too, files are corrupt.
If I change FFS settings and enable verify, then Synchronize, I still have no guarantee that copied files wouldn't have hidden errors, right?
User avatar
Posts: 4867
Joined: 11 Jun 2019

xCSxXenon

Anything previously synced will not be checked. You will need to wipe the target and sync again to verify everything. I think that is what you mean. Remember, if a source file gets corrupted, the target will verify still