I would like to create Media Center combined with NAS using LibreELEC.
LibreELEC 9.2.1 is installed on Raspberry Pi 4. External 4TB HDD is connected via USB3.
I struggle with samba server configuration for maximizing transfer speed and safety. Drive is formatted into EXT4 file system with two partitions: PRIVATE and PUBLIC.
My current samba.conf is posted below (basically default config file). On such configuration PRIVATE share is not protected and transfer speed is low: Blackmagic Disk Speed Test 6-8MB/s, coping multiple mp3 files 2MB/s. I am wondering what can I do to increase transfer speed?
I have created second configuration. When I use it as samba.conf, my SMB stops working- default configuration is used. Not the one form file. What is wrong with second file?
Basic, working conf:
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2009-2016 Stephan Raue ([email protected])
# Copyright (C) 2017-present Team LibreELEC (https://libreelec.tv)
# samba.conf v4 (do not remove)
# This configuration file allows you to customize the samba shares
# available from your machine
[global]
server string = MickyDrive
netbios name = MickyDrive
browseable = yes
writeable = yes
printable = no
deadtime = 30
mangled names = no
name resolve order = host bcast
printcap name = /dev/null
load printers = no
enable core files = no
passdb backend = smbpasswd
smb encrypt = disabled
fruit:model = Xserve
# samba share options
map to guest = Bad User
guest account = root
security = user
# samba tuning options
socket options = TCP_NODELAY IPTOS_LOWDELAY
min receivefile size = 16384
aio read size = 16384
aio write size = 16384
use sendfile = yes
# The following are default values for the master selection process
local master = no
preferred master = yes
domain master = yes
os level = 20
# "strict allocate = yes" breaks large network transfers to external hdd
# Force this to "no" in case "yes" becomes the default in future
strict allocate = no
# Using the following configurations as a template allows you to add
# writeable shares of disks and paths under /storage
[PRIVATE]
path = /media/PRIVATE
comment = Seagate-PRIVATE
available = yes
browseable = yes
public = yes
writeable = yes
[PUBLIC]
path = /media/PUBLIC
comment = Seagate-PUBLIC
available = yes
browseable = yes
public = yes
writeable = yes
Display More
New config file, not working:
[global]
server string = MickyDrive
netbios name = MickyDrive
workgroup = HOME
security = share
guest account = root
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536
smb ports = 445
min receivefile size = 16384
deadtime = 30
os level = 20
mangled names = no
syslog only = yes
syslog = 2
name resolve order = lmhosts wins bcast host
preferred master = auto
domain master = auto
local master = yes
printcap name = /dev/null
load printers = no
browseable = yes
writeable = yes
printable = no
encrypt passwords = true
enable core files = no
passdb backend = smbpasswd
smb encrypt = disabled
use sendfile = yes
fruit:model = Xserve
[PRIVATE]
path = /media/PRIVATE
comment = Seagate-PRIVATE
valid users = nickname
writeable = yes
[PUBLIC]
path = /media/PUBLIC
comment = Seagate-PUBLIC
guest ok = yes
public = yes
writeable = yes
Display More