05-14-2018, 01:26 PM
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.
The corresponding Samba share block is added to the end of the conf file.
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