Thank you for your donation!


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


Solved: External SSD & frequently losing music database
#1
Was wondering if there’s any documented issues with using external usb ExFat formatted SSDs with Raspberry Pi 3 B+ and Moode? My system is quite minimalist, with the Pi 3 B+, the official touchscreen, and the external Crucial MX500 1TB drive in an Orico usb caddy. This is connected via usb to a Chord Hugo TT2 dac.

Increasingly, I’ll start up Moode (latest public release version, no betas) and it’ll just show the Left/Right Stereo test track, and nothing else. Sometimes I click on the Regenerate MPD button and it’ll be fine for a few days again. This morning I started up Moode and again it displayed no music at all. This time using the Regenerate MPD didn’t work at all. In the meantime I’ve put back the standard (non SSD) HD backup and it’s working fine.

Has anybody else had issues with SSDs and random problems using Moode? It’s a bit of a head scratcher, and rather frustrating.

Cheers, John.
Reply
#2
I've update to latest release from version 4.4 today.
EDIT 1: I fixed the issue by unmount, then unplug and plug in the USB cable while Moode is running. :Smile  

Now I cannot read my external HDD. 
( in version 4.4, I have some issue with scanning database only (some folder not found in the UI), but after some rescanned, so far so good).

Code:
pi@moode:~ $ sudo ls /media/500G/
ls: reading directory '/media/500G/': Input/output error

I'm connecting 1 HDD (3.5in) 500GB, 1 SSD 120GB now. (both are using Orico box)




Code:
Disk /dev/sda: 111.8 GiB, 120034123776 bytes, 234441648 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x1c1b6738

Device     Boot   Start       End   Sectors  Size Id Type
/dev/sda1  *       2048   7958527   7956480  3.8G 27 Hidden NTFS WinRE
/dev/sda2       7958528 234436607 226478080  108G  7 HPFS/NTFS/exFAT


Disk /dev/sdb: 465.7 GiB, 500000514048 bytes, 976563504 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xdaddfc77

Device     Boot Start       End   Sectors   Size Id Type
/dev/sdb1        2048 976560127 976558080 465.7G  7 HPFS/NTFS/exFAT



Code:
May  4 10:08:12 moode kernel: [    5.485497] bcm2835-codec bcm2835-codec: Device registered as /dev/video12
May  4 10:08:12 moode kernel: [    5.485511] bcm2835-codec bcm2835-codec: Loaded V4L2 isp
May  4 10:08:12 moode kernel: [    5.485875] snd-rpi-hifiberry-dacplus soc:sound: ASoC: CODEC DAI pcm512x-hifi not registered - will retry
May  4 10:08:12 moode kernel: [    5.536034] pcm512x 1-004d: Linked as a consumer to regulator.2
May  4 10:08:12 moode kernel: [    5.550868] sd 0:0:0:0: Attached scsi generic sg0 type 0
May  4 10:08:12 moode kernel: [    5.693778] snd-rpi-hifiberry-dacplus soc:sound: pcm512x-hifi <-> 3f203000.i2s mapping ok
May  4 10:08:12 moode kernel: [    6.824336] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
May  4 10:08:12 moode kernel: [    6.824357] brcmfmac: power management disabled
May  4 10:08:12 moode kernel: [    6.826336] random: crng init done
May  4 10:08:12 moode kernel: [    6.826343] random: 7 urandom warning(s) missed due to ratelimiting
May  4 10:08:13 moode kernel: [    7.173138] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
May  4 10:08:13 moode kernel: [    7.173330] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
May  4 10:08:14 moode kernel: [    8.135207] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
May  4 10:08:17 moode kernel: [   10.981977] usb 1-1.3: new high-speed USB device number 5 using dwc_otg
May  4 10:08:17 moode kernel: [   11.192952] usb 1-1.3: New USB device found, idVendor=0080, idProduct=a001, bcdDevice= 1.04
May  4 10:08:17 moode kernel: [   11.192965] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
May  4 10:08:17 moode kernel: [   11.192974] usb 1-1.3: Product: External USB 3.0
May  4 10:08:17 moode kernel: [   11.192983] usb 1-1.3: Manufacturer: TOSHIBA
May  4 10:08:17 moode kernel: [   11.192992] usb 1-1.3: SerialNumber: 2015033100081
May  4 10:08:17 moode kernel: [   11.193774] usb 1-1.3: The driver for the USB controller dwc_otg_hcd does not support scatter-gather which is
May  4 10:08:17 moode kernel: [   11.193785] usb 1-1.3: required by the UAS driver. Please try an other USB controller if you wish to use UAS.
May  4 10:08:17 moode kernel: [   11.193796] usb-storage 1-1.3:1.0: USB Mass Storage device detected
May  4 10:08:17 moode kernel: [   11.199155] scsi host1: usb-storage 1-1.3:1.0
May  4 10:08:17 moode mtp-probe: checking bus 1, device 5: "/sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3"
May  4 10:08:17 moode mtp-probe: bus: 1, device: 5 was not an MTP device
May  4 10:08:18 moode kernel: [   12.232643] scsi 1:0:0:0: Direct-Access     TO External USB 3.0      0104 PQ: 0 ANSI: 6
May  4 10:08:18 moode kernel: [   12.233553] sd 1:0:0:0: Attached scsi generic sg1 type 0
May  4 10:08:18 moode kernel: [   12.239209] sd 1:0:0:0: [sdb] 976563504 512-byte logical blocks: (500 GB/466 GiB)
May  4 10:08:18 moode kernel: [   12.239686] sd 1:0:0:0: [sdb] Write Protect is off
May  4 10:08:18 moode kernel: [   12.240697] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
May  4 10:08:18 moode kernel: [   12.256533]  sdb: sdb1
May  4 10:08:18 moode kernel: [   12.259267] sd 1:0:0:0: [sdb] Attached SCSI disk
May  4 10:08:22 moode kernel: [   15.915128] fuse init (API version 7.27)

