CIFS 共享无法再挂载

CIFS 共享无法再挂载

我曾经有一个指向 Windows 机器 C 盘的 CIFS 共享,但是它在一段时间前坏了(我假设是在更新之后,但我并不经常使用该共享,所以我不知道它到底坏了多久)。

我有一个自动挂载文件设置,但它无法挂载,并且手动挂载也失败。

$ sudo mount -a
[sudo] password for root: 
Couldn't chdir to /Windows: No such device
$ cat /etc/fstab
# Static information about the filesystems.
# See fstab(5) for details.
    
# <file system> <dir> <type> <options> <dump> <pass>
# /dev/nvme0n1p1
UUID=8ef5a797-97ec-4a83-a5be-35b664574f62   /           ext4        rw,relatime 0 1
    
# /dev/nvme0n1p2
UUID=a7947fd4-a876-49f2-be3a-c93b57de8e7f   none        swap        defaults    0 0
    
# 192.168.1.10:/cygdrive/c  /windows    nfs rsize=8192,wsize=8192,noexec,nosuid
//10.0.0.10/c   /Windows    cifs    credentials=/home/terminus/.cifs_creds
$ sudo cat .cifs_creds
username=ExampleUser
password=ExamplePassword
$ sudo cat /etc/systemd/system/Windows.automount
[Unit]
Description=Gaming rig C: share
    
[Mount]
What=//10.0.0.10/c
Where=/Windows
Type=cifs
Options=credentials=/home/terminus/.cifs_creds
    
[Install]
WantedBy=multi-user.target
$ ping 10.0.0.10
PING 10.0.0.10 (10.0.0.10) 56(84) bytes of data.
64 bytes from 10.0.0.10: icmp_seq=1 ttl=128 time=0.198 ms
64 bytes from 10.0.0.10: icmp_seq=2 ttl=128 time=2.11 ms
64 bytes from 10.0.0.10: icmp_seq=3 ttl=128 time=0.218 ms
^C
--- 10.0.0.10 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2020ms
rtt min/avg/max/mdev = 0.198/0.842/2.110/0.896 ms

相关内容