我有一台小型 Debian 服务器,上面安装了 2 TB 的硬盘作为存储。Samba 服务器配置为使用此硬盘作为存储。
如果我想从我的 Windows 客户端复制一些大文件到 SMB 共享,Windows 会显示一条警告,提示该共享空间不足。
输出自df
(/dev/sdb
2 TB 磁盘):
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/dm-0 112745160 8001956 98993036 8% /
udev 10240 0 10240 0% /dev
tmpfs 1616972 9116 1607856 1% /run
tmpfs 4042424 0 4042424 0% /dev/shm
tmpfs 5120 0 5120 0% /run/lock
tmpfs 4042424 0 4042424 0% /sys/fs/cgroup
/dev/sda2 241965 34184 195289 15% /boot
/dev/sda1 523248 132 523116 1% /boot/efi
/dev/sdb 1922729864 10960320 1814093816 1% /media/hdd
输出自fdisk -l
(仅适用于 HDD):
Disk /dev/sdb: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/sda: 118 GiB, 126701535232 bytes, 247463936 sectors
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: gpt
Disk identifier: 93CB310F-799C-4FC3-865E-FD1DCE3CAF21
我的smb.conf
:
[global]
workgroup = smb
security = user
map to guest = Bad Password
[homes]
comment = Home Directories
browsable = no
read only = no
create mode = 0750
[public]
path = /media/hdd/storage/
public = yes
writable = yes
comment = smb share
printable = no
guest ok = yes
force user = nobody
force group = nogroup
create mask = 777
directory mask = 777
SMB 运行时没有任何权限或用户限制(小型家庭服务器,我是唯一的用户)。
为什么 Windows 告诉我 SMB 空间不足?