Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


How to create local music source on SDCard File System
#12
The single quotes that appear in the output from the ls command are there so the output can be processed safely in a script that uses the files names for example to copy them. They are not actually part of the file name.

To get rid of the super annoying MacOS dot files (resource fork files) run the commands below. Just past the whole block at the command prompt. They complete very quickly unless you have a huge number of files.

Code:
cd /mnt/SDCARD
sudo find . -name "._*" -exec rm -rf {} \;
sudo find . -name ".Trashes" -exec rm -rf {} \;
sudo find . -name "._.Trashes" -exec rm -rf {} \;
sudo find . -name ".Spotlight*" -exec rm -rf {} \;
sudo find . -name ".DS_Store" -exec rm -rf {} \;
sudo find . -name "._.DS_Store" -exec rm -rf {} \;
sudo find . -name ".fseventsd*" -exec rm -rf {} \;
sudo find . -name "._.com.apple.timemachine.donotpresent" -exec rm -rf {} \;
sudo find . -name ".com.apple.timemachine.donotpresent" -exec rm -rf {} \;
sudo find . -name ".TemporaryItems" -exec rm -rf {} \;
sudo find . -name "._.TemporaryItems" -exec rm -rf {} \;
sudo find . -name "._moodecfg.txt" -exec rm -rf {} \;
sudo find . -name "__MACOSX" -exec rm -rf {} \;
cd ~

Since you copied the files to SDCARD directory using sudo they should have permissions root:root which is ok. To troubleshoot MPD related permission problems do the following:

1. Menu, Configure Library
2. REGENERATE Music database
3. View the moode log for stats at the end


Code:
moodeutl -l

4. View the MPD log for errors

Code:
cat /var/log/mpd/log
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Messages In This Thread
RE: How to create local music source on SDCard File System - by Tim Curtis - 09-23-2023, 08:07 PM

Forum Jump: