我已经设置了一个 Samba 服务器来在我的网络上共享 USB 驱动器。
我可以看到驱动器,可以编辑/删除每个文件,但我无法创建任何文件,因为我得到了file size too large for the destination file system
。此外,在服务器上,我可以创建一个文件,就像在 Windows 上一样。
问题区域是 [HDD]。设备已安装到路径文件夹。设备是 FAT32 文件系统。我尝试设置,fstype
但没有成功
外观smb.conf
如下:
[global]
workgroup = WORKGROUP
netbios name = centos
security = user
# unix charset = UTF-8
# dos charset = CP932
# hosts allow = 10.8.0.0/16
passdb backend = tdbsam
printing = cups
printcap name = cups
load printers = yes
cups options = raw
[homes]
comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No
inherit acls = Yes
[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @printadmin root
force group = @printadmin
create mask = 0664
directory mask = 0775
[Anonymous]
comment = Anonymous File Server Share
path = /srv/shared/anonymous
browsable =yes
writable = yes
guest ok = yes
read only = no
[HDD]
comment = 4TB USB HDD
path = /media/usb/hdd
browsable =yes
writable = yes
create mask = 0777
directory mask = 0755
valid users = @backup
write users = @backup
guest ok = no