![为什么 Windows 客户端说我的 Debian Samba 共享磁盘空间不足?(但事实并非如此)](https://linux22.com/image/1528008/%E4%B8%BA%E4%BB%80%E4%B9%88%20Windows%20%E5%AE%A2%E6%88%B7%E7%AB%AF%E8%AF%B4%E6%88%91%E7%9A%84%20Debian%20Samba%20%E5%85%B1%E4%BA%AB%E7%A3%81%E7%9B%98%E7%A9%BA%E9%97%B4%E4%B8%8D%E8%B6%B3%EF%BC%9F%EF%BC%88%E4%BD%86%E4%BA%8B%E5%AE%9E%E5%B9%B6%E9%9D%9E%E5%A6%82%E6%AD%A4%EF%BC%89.png)
我有一台小型 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 空间不足?