If you can read them via the terminal, then it's ok.
What happens if you restart Emulationstation, after booting ? Will the games show up ?
Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first