Thank you for your donation!


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


Problem: No USB drives show in file explorer (Moode 6.x)
#1
Tried NTFS and exFAT formatted USB thumbdrives and none show up. It worked fine in Moode 5.x.

RPi Model B+ v1.2
Reply
#2
Examine the MPD log for errors after running Database update from Library Config.

cat /var/log/mpd/log
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#3
(08-25-2019, 12:18 PM)Wigwam Wrote: Tried NTFS and exFAT formatted USB thumbdrives and none show up. It worked fine in Moode 5.x.

RPi Model B+ v1.2


(This adds to Tim's reply which he slipped in while I was typing!)

Had to reformat a thumbdrive with an exFat filesystem to test this. Added some audio files and plugged into a moOde6.1.0 player. The drive and the files show up in the moOde Directory.

Are you sure you've updated the MPD database after inserting the USB thumbdrive? It won't show up in the moOde Directory until you do.

For debugging purposes, you can probe from the command line (I removed the lines not related to my thumbdrive; brandname PNY, partition name Attache1):

Code:
pi@moode:~ $ lsusb
...
Bus 001 Device 003: ID 154b:0005 PNY        <<< this is the thumbdrive


pi@moodeLR:~ $ sudo fdisk -l
...
Disk /dev/sdb: 984 MiB, 1031798784 bytes, 2015232 sectors
Disk model: USB 2.0 FD      
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: 0xf0f4b8bf

Device     Boot Start     End Sectors  Size Id Type
/dev/sdb1  *     2048 2015231 2013184  983M  7 HPFS/NTFS/exFAT  <<< this is the exFAT partition on PNY


pi@moodeLR:~ $ mount
...
/dev/sdb1 on /media/Attache1 type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096,uhelper=udisks)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)


Regards,
Kent
Reply
#4
There's no extra output from the log file when updating the MPD database.

Code:
Last login: Sun Aug 25 20:13:22 2019 from 192.168.1.216
pi@moode:~ $ lsusb
Bus 001 Device 005: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapter
Bus 001 Device 004: ID 0951:1624 Kingston Technology DataTraveler G2
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
pi@moode:~ $ cat /var/log/mpd/log
Aug 25 20:14 : player: played "http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_high/ak/bbc_radio_two.m3u8"
Aug 25 20:24 : player: played "https://wz4web.scahw.com.au/live/4buddha_32.stream/playlist.m3u8"

On boot "USB" does not show in the explorer, but it does show after viewing the log file via SSH. However, there's nothing in the folder.


Am I doing something really silly, because surely I don't have to update the MPD database just to play tracks from the file explorer window? I don't remember having to before as I never use the database.
Reply
#5
moOde's Folder view is not a file explorer it's an MPD database browser. There was never a file explorer in moOde.

After plugging in the USB drive, open Library Config and Re-Gen the MPD database then examine the MPD log. There should be log entries like below.

Code:
Aug 25 15:54 : update: updating USB/VFAT128/Test_mixed/AIFF/Crookt, Crackt, Or Fly/01 Wedding In The Park.aiff
Aug 25 15:54 : update: updating USB/VFAT128/Test_mixed/AIFF/Crookt, Crackt, Or Fly/02 Work From Smoke.aiff
Aug 25 15:54 : update: updating USB/VFAT128/Test_mixed/AIFF/Crookt, Crackt, Or Fly/03 Parenthetically.aiff
Aug 25 15:54 : update: updating USB/VFAT128/Test_mixed/AIFF/Crookt, Crackt, Or Fly/04 Every Five Miles.aiff
A
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#6
(08-25-2019, 07:57 PM)Tim Curtis Wrote: moOde's Folder view is not a file explorer it's an MPD database browser. There was never a file explorer in moOde.

After plugging in the USB drive, open Library Config and Re-Gen the MPD database then examine the MPD log. There should be log entries like below.

Code:
Aug 25 15:54 : update: updating USB/VFAT128/Test_mixed/AIFF/Crookt, Crackt, Or Fly/01 Wedding In The Park.aiff
Aug 25 15:54 : update: updating USB/VFAT128/Test_mixed/AIFF/Crookt, Crackt, Or Fly/02 Work From Smoke.aiff
Aug 25 15:54 : update: updating USB/VFAT128/Test_mixed/AIFF/Crookt, Crackt, Or Fly/03 Parenthetically.aiff
Aug 25 15:54 : update: updating USB/VFAT128/Test_mixed/AIFF/Crookt, Crackt, Or Fly/04 Every Five Miles.aiff
A

Still nothing.  Sad


Code:
pi@moode:~ $ cat /var/log/mpd/log
Aug 25 20:14 : player: played "http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_high/ak/bbc_radio_two.m3u8"
Aug 25 20:24 : player: played "https://wz4web.scahw.com.au/live/4buddha_32.stream/playlist.m3u8"
Aug 25 20:41 : update: updating SDCARD/Stereo Test/LRMonoPhase4.flac
Aug 25 21:00 : update: updating SDCARD/Stereo Test/LRMonoPhase4.flac
pi@moode:~ $
Reply
#7
No log records would suggest Linux was not able to auto-mount the USB drive.

If the drive was successfully auto-mounted it will be listed under the /media directory by its disk label.

Example
Code:
pi@rp5:~ $ ls /media
VFAT128
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#8
(08-25-2019, 08:18 PM)Tim Curtis Wrote: No log records would suggest Linux was not able to auto-mount the USB drive.

If the drive was successfully auto-mounted it will be listed under the /media directory by its disk label.

Example
Code:
pi@rp5:~ $ ls /media
VFAT128

Yeah, no output from that command.

I've tried three different USB drives with NTFS, exFAT, and FAT32 now.

Any simple solution?  Undecided
Reply
#9
Can't have a solution without first determining what's causing the problem.

The USB stick in my example is formatted as Fat32 and labeled "VFAT128". It works perfectly.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#10
(08-25-2019, 08:33 PM)Tim Curtis Wrote: Can't have a solution without first determining what's causing the problem.

The USB stick in my example is formatted as Fat32 and labeled "VFAT128". It works perfectly.


Here's the fdisk -l output for one drive (32GB formatted as NTFS)

Code:
Disk /dev/sda: 29.1 GiB, 31260704768 bytes, 61056064 sectors
Disk model: Cruzer U
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: 0x00000000

Device     Boot Start      End  Sectors  Size Id Type

/dev/sda1          32 61056063 61056032 29.1G  7 HPFS/NTFS/exFAT
Reply


Forum Jump: