我有一个用作 NAS 的 Raspberry Pi 3,带有 USB LUKS 加密驱动器和 SMB。当我尝试复制时,我得到:
$ cp -r /media/pi/Backup/Backups/_altii/Daniel/ /media/pi/share/
cp: eroare la scrierea '/media/pi/share/Daniel/poze 2012-27 aprilie 2021/1614357450431.JPG': No space left on device
用英语说cp: error writing '/media/pi/share/Daniel/poze 2012-27 aprilie 2021/1614357450431.JPG': No space left on device
df -h
显示剩余 720GB:
$ df -h /dev/dm-0
Sistem de fișiere Dimens Utilizat Liber Uz% Montat pe
/dev/mapper/luks-b8ddc005-ebe8-4219-8ae4-6eae54159a6b 1,8T 978G 720G 58% /media/pi/Backup
du -sh
显示零:
$ du -sh /dev/dm-0
0 /dev/dm-0
有空闲的索引节点:
$ df -i /dev/dm-0
Sistem de fișiere Inoduri IUtilizat ILiber IUz% Montat pe
/dev/mapper/luks-b8ddc005-ebe8-4219-8ae4-6eae54159a6b 119046144 2562741 116483403 3% /media/pi/Backup
并且没有打开已删除的文件:
pi@raspberrypi:/media/pi/share $ lsof | grep deleted
pi@raspberrypi:/media/pi/share $
pi@raspberrypi:/media/pi/share $ lsof /dev/dm-0 | grep deleted
pi@raspberrypi:/media/pi/share $