adrianlopezroche / fdupes

FDUPES is a program for identifying or deleting duplicate files residing within specified directories.
2.48k stars 186 forks source link

strange behaviour #93

Open patatetom opened 7 years ago

patatetom commented 7 years ago

hi,

I was trying to compare the speed of execution of different tools - duff, jdupes and fdupes - and it appeared to me that fdupes missed many files, but in a strange way... after some research, here is what I found :

# chs_boot.ttf is one of the files not found
# used like this, fdupes finds them :-)
fdupes -rHnq /investigation/sdb2/Windows/Boot/Fonts/ /investigation/sdb2/Windows/winsxs/amd64_microsoft-windows-b..core-fonts-chs-boot_31bf3856ad364e35_6.1.7600.16385_none_30d8afa629263809/
/investigation/sdb2/Windows/Boot/Fonts/chs_boot.ttf
/investigation/sdb2/Windows/winsxs/amd64_microsoft-windows-b..core-fonts-chs-boot_31bf3856ad364e35_6.1.7600.16385_none_30d8afa629263809/chs_boot.ttf
# used like this, fdupes finds them and remove the first file :-)
fdupes -rHnqf /investigation/sdb2/Windows/Boot/Fonts/ /investigation/sdb2/Windows/winsxs/amd64_microsoft-windows-b..core-fonts-chs-boot_31bf3856ad364e35_6.1.7600.16385_none_30d8afa629263809/
/investigation/sdb2/Windows/winsxs/amd64_microsoft-windows-b..core-fonts-chs-boot_31bf3856ad364e35_6.1.7600.16385_none_30d8afa629263809/chs_boot.ttf
# used like this, everything still works normally :-)
fdupes -rHnqf /investigation/sdb2/Windows/Boot/Fonts/ /investigation/sdb2/Windows/winsxs/amd64_microsoft-windows-b..core-fonts-chs-boot_31bf3856ad364e35_6.1.7600.16385_none_30d8afa629263809/ | grep /chs_boot.ttf
/investigation/sdb2/Windows/winsxs/amd64_microsoft-windows-b..core-fonts-chs-boot_31bf3856ad364e35_6.1.7600.16385_none_30d8afa629263809/chs_boot.ttf
# but if I run fdupes with the only root path /investigation/
fdupes -rHnqf /investigation/ | grep /chs_boot.ttf
# the file is not found :-(

/dev/sdb is a disk hosting a windows seven whose two partitions are mounted read-only under archlinux with ntfs-3g in subfolders /investigation/sdb1/ and /investigation/sdb2/. note that fdupes version is 1.6.1 and that the other two tools produce exactly the same number of duplicate files (51328 against 22211 for fdupes).

regards.