环境: 在Centos7.2上挂载了一个2T的移动硬盘, 使用vim 在移动硬盘中编辑 .sh文件, wq的时候提示出错, 然后清空的文件, 可以正常wq出来

[root@localhost yidongyingpan]# ls
ls: 正在读取目录.: 输入/输出错误

1. 这是我的移动硬盘

20200427_ls_正在读取目录_输入/输出错误

 

 

 2. 看他是挂载着的

20200427_ls_正在读取目录_输入/输出错误

 

 

 3. 按就先卸载了:

[root@localhost yidongyingpan]# cd /root/
[root@localhost ~]# umount /dev/sdb1
[root@localhost ~]# df -h

4. 重新挂载的时候提示:

[root@localhost ~]# mount -t ntfs-3g /dev/sdb1 /mnt/yidongyingpan/
ntfs-3g: Failed to access volume '/dev/sdb1': 没有那个文件或目录
[root@localhost ~]# fdisk -l
#确实没有了, 插拔一下移动硬盘, 就又有了, 然后重新执行挂载

相关文章:

  • 2021-05-20
  • 2021-09-22
  • 2022-12-23
  • 2022-03-03
  • 2022-02-28
  • 2021-06-07
猜你喜欢
  • 2021-07-06
  • 2021-09-14
  • 2022-12-23
  • 2022-12-23
  • 2021-11-13
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案