This might be an article for advanced Mac users.
I had trouble playing music in my car navigation system because of the hidden files were unexpectedly copied to the SD card via Finder.
- “hidden file” in SD card irritates me when I listen to the music via my car navigation system.
- What the heck is dot begin hidden file?
- You may delete Mac Catalog file
“hidden file” in SD card irritates me when I listen to the music via my car navigation system.
I copied some files from iTunes to an SD card, just like usual. Copy and paste on Finder. After I copied some songs, I entered my car, insert the SD card and push the Play button to make sure my car navigation system was able to play copied songs.
Soon after that, I noticed a bad thing was happening.
The bad thing was, playing music stopped every time after Navi finished playing one song. My car Navi dialog said, “This file is not valid for play. Confirm [OK].” The dialog prompt disturbs my comfortable listening to music life in the car.
The behind scene of the trouble was because of some hidden files that begin with a dot.
What the heck is dot begin hidden file?
Dot begin hidden file is system file for Mac、Linux、UNIX
As with the Mac, in UNIX and Linux files that start with a dot are system-related files.
It’s not a problem as long as the Navi does not do anything wrong.
However, in reality, the song stops, a dialog appears. Navi asks me to push “OK” button even while I drive.
Yup, this is a problem and it is extremely unpleasant.
Navi OS should have ignored the system-related files, even if a file starting with this dot exists on the SD card.
Dot begin hidden file is a catalog file.
What is the hidden file? Can we delete the file?
Yup, you can delete it. the file is called the “catalog file.” Mac uses the catalog file for additional info of the main file. For example, Mac creates ._abc.dat file when you create abc.dat. So car Navi won’t use the catalog file, so none of his business.
You may delete Mac Catalog file
Now we found out that the mysterious dot file is a catalog file for Mac and we can delete it.
Delete .file by manual is a hard job to do, so I’m going to introduce how to delete by Mac Terminal. You can delete it by command.
Command for delete Mac catalog files in bulk
Open up Mac Terminal App, move SD card directory. the command is cd.
cd /Volumes/(Name of SD Card)
Check file list (include hidden file.)
There you go! you can see some hidden files.
Now we confirm, Music files (.m4a) and Catalog files are mixed. Navi needs red highlighted file(.m4a) only.
I found a guy involved same situation. The person intorduced a command, so I borrow this 🙂 Thanks!.
find . -name "._*" | while read file do rm -f "$file" done
Run the commands, and ls -la again. Ugly hidden file banished!
Now I don’t have to have a headache during driving with Navi’s insistent prompt.