Moode Forum
[PROBLEM] Moode Showing Multiple Tracks, & Cannot get Permission to Write to USB Disk - Printable Version

+- Moode Forum (https://moodeaudio.org/forum)
+-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3)
+--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7)
+--- Thread: [PROBLEM] Moode Showing Multiple Tracks, & Cannot get Permission to Write to USB Disk (/showthread.php?tid=6765)

Pages: 1 2


Moode Showing Multiple Tracks, & Cannot get Permission to Write to USB Disk - suffolktony - 07-30-2024

Hello folks,

Thanks to previous helpful members I finally got my RPi 5 Moode up & running, but there are a couple of problems - 

1. I've attached a USB SSD, which Moode reads OK but, for reasons unclear, although there are only single files for each rack, the Moode library is showing multiple copies of each. I've tried clearing the cache, rescanning etc., but the result is still the same.

2. Although I can see the Pi, USB drive, and music files over my Mac's network, I only have permission to read, with no option on the Mac to change this. I've ticked all the file-share options in configuration, to no avail. Disc is formatted as Mac OS Extended (Journaled), but I've tried using another HD formatted as FAT32 with the same result.

Any help would be much appreciated. I'm not good with this modern computery stuff, so please be gentle...


RE: Moode Showing Multiple Tracks, & Cannot get Permission to Write to USB Disk - Tim Curtis - 07-30-2024

1. MacOS creates annoying hidden file duplicates whenever you create, modify or access files on a drive. To fix this you need to run some commands to delete these very annoying hidden files and directories.

a. Menu, Configure, System
b. WebSSH ON
c. OPEN WebSSH terminal
d. Login using same userid and password you set in the Pi Imager
e. Paste each command below at the terminal prompt and press Enter or Return

Note the second command "sudo bash ..."  should be copy/pasted as the entire block of lines.
Code:
cd /media

sudo bash -c '
find . -name "._*" -exec rm -rf {} \;
find . -name ".Trashes" -exec rm -rf {} \;
find . -name "._.Trashes" -exec rm -rf {} \;
find . -name ".Spotlight*" -exec rm -rf {} \;
find . -name ".DS_Store" -exec rm -rf {} \;
find . -name "._.DS_Store" -exec rm -rf {} \;
find . -name ".fseventsd*" -exec rm -rf {} \;
find . -name "._.com.apple.timemachine.donotpresent" -exec rm -rf {} \;
find . -name ".com.apple.timemachine.donotpresent" -exec rm -rf {} \;
find . -name ".TemporaryItems" -exec rm -rf {} \;
find . -name "._.TemporaryItems" -exec rm -rf {} \;
find . -name "._moodecfg.txt" -exec rm -rf {} \;
find . -name "__MACOSX" -exec rm -rf {} \;'

2. Theres no support in moode for writing to native MacOS formatted disks but you should be able to write to Fat32 disks as long as the files on the disk have write permission.


RE: Moode Showing Multiple Tracks, & Cannot get Permission to Write to USB Disk - suffolktony - 07-30-2024

OK, many thanks Tim, I'll give this a try. I assume once it's done then the problem will be permanently fixed? I'll try the FAT32 disc again.


RE: Moode Showing Multiple Tracks, & Cannot get Permission to Write to USB Disk - Tim Curtis - 07-30-2024

It will be fixed until the next time you plug the disk into your Mac and access/modify/create files. Just run the command again to clean the hidden files and dirs.

Also, open Library Config and Regenerate the Music database after cleaning out the files.


RE: Moode Showing Multiple Tracks, & Cannot get Permission to Write to USB Disk - suffolktony - 07-30-2024

(07-30-2024, 12:21 PM)Tim Curtis Wrote: It will be fixed until the next time you plug the disk into your Mac and access/modify/create files. Just run the command again to clean the hidden files and dirs.

Also, open Library Config and Regenerate the Music database after cleaning out the files.

I've run the command, but although the extra music files are listed they're not deleted because each one reports "read-only file system".

So I guess I'm going to have to copy the files across to a FAT32-formatted disc first?


RE: Moode Showing Multiple Tracks, & Cannot get Permission to Write to USB Disk - Tim Curtis - 07-30-2024

Oops, right, get them on the Fat32 disk. I'm not sure how you are going to copy the files so just in case the process also copies the hidden files run the commands with just the Fat32 drive plugged in.


RE: Moode Showing Multiple Tracks, & Cannot get Permission to Write to USB Disk - HarryY - 07-30-2024

Here is something you may want to try:

Format the USB Drive then connect it to the Raspberry Pi (While the drive is still Blank)
(Note: I would suggest naming the Disk something you will recognize. IE: USB DRIVE)

Next, Using your browser connect to the Pi that is running moOde

Then Go To Config > System

Scroll down to File Sharing and enable SMB (Samba) - AKA Turn it ON

You may want to reboot at this point (helps to put it all in a known state)

Now you should be able to mount the USB Drive on the
Raspberry Pi From your PC and be able to copy files to it.

Then it's just a matter of copying the files over to the drive.

When they are done being copied run "Update Library"
and you should see them appear in the Library.

-

Then in the future, all you need to do is connect to the USB drive
to add or remove/rearrange the files then run Update Library again
-

It will depend on your network speed as to how long it will take to copy the files over.

.


RE: Moode Showing Multiple Tracks, & Cannot get Permission to Write to USB Disk - suffolktony - 07-30-2024

Many thanks again for the helpful replies folks! I'll have a fiddle around again tomorrow.


RE: Moode Showing Multiple Tracks, & Cannot get Permission to Write to USB Disk - suffolktony - 07-31-2024

I hate to give up, but...

I've copied all music files across to another, identical  USB HD, formatted as FAT32. Plugged this into the Pi but it didn't immediately want to recognise the drive. When it finally appeared, after a few reboots, it showed as USB in the main screen - Browse by Folders. But it won't show the "Music" folder within & trying all the obvious options to reset/rescan etc. makes no difference. The two discs are identical in content, just one is formatted on Mac, the other FAT32.

If I plug the Mac-formatted disc in, the drive is instantly recognised, and the folders, then it'll update as before (with all the duplicate files). Sigh...


RE: Moode Showing Multiple Tracks, & Cannot get Permission to Write to USB Disk - Tim Curtis - 07-31-2024

What make and model are the USB drives?