当前位置: 代码迷 >> 综合 >> ln: failed to access ‘xxx‘: Transport endpoint is not connected
  详细解决方案

ln: failed to access ‘xxx‘: Transport endpoint is not connected

热度:85   发布时间:2023-12-15 15:52:52.0

现象:

# 运行下面命令报错
sudo ln -s /disk1/abc /disk2/def

报错:

ln: failed to access '/disk2/def': Transport endpoint is not connected

原因:/disk2/def 挂载点掉了

解决:

# 查看当前挂载情况
$ mount |grep /disk2/def
# 卸载:上一行命令输出有 n 行结果,就运行下面这行命令 n+1 次 (最后一次会报错)
$ sudo unmount -l /disk2/def
# 重新建立软连接
sudo ln -s /disk1/abc /disk2/def
  相关解决方案