由于某些奇怪的原因,我的 CIFS 挂载在最近从 ubuntu 23.04 升级到 23.10 后失败了
这是我的/etc/fstab
文件...
//192.168.0.6/Backup /media/backup cifs rw,credentials=/home/grego/credentials,uid=1000,gid=1000,vers=3.0,noauto,x-systemd.automount,user 0 0
//192.168.0.6/Shared /media/shared cifs rw,credentials=/home/grego/credentials,uid=1000,gid=1000,vers=3.0,noauto,x-systemd.automount,user 0 0
//192.168.0.6/Media /media/media cifs rw,credentials=/home/grego/credentials,uid=1000,gid=1000,vers=2.1,noauto,x-systemd.automount,user 0 0
以下是dmesg
条目...
[ 45.896237] CIFS: Attempting to mount //192.168.0.6/Backup
[ 45.905758] CIFS: VFS: \\192.168.0.6 failed to connect to IPC (rc=-13)
[ 46.939466] CIFS: VFS: session 0000000065a0c2f2 has no tcon available for a dfs referral request
[ 47.980397] CIFS: VFS: cifs_mount failed w/return code = -13
[ 94.177796] CIFS: Attempting to mount //192.168.0.6/Media
[ 94.187246] CIFS: VFS: \\192.168.0.6 failed to connect to IPC (rc=-13)
[ 95.192181] CIFS: VFS: session 00000000a9bfc9f5 has no tcon available for a dfs referral request
[ 96.216339] CIFS: VFS: cifs_mount failed w/return code = -13
[ 106.651636] CIFS: Attempting to mount //192.168.0.6/Shared
[ 106.661132] CIFS: VFS: \\192.168.0.6 failed to connect to IPC (rc=-13)
[ 107.675401] CIFS: VFS: session 0000000061820eef has no tcon available for a dfs referral request
[ 108.695527] CIFS: VFS: cifs_mount failed w/return code = -13
这是systemctl status NetworkManager-wait-online.service
输出...
● NetworkManager-wait-online.service - Network Manager Wait Online
Loaded: loaded (/lib/systemd/system/NetworkManager-wait-online.service; enabled; preset: enabled)
Active: active (exited) since Sun 2023-11-05 17:43:29 AEDT; 5min ago
Docs: man:NetworkManager-wait-online.service(8)
Process: 1011 ExecStart=/usr/bin/nm-online -s -q (code=exited, status=0/SUCCESS)
Main PID: 1011 (code=exited, status=0/SUCCESS)
CPU: 11ms
当我这样做时,sudo mount -a
我得到了以下结果......
mount: Partition: mount point does not exist.
dmesg(1) may have more information after failed mount system call.
我想说清楚。除了升级到 23.10 之外,没有做出任何改变。还有其他什么可以提供帮助吗?
答案1
我在 Ubuntu 23.10 for Arm 中也遇到了这个问题。我得到了和你一样的 -13 访问被拒绝错误。
我的 fstab 条目与您的没有任何显著差异。我从运行的 22.04 工作站复制了我的条目,并尝试将安装复制到新的 23.04 pi。
所有坐骑都失败了。
我进行了 Wireshark 跟踪,发现它没有传递 fstab 中指定的文件的凭据。用户名是空的。
我将凭证文件名更改为不存在的文件名,并且 mount 和 mount.cifs 均没有任何抱怨。
我对 mount 命令进行了 strace 操作,但它并没有尝试打开凭证文件。
从各方面来看,23.04 中的凭证切换存在问题。
更新:
这修复了它:
sudo apt 安装 cifs-utils