由於某種原因,Mac OS X 無法找到我剛剛建立的目錄。知道為什麼嗎?
sh-3.2# mkdir /Users/Administrator/Documents/drive/
sh-3.2# mount -w -t "hfs+" /dev/disk1s2 /Users/Administrator/Documents/drive/
mount: exec /System/Library/Filesystems/hfs+.fs/Contents/Resources/mount_hfs+ for /Users/Administrator/Documents/drive: No such file or directory
更新:
我試著跑
bbcs:/ Administrator$ sudo mount_hfs /dev/disk1s2 /Users/Administrator/Documents/drive/
Password:
mount_hfs: Invalid argument
答案1
我認為問題是你的mount
hfs+
當我運行時,我什至在本地 Mac OS X 10.9.5 (Mavericks) 設定中看不到該檔案系統類型ls -l1 /System/Library/Filesystems/
:
AppleShare
NetFSPlugins
acfs.fs
afpfs.fs
cd9660.fs
cddafs.fs
exfat.fs
ftp.fs
hfs.fs
msdos.fs
nfs.fs
ntfs.fs
smbfs.fs
udf.fs
webdav.fs
所以我的建議是像這樣運行命令;請注意刪除了尾隨 ( +
) 以及雙引號 ( "
):
mount -w -t hfs /dev/disk1s2 /Users/Administrator/Documents/drive/
另一個想法是將命令運行為sudo
對於你的原始命令是這樣的:
sudo mount -w -t "hfs+" /dev/disk1s2 /Users/Administrator/Documents/drive/
或者這是我所做的修改後的範例調整:
sudo mount -w -t hfs /dev/disk1s2 /Users/Administrator/Documents/drive/