Thank you for your donation!


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


Problem: RPi 5 + RPi M.2 HAT+ + IQAudio DigiAMP
#11
I would try:

1. Examine the MPD log for errors
cat /var/log/mpd/log

2. Ensure that the files and directories on the NVMe drive have the correct permissions. MPD needs read access to the files and read+execute access to all containing directories.

The permission mask breakdown is as follows:

Directory: d rwx r-x r-x
type:directory, user:read+write+execute, group=read+execute world=read+execute

File: - rw- r-- r--
type:- (file)user:read+write, group=read, world=read

Here is an example. Files and directories are owned by user:group = root:root

Code:
pi@trx:~ $ ls -l /mnt/NVME/Music/FLAC/Solvent
total 4
drwxr-xr-x 2 root root 4096 Jul 25  2024 'Elevators & Oscillators'

pi@trx:~ $ ls -l "/mnt/NVME/Music/FLAC/Solvent/Elevators & Oscillators"
total 329856
-rw-r--r-- 1 root root 23989244 Jul 25  2024 '01 Wish.flac'
-rw-r--r-- 1 root root 31997793 Jul 25  2024 '02 My Radio (The Mitgang Audio Remix.flac'
-rw-r--r-- 1 root root 27936287 Jul 25  2024 '03 For You (Lowfish Remix).flac'
-rw-r--r-- 1 root root 10812795 Jul 25  2024 '04 Radio Goo Goo.flac'
-rw-r--r-- 1 root root 23290560 Jul 25  2024 '05 My Radio (Legowelt Remake).flac'
-rw-r--r-- 1 root root 45591414 Jul 25  2024 '06 Think Like Us (Alter Ego Remix).flac'
-rw-r--r-- 1 root root 10435467 Jul 25  2024 '07 Interlude.flac'
-rw-r--r-- 1 root root 23486874 Jul 25  2024 '08 Devices and Strategies.flac'
-rw-r--r-- 1 root root 29171186 Jul 25  2024 '09 For You (ISAN Remix).flac'
-rw-r--r-- 1 root root 16742404 Jul 25  2024 '10 Apples and Oranges.flac'
-rw-r--r-- 1 root root 34109595 Jul 25  2024 '11 My Radio (Schneider TM Mustang Re.flac'
-rw-r--r-- 1 root root 26681498 Jul 25  2024 '12 For You (JDSY Remix).flac'
-rw-r--r-- 1 root root 33501576 Jul 25  2024 '13 Elevators and Oscillators.flac'
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#12
To me it looks like all those filenames with apostrophes are making MPD's life harder than needed.
I'd rename them, either removing the apostrophe at all\, or substituting it with an underscore. The Artist, album and track name are in the metadata, and that's what MPD uses; so the filename could actually just be a.flac...
Reply
#13
(04-20-2025, 08:11 PM)Nutul Wrote: To me it looks like all those filenames with apostrophes are making MPD's life harder than needed.
I'd rename them, either removing the apostrophe at all\, or substituting it with an underscore. The Artist, album and track name are in the metadata, and that's what MPD uses; so the filename could actually just be a.flac...

Do you mean in the output of ls ??

They are not actually part of the filename but ls adds the quotes of the output can be safely piped.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#14
(04-20-2025, 11:38 AM)Tim Curtis Wrote: I would try:

1. Examine the MPD log for errors
cat /var/log/mpd/log

2. Ensure that the files and directories on the NVMe drive have the correct permissions. MPD needs read access to the files and read+execute access to all containing directories.

The permission mask breakdown is as follows:

Directory: d rwx r-x r-x
type:directory, user:read+write+execute, group=read+execute world=read+execute

File: - rw- r-- r--
type:- (file)user:read+write, group=read, world=read

Here is an example. Files and directories are owned by user:group = root:root

Code:
pi@trx:~ $ ls -l /mnt/NVME/Music/FLAC/Solvent
total 4
drwxr-xr-x 2 root root 4096 Jul 25  2024 'Elevators & Oscillators'

pi@trx:~ $ ls -l "/mnt/NVME/Music/FLAC/Solvent/Elevators & Oscillators"
total 329856
-rw-r--r-- 1 root root 23989244 Jul 25  2024 '01 Wish.flac'
-rw-r--r-- 1 root root 31997793 Jul 25  2024 '02 My Radio (The Mitgang Audio Remix.flac'
-rw-r--r-- 1 root root 27936287 Jul 25  2024 '03 For You (Lowfish Remix).flac'
-rw-r--r-- 1 root root 10812795 Jul 25  2024 '04 Radio Goo Goo.flac'
-rw-r--r-- 1 root root 23290560 Jul 25  2024 '05 My Radio (Legowelt Remake).flac'
-rw-r--r-- 1 root root 45591414 Jul 25  2024 '06 Think Like Us (Alter Ego Remix).flac'
-rw-r--r-- 1 root root 10435467 Jul 25  2024 '07 Interlude.flac'
-rw-r--r-- 1 root root 23486874 Jul 25  2024 '08 Devices and Strategies.flac'
-rw-r--r-- 1 root root 29171186 Jul 25  2024 '09 For You (ISAN Remix).flac'
-rw-r--r-- 1 root root 16742404 Jul 25  2024 '10 Apples and Oranges.flac'
-rw-r--r-- 1 root root 34109595 Jul 25  2024 '11 My Radio (Schneider TM Mustang Re.flac'
-rw-r--r-- 1 root root 26681498 Jul 25  2024 '12 For You (JDSY Remix).flac'
-rw-r--r-- 1 root root 33501576 Jul 25  2024 '13 Elevators and Oscillators.flac'

