小编sli*_*lim的帖子

Cygwin fstab - 我做错了什么?

我正在尝试将我的 Windows 主目录自动挂载到我的 Cygwin 主目录上。如果我手动运行 mount 命令它工作正常,但将挂载点放入 /etc/fstab 似乎不起作用:

$ cat /etc/fstab
<snip comments>
c:/Users/slim /home/slim/ binary,posix=0,user 0 0

$ mount c:/Users/slim
mount: can't find c:/Users/slim in /etc/fstab or in /etc/fstab.d/$USER

$ mount /home/slim/
mount: can't find /home/slim/ in /etc/fstab or in /etc/fstab.d/$USER

$ # ... and to demonstrate it works calling mount directly:
$ mount -obinary,posix=0,user c:/Users/hartnupj /home/hartnupj/
$ mount
C:/Users/hartnupj on /home/hartnupj type ntfs (binary,posix=0,user)
<snip>
Run Code Online (Sandbox Code Playgroud)

有任何想法吗?

mount cygwin fstab

2
推荐指数
1
解决办法
6674
查看次数

标签 统计

cygwin ×1

fstab ×1

mount ×1