Note It seems I forgot to mention that this only happens after a reboot. After loading, it does not matter if I run the command 5 minutes after loading or 3 days after loading. But as soon as find starts, it will always find it (even after 5 minutes or 3 days).
I have a Raspberry Pi 3 running Linux 4.9.17-v7 +. I donβt know why this is happening, but every time I log in and try to find a known png file, the prompt returns as if there was no result. Knowing that the file exists, I run the same command again (up arrow key) and it returns with the correct results.
How can I get 2 different results (or inconsistent results) with the find command? Could there be a package that I am missing?
Proof of file existence:
me@here :~ $ ls -la /opt/retropie/supplementary/splashscreen/retropie-default.png -rw-r--r-- 1 root root 1168926 Mar 30 19:51 ls -la /opt/retropie/supplementary/splashscreen/retropie-default.png
But when I run the find command, the prompt returns without any results or errors:
me@here :~ $ sudo find / -name *default.png me@here :~ $
If I run the find command again, I get the following results:
me@here :~ $ sudo find / -name *default.png /opt/retropie/supplementary/splashscreen/retropie-default.png me@here :~ $
What am I doing wrong? Am I missing a package? Did the program get corrupted? When I search for something and I have no results, how do I know if it exists or not? Please help me!
UPDATE 1: Comment.
Running a command with the -name argument:
me@here :~ $ sudo find / -name '*default.png' me@here :~ $ sudo find / -name '*default.png' /opt/retropie/supplementary/splashscreen/retropie-default.png me@here :~ $
UPDATE 2: Having taken the SD card to another computer, install it and search for sudo find /mnt/flash -name '*default.png' again to get the correct results. Thus, it should be either the OS, or perhaps a hardware problem.
UPDATE 3: I downloaded the new OS on the Raspberry Pi 3 and took the offensive "SD card / OS" and installed it on the Raspberry Pi 3. This should have happened if it could be a hardware error. sudo find /mnt/flash -name '*default.png' yielded the correct results. So it should be the OS.
I originally took RetroPie v4.2, stopped it from starting automatically. He grabbed my entertainment software and compiled it. Install it to start at boot with lirc. An option in entertainment software is to start Emulationstation (the command you comment to stop automatic control of the emulation software at boot). Everything works. Therefore, I do not know what could cause this problem.
As far as I know, the / opt directory in which the file is located is no different from the others.
UPDATE 4: Well, before looking for '* default.png', I did sudo find / -name 'hostname' and it came back with the correct results. Then I ran sudo find / -name '*default' and found it. Therefore, only the first find may fail. Subsequent all seem to work.
UPDATE 5: I managed to find another OS where the first find does not always work. I have another raspberry Pi 1 Model B that runs Arch Linux 4.1.7-2-ARCH. It does not contain the png that I was looking for, but I was still looking for it.
me@there :~ $ sudo find / -name '*default.png' me@there :~ $ sudo find / -name '*default.png' /usr/share/icons/Adwaita/256x256/status/avatar-default.png /usr/share/icons/Adwaita/8x8/emblems/emblem-default.png /usr/share/icons/Adwaita/16x16/emblems/emblem-default.png /usr/share/icons/Adwaita/16x16/status/avatar-default.png /usr/share/icons/Adwaita/22x22/emblems/emblem-default.png /usr/share/icons/Adwaita/22x22/status/avatar-default.png /usr/share/icons/Adwaita/32x32/emblems/emblem-default.png /usr/share/icons/Adwaita/32x32/status/avatar-default.png /usr/share/icons/Adwaita/48x48/emblems/emblem-default.png /usr/share/icons/Adwaita/48x48/status/avatar-default.png /usr/share/icons/Adwaita/24x24/emblems/emblem-default.png /usr/share/icons/Adwaita/24x24/status/avatar-default.png /usr/share/gtk-doc/html/gtk3/window-default.png me@there :~ $
So 2 different OS and 2 different Raspberry Pi have the same problem. I tested this on my Banana Pi, and the result was right the first time.
UPDATE 6: Ok, updates to some comments. Yes, the retropie-default.png file is in the root directory, and there are no autofs / unionfs files anywhere in the system.
sudo find /opt/retropie/supplementary/splashscreen/ -name '*default.png' does not behave the same and gives the correct results.
Running sudo date twice produces the correct results.
Please read the note at the beginning of this post, as I forgot one important point.
Today I will use strace.
UPDATE 7: Listing the directory before the find still gives the same results.
me@here :~ $ ls /opt/retropie/supplementary/splashscreen/ LICENSE retropie-2015-carbon-video.mp4 README.md retropie-2015.png retropie-2013.png retropie-default-16x10.png retropie-2014.png retropie-default-4x3.png retropie-2015-4x3.png retropie-default.png retropie-2015-carbon-video-4x3.mp4 me@here :~ $ sudo find / -name '*2013.png' me@here :~ $ sudo find / -name '*2013.png' /opt/retropie/supplementary/splashscreen/retropie-2013.png me@here :~ $
UPDATE 8: sudo strace -o log1 find / -name '*default.png' and then sudo strace -o log2 find / -name '*default.png' These log files are huge. What am I looking for in it? Running cat logn | grep 'x' where x is' warning, Warning, WARNING, error, Error, ERROR. What else should I check? The difference in log file sizes is log1 = 9.9M and log2 = 13 M
At the end of both log files, I noticed that there is another command in log2. munmap(0x76f31000, 4096) not in log1. Maybe this is a failure?