Restart 2 times does not help. Anyone know the solution for this issue?
Thanks.



My system information is below:
Release Information
Platform Information

  • Raspbian ver: 9.6

  • Linux kernel: 4.19.34-v7+, armv7l

  • Hdwr revision: Pi-3B 1GB v1.2

  • MPD version: 0.20.20
Reply
#3
(04-06-2019, 11:37 AM)JohnM73 Wrote: Was wondering if there’s any documented issues with using external usb ExFat formatted SSDs with Raspberry Pi 3 B+ and Moode? My system is quite minimalist, with the Pi 3 B+, the official touchscreen, and the external Crucial MX500 1TB drive in an Orico usb caddy. This is connected via usb to a Chord Hugo TT2 dac.

Increasingly, I’ll start up Moode (latest public release version, no betas) and it’ll just show the Left/Right Stereo test track, and nothing else. Sometimes I click on the Regenerate MPD button and it’ll be fine for a few days again. This morning I started up Moode and again it displayed no music at all. This time using the Regenerate MPD didn’t work at all. In the meantime I’ve put back the standard (non SSD) HD backup and it’s working fine.

Has anybody else had issues with SSDs and random problems using Moode? It’s a bit of a head scratcher, and rather frustrating.

Cheers, John.
Hi John,

I've experienced something similar, but I have a small USB rotating harddisk. 

I seem to have solved my problem by configuring the USB disk in /etc/fstab, in my case by adding the line:
/dev/sda1 /media/Music auto defaults,nofail,x-systemd.device-timeout=1,user 0 0

(The spaces must be typed as tabs!)

I hope this will help.

Regards, Dag
Reply
#4
Thanks for your reply Dag.

Unfortunately this is beyond my current Rpi skillset/comprehension.

Really just after a plug & play solution where one doesn’t have to keep fiddling with settings, beyond the selecting DAC and library preferences.

I may give Volumio another go or PiCorePlayer to see if they work better with external usb SSD drives.

Cheers,

John.
Reply
#5
@JohnM73

Unfortunately there's not enough information here to diagnose your difficulty.

A quick search of this forum turned up only one suggestive thread from last November (http://moodeaudio.org/forum/showthread.p...69#pid5469). In the end, the USB/SSD adapter was the problem. 

I don't believe moOde has a general problem with external SSD. If there is, it's actually a Raspbian issue (and there have been random posts to the Raspberry Pi Forum, but they generated more smoke than fire).

As an aside, I'm always curious if the failing system is getting adequate power especially during bootup.

Regards,
Kent
Reply
#6
I’ve been using a external ssd with no issues since the Samsung t3 came out, but I have it formatted as ext4 so it has journaling. If your device is bus-powered be aware that like Kent said the pi usb bus is underpowered so you may be running into a situation where the drive needs more power than the Pi can give and as a result it gets unmounted.
Reply
#7
Thanks for the suggestions.

I think I’ll order a Y cable to power the SSD separately and see if that helps.

Otherwise I’ll stick with the standard HDD for now.
Reply
#8
Managed to solve the issue using the 1TB MX500 Crucial SSD with Moode. Reformatting it as Mac OS journaled (it was ExFAT), and using an Allo 5V 3A psu seem to have done the trick. Not sure which of these two changes solved the issue, though I guess I could try the official Raspberry Pi psu to check, bu I don’t want to risk having to rebuild the database yet again.
Reply
#9
I have similar issue and can't be solved even reinstall latest version Moode.

I connected my 2TB NTFS SSD to the Pi 3B+, it can detect the SSD drive and shown on lsusb. The SSD LED flash when I press Update MPD but the UI still only show "Stereo Test" after the scanning.
Reply
#10
(05-30-2019, 04:27 AM)bigpanda Wrote: I have similar issue and can't be solved even reinstall latest version Moode.

I connected my 2TB NTFS SSD to the Pi 3B+, it can detect the SSD drive and shown on lsusb. The SSD LED flash when I press Update MPD but the UI still only show "Stereo Test" after the scanning.

How's your 2TB SSD powered? If the power is provided va RPi's USB port try feeding 5V from an external power supply. Use an USB cable which splits the data stream from the power feed; as an idea:  USB Y-split cable ... find a Y-split cable with a suitable data plug for your SSD enclosure's USB port.
Reply


Forum Jump: