Mac OS X 似乎无法找到确实存在的目录

Mac OS X 似乎无法找到确实存在的目录

由于某种原因,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

我认为问题是你的mounthfs+当我运行时,我甚至在本地 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/

相关内容