ls:正在读取目录......':输入/输出错误

ls:正在读取目录......':输入/输出错误

我的本地 NAS 是基于 Cubietruck(Ubuntu Xenial 和 Armbian Linux 3.4.113-sun7i)的,带有 smbd 用于 samba 共享。作为存储扩展,我使用通过 USB 连接的 2 TB Western Digital SSD,并在启动时使用 /mnt/wd1 上的 fstab 自动安装:

UUID=0e32bef4-78a1-4172-bc7d-de2d74f9b092       /mnt/wd1        ext4    defaults,noatime,nodiratime,commit=600,errors=remount-ro,x-gvfs-hide    0       1 

该 SSD 上有 2 个文件夹,其所有者为 Samba 用户,并具有适当的权限:

root@Artisan:~# ls -la /mnt/wd1
total 16
drwxrwxr-x 4 artisan artisan 4096 Nov 22 19:36 .
drwxr-xr-x 3 root    root    4096 Nov 22 19:27 ..
drwxrwxr-x 2 artisan artisan 4096 Nov 22 19:36 Other
drwxrwxr-x 3 artisan artisan 4096 Dec 12 11:44 Video

以下是 smb.conf 的一部分

security = user
passdb backend = tdbsam
unix charset = utf-8
dos charset = cp932

[Music]
path = /ncsdata/Music
comment = Music
read only = no
writeable = yes
browseable = yes
create mode = 0775
directory mode = 0775
valid users = artisan
force user = artisan
guest ok = no

[Video]
path = /mnt/wd1/Video
comment = Video
read only = no
writeable = yes
browseable = yes
create mode = 0775
directory mode = 0775
valid users = artisan
force user = artisan
guest ok = no

“音乐”位于本地 Cubietruck 存储中,可完美读取/写入。“视频”位于已安装的 SSD 上,允许读取,但从 Windows 笔记本电脑写入会在未定义的时间(几秒到几分钟)内结束,或者允许完全写入文件并在下一个文件上停止,并出现错误“访问 //ARTISAN/Video 时出现问题”。毕竟,我甚至无法从 root 帐户访问它:

root@Artisan:~# ls -la /mnt/wd1/Video
ls: reading directory '/mnt/wd1/Video': Input/output error

SSD 保持安装状态:

root@Artisan:/mnt/wd1# df
Filesystem      1K-blocks      Used  Available Use% Mounted on
udev               955288         0     955288   0% /dev
tmpfs              201412      3556     197856   2% /run
/dev/sda1       922976468 674280112  201811784  77% /
tmpfs             1007056       140    1006916   1% /dev/shm
tmpfs                5120         4       5116   1% /run/lock
tmpfs             1007056         0    1007056   0% /sys/fs/cgroup
tmpfs             1007056       108    1006948   1% /tmp
/dev/mmcblk0p1    7529608   3235512    4189700  44% /media/mmcboot
/dev/sdb1      1968975652   1964664 1866992812   1% /mnt/wd1
armbian-ramlog      51200       344      50856   1% /var/log
tmpfs              201412         8     201404   1% /run/user/1000
overlaid           201412         8     201404   1% /run/user/1000/ncadmin-chromium
tmpfs              201412         0     201412   0% /run/user/0

重启后,挂载点又可以访问了。可能是什么问题?

UPD:一段时间后,挂载实际上消失了:

root@Artisan:~# df
Filesystem     1K-blocks      Used Available Use% Mounted on
udev              955288         0    955288   0% /dev
tmpfs             201412      3560    197852   2% /run
/dev/sda1      922976468 674248620 201843276  77% /
tmpfs            1007056       140   1006916   1% /dev/shm
tmpfs               5120         4      5116   1% /run/lock
tmpfs            1007056         0   1007056   0% /sys/fs/cgroup
tmpfs            1007056       108   1006948   1% /tmp
/dev/mmcblk0p1   7529608   3235512   4189700  44% /media/mmcboot
armbian-ramlog     51200      7220     43980  15% /var/log
tmpfs             201412         8    201404   1% /run/user/1000
overlaid          201412         8    201404   1% /run/user/1000/ncadmin-chromium
tmpfs             201412         0    201412   0% /run/user/0

相关内容