(04-20-2025, 08:11 PM)Nutul Wrote: To me it looks like all those filenames with apostrophes are making MPD's life harder than needed.
I'd rename them, either removing the apostrophe at all\, or substituting it with an underscore. The Artist, album and track name are in the metadata, and that's what MPD uses; so the filename could actually just be a.flac...

Renaming is not alwys that easy, as you may have titles which are French, and contain those special characters. Last night I was struggling with playlists. Some of my playlists refused to be edited in moOde. They were also ignored by MPD. Some had to to with apostrophes, others with characters like è or é in the filename. Trick was here to open it (on Win) in NPP++ and save the playlist file as a UNIX UTF8 file.
Reply
#15
(04-20-2025, 08:40 PM)Tim Curtis Wrote:
(04-20-2025, 08:11 PM)Nutul Wrote: To me it looks like all those filenames with apostrophes are making MPD's life harder than needed.
I'd rename them, either removing the apostrophe at all\, or substituting it with an underscore. The Artist, album and track name are in the metadata, and that's what MPD uses; so the filename could actually just be a.flac...

Do you mean in the output of ls ??

They are not actually part of the filename but ls adds the quotes of the output can be safely piped.

No, I mean the apostrophes in the errors in the log.
Reply
#16
(04-20-2025, 08:48 PM)ils1974 Wrote: Renaming is not alwys that easy, as you may have titles which are French, and contain those special characters. Last night I was struggling with playlists. Some of my playlists refused to be edited in moOde. They were also ignored by MPD. Some had to to with apostrophes, others with characters like è or é in the filename. Trick was here to open it (on Win) in NPP++ and save the playlist file as a UNIX UTF8 file.

As long as the correct characters are in the metadata tags, the filename can be plain ASCII, with all "special" letters just being replaced by their "plain" ones. This I meant. Then, of course, the contents of the playlist file will reflect such changes.
Anyway I do not think that MPD complains about - for example - French accented letters, provided the text in the playlist and the actual filename are the same in terms of encoding... But a single quote, like in Runnin' (final g elided...) can make the text an incomplete string for a not-so-acute parser...
Reply
#17
(04-20-2025, 09:16 PM)Nutul Wrote:
(04-20-2025, 08:40 PM)Tim Curtis Wrote:
(04-20-2025, 08:11 PM)Nutul Wrote: To me it looks like all those filenames with apostrophes are making MPD's life harder than needed.
I'd rename them, either removing the apostrophe at all\, or substituting it with an underscore. The Artist, album and track name are in the metadata, and that's what MPD uses; so the filename could actually just be a.flac...

Do you mean in the output of ls ??

They are not actually part of the filename but ls adds the quotes of the output can be safely piped.

No, I mean the apostrophes in the errors in the log.

Should be no prob for MPD

I have many tracks with trailing single quote (apostrophe)

Example
Code:
NAS/TRX-FLAC/The Mamas & The Papas/16 Greatest Hits/04 California Dreamin'.flac
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#18
(04-20-2025, 10:38 PM)Tim Curtis Wrote:
(04-20-2025, 09:16 PM)Nutul Wrote:
(04-20-2025, 08:40 PM)Tim Curtis Wrote:
(04-20-2025, 08:11 PM)Nutul Wrote: To me it looks like all those filenames with apostrophes are making MPD's life harder than needed.
I'd rename them, either removing the apostrophe at all\, or substituting it with an underscore. The Artist, album and track name are in the metadata, and that's what MPD uses; so the filename could actually just be a.flac...

Do you mean in the output of ls ??

They are not actually part of the filename but ls adds the quotes of the output can be safely piped.

No, I mean the apostrophes in the errors in the log.

Should be no prob for MPD

I have many tracks with trailing single quote (apostrophe)

Example
Code:
NAS/TRX-FLAC/The Mamas & The Papas/16 Greatest Hits/04 California Dreamin'.flac

Hello!

Back to the topic.
I bought a PIMORONI NVMe Base Duo for Raspberry Pi 5, 2x M-Key Slot, PCIe Gen 2 Switch, have inserted two 2 TB 2280 NVMe, want to use them for storing music and movies.
The problem is present furthermore.
I have used the FORMAT button in the library section to format one after another. Almost 30 GB in total are shown on both NVMe, when I take them out and put them in an USB device and connect it to Ubuntu, 2 TB in total are shown, strangely are 6.1 GB used after I wrote a folder over network onto both of the NVMe. I do not have access rights to the NVMe, can't write data on it when its placed in the USB device and connected to the PC.
When I try to write more data onto the NVME via network it is limited to 30 GB in total.
It's a strange behaviour, and it leaves me frustrated as it seems I have to flash one of the NVMe with MOODE to make it writable in total.
What is the reason for this behaviour of MOODE?

Thanks, Steve
Reply
#19
This post explains whats happening
https://moodeaudio.org/forum/showthread....9#pid63329
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#20
Hello Tim!

Sorry, I didn't update the page.
I have resigned myself to flashing the NVMe directly, now both NVMe with 2 TB are recognized.
However, writing to the NVMe now runs over the network and at just under 40 MB/s it is much slower than if I could connect the NVMe to the PC in a USB enclosure.
I would have liked to continue using the SD card. But what is the problem that if the image is on the SD card, the NVMe cannot be read correctly?

Best regards, Steve
Reply


Forum Jump: