Mount
rm/mkdir 時輸入/輸出錯誤
所以我在使用時搞砸
sshfs
了,我用作伺服器掛載點的文件夾被破壞了。伺服器未正確解除安裝(我認為是由於網路中斷)。因此,當我
ls
在我最初創建mountpoint
文件夾的 /Volumes/ 時,我現在收到一個 I/O 錯誤:joehealey@Joes-MacBook-Pro:/Volumes$ ls -al ls: mountpoint: Input/output error total 24 drwxrwxrwt@ 7 root admin 238 21 Oct 13:08 ./ drwxr-xr-x 37 root wheel 1326 3 Oct 12:38 ../ -rw-r--r--@ 1 joehealey admin 6148 22 Sep 2014 .DS_Store drwxr-xr-x 1 joehealey staff 8192 28 Jul 20:04 BOOTCAMP/ lrwxr-xr-x 1 root admin 1 15 Oct 08:52 Macintosh HD@ -> / drwxrwxrwx 0 root wheel 0 21 Oct 13:08 MobileBackups/ joehealey@Joes-MacBook-Pro:/Volumes$ mkdir mountpoint mkdir: mountpoint: File exists joehealey@Joes-MacBook-Pro:/Volumes$
我線上程中看到過類似的問題,例如建議對整個磁碟進行核攻擊等。現在,我對此並不擔心,我準備走那麼遠,所以我只是想知道是否有有什麼方法可以強制刪除和解決這個特定的實例?
只需使用:
umount /Volumes/mountpoint
已經解決了。不知道為什麼
fsusermount -u
不是我的安裝選項。也許其他人會知道(?)。完整參考:
前
joehealey@Joes-MacBook-Pro:/Volumes$ mount /dev/disk0s2 on / (hfs, local, journaled) devfs on /dev (devfs, local, nobrowse) map -hosts on /net (autofs, nosuid, automounted, nobrowse) map auto_home on /home (autofs, automounted, nobrowse) /dev/disk0s4 on /Volumes/BOOTCAMP (ntfs, local, read-only, noowners) localhost:/nWFBTycSJIUVhjjjh8YMP4 on /Volumes/MobileBackups (mtmfs, nosuid, read-only, nobrowse) wms_joe@DMI:/home/wms_joe/ on /Volumes/mountpoint (osxfusefs, nodev, nosuid, synchronous, mounted by joehealey)
wms_joe@DMI:
伺服器上是有問題的mountpoint
文章。解除安裝
joehealey@Joes-MacBook-Pro:/Volumes$ umount /Volumes/mountpoint
後
joehealey@Joes-MacBook-Pro:/Volumes$ mount /dev/disk0s2 on / (hfs, local, journaled) devfs on /dev (devfs, local, nobrowse) map -hosts on /net (autofs, nosuid, automounted, nobrowse) map auto_home on /home (autofs, automounted, nobrowse) /dev/disk0s4 on /Volumes/BOOTCAMP (ntfs, local, read-only, noowners) localhost:/nWFBTycSJIUVhjjjh8YMP4 on /Volumes/MobileBackups (mtmfs, nosuid, read-only, nobrowse)
現在能夠重新製作以前拒絕的文件夾
joehealey@Joes-MacBook-Pro:/Volumes$ mkdir mountpoint joehealey@Joes-MacBook-Pro:/Volumes$ ls BOOTCAMP Macintosh HD MobileBackups mountpoint
您可以像往常一樣為
sshfs
卷解除安裝它:fusermount -u /Volumes/mountpoint
(至少,這適用於 Linux。我不完全確定 sshfs/FUSE 如何在 OS X 上執行。)