Thank you for your donation!


usb connectivity
#1
Hi,

I'm having a problem connecting a USB hard drive. It is external, I have it on a hub, to provide power to it. This arrangement has worked with the Kodi software.
The drive and files are also visible when using SSH to access the Pi. 
The version is a B+ Raspberry Pi and 4.1 Moode, hard drive formatted with EXT4

Try as I might I could not see the files through Moode. I then decided to try see if I could see files that were just on a USB thumbdrive. This worked, initially.  
I then tried them deeper in in the file structure (ie in a directory called music). Didn't see them, tried again using a different thumb drive, tried using NTFS, EXT4, FAT.

Sometimes I could see some files, but not really in a repeatable fashion. 

Am I missing something? Is Moode not designed to work this way?
It occurs to me that I could increase the bus voltage in the Pi config file, and plug directly to it. But again, because I can read file structure just fine using SSH, it would seem that I am already connecting via USB.

thanks, for any insight,

Will MacGhee
Reply
#2
An addendum replying to my own post:

I have changed permissions on /var/lib/mpd/music/USB/pi directory and now it is updating the library..... now to get my dac card to work.
Reply
#3
Very odd. 

moOde auto-mounts USB drives by disk label to the /media directory, and also creates a Samba share block for the drive in /etc/samba/smb.conf

Below is an example dir structure after inserting a fat32 formatted USB drive labeled VFAT8.
Code:
pi@rp3:~ $ ls -l /media
total 16
drwxr-xr-x 6 root root 16384 Dec 31  1969 VFAT8

pi@rp3:~ $ ls -l /media/VFAT8/
total 32
drwxr-xr-x  2 root root 16384 Oct 23  2017 save
drwxr-xr-x 29 root root 16384 Feb 23 07:44 Test_mixed
pi@rp3:~ $ ls -l /media/VFAT8/Test_mixed/
total 432
drwxr-xr-x 2 root root 16384 Apr  7  2017 Adrian
drwxr-xr-x 3 root root 16384 Aug 18  2017 AIFF
drwxr-xr-x 2 root root 16384 Feb 23 07:44 Alison Krauss
drwxr-xr-x 7 root root 16384 Oct 15  2017 Amazing Grace
drwxr-xr-x 3 root root 16384 Aug 18  2017 Bruce Adams Quartet
drwxr-xr-x 2 root root 16384 Feb 23 07:44 DanielW
drwxr-xr-x 4 root root 16384 Feb 23 02:30 DanielW2
drwxr-xr-x 2 root root 16384 Aug 18  2017 DSF
drwxr-xr-x 2 root root 16384 Apr  7  2017 gap-less_test_tracks
drwxr-xr-x 2 root root 16384 Aug 18  2017 Genre Issue Files Except Track 10
drwxr-xr-x 3 root root 16384 Aug 18  2017 Hank Jones
drwxr-xr-x 2 root root 16384 Aug 18  2017 Ivan-Vrbat
drwxr-xr-x 2 root root 16384 Apr  7  2017 Kazys
drwxr-xr-x 3 root root 16384 Aug 18  2017 Larry Goldings
drwxr-xr-x 3 root root 16384 Aug 18  2017 Mike
drwxr-xr-x 2 root root 16384 Aug 18  2017 MP3
drwxr-xr-x 2 root root 16384 Aug 18  2017 mycat3
drwxr-xr-x 4 root root 16384 Aug 18  2017 Nine Inch Nails
drwxr-xr-x 3 root root 16384 Aug 18  2017 Raymond
drwxr-xr-x 8 root root 16384 Feb 23 07:44 RoscaGabriel
drwxr-xr-x 2 root root 16384 Feb 23 07:44 samplemp3
drwxr-xr-x 2 root root 16384 Feb 23 07:44 SteveL
drwxr-xr-x 2 root root 16384 Feb 23 07:44 SteveL_tiff
drwxr-xr-x 2 root root 16384 Apr  7  2017 Test
drwxr-xr-x 2 root root 16384 Apr  7  2017 Wave
drwxr-xr-x 3 root root 16384 Aug 18  2017 Whitney Houston
drwxr-xr-x 2 root root 16384 Aug 18  2017 zippers
pi@rp3:~ $


The corresponding Samba share block is added to the end of the conf file.
Code:
pi@rp3:~ $ cat /etc/samba/smb.conf
#
# 2018-01-26 TC moOde 4.0
#

[global]
server string = moOde SMB Server
security = User
map to guest = Bad User
guest account = root
log level = 0
load printers = No
printcap name = /dev/null
disable spoolss = Yes
printing = bsd
preferred master = No
local master = No
domain master = No
dns proxy = No
create mask = 0775
directory mask = 0775
browseable = Yes
[NAS]
comment = NAS Shares
path = /mnt/NAS
read only = No
guest ok = Yes
[RADIO]
comment = RADIO Stations
path = /var/lib/mpd/music/RADIO
read only = No
guest ok = Yes
[SDCARD]
comment = SDCARD Storage
path = /mnt/SDCARD
read only = No
guest ok = Yes
[VFAT8]
comment = USB Storage
path = /media/VFAT8
read only = No
guest ok = Yes
Reply


Forum Jump: