環境: 在Centos7.2上掛載了一個2T的移動硬盤, 使用vim 在移動硬盤中編輯 .sh文件, wq的時候提示出錯, 然后清空的文件, 可以正常wq出來
[root@localhost yidongyingpan]# ls
ls: 正在讀取目錄.: 輸入/輸出錯誤
1. 這是我的移動硬盤
2. 看他是掛載着的
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 #確實沒有了, 插拔一下移動硬盤, 就又有了, 然后重新執行掛載