Moode Forum
moode running from nvme - 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: moode running from nvme (/showthread.php?tid=6903)



moode running from nvme - dersucher - 09-11-2024

Hello!

Does anyone running a moode installation booting from nvme?

I copied mine with rpi-clone from sdcard to a nvme. 

The debian os boots fine and moode also but every time I start the pi5 new, the previously selected audio device is not choosen, it wants to play through hdmi.

- USB-DAC is ESI Dr. DAC nano acting as SPIDIF source for another DAC
- RPI5 with moode 9.0.8 installed on 250GB nvme with pi-hat

Today I copied back to SD card, and the issue never occurred.

I think it could be something with the speedup in booting form nvme, so the usb-audio device is prolly detected to late. Where can I set some "slowing down" wait seconds ;-)


What I not forget to say: The great work of the moode team is fantastic Big Grin


RE: moode running from nvme - Tim Curtis - 09-11-2024

Thats interesting. It could be that moode startup which includes audio detection and configuration completes too fast when booting from NVMe. IME its best to keep the boot media separate from the data drive as is typical for servers. This avoids having to reload all the data if you ever want or need to start with a fresh image.

Use top quality surveillance-grade uSD cards for example WD Purple QD101
https://www.westerndigital.com/products/memory-cards/wd-purple-microsd?sku=WDD032G1P0C
https://www.amazon.com/gp/product/B088CD4Z1Z/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&th=1

To test your "slow down" theory edit the file
/var/www/daemon/worker.php

Add the sleep(30) line just below the startup sequence comment header, save the file and then reboot.
Code:
//----------------------------------------------------------------------------//
// STARTUP SEQUENCE
//----------------------------------------------------------------------------//
sleep(30);

sysCmd('truncate ' . MOODE_LOG . ' --size 0');
$dbh = sqlConnect();
$result = sqlQuery("UPDATE cfg_system SET value='0' WHERE param='wrkready'", $dbh);
.
.
.



RE: moode running from nvme - dersucher - 09-13-2024

Tim, many thanks for the answer, I will try it and report the change in behavior.

Yes you are not wrong when keeping boot media and data separated but I use that installation also for paperless-ngx under docker so the documents processed on the sdcard does not sounding good for me and the life of the used card.

I will report!