sli*_*lim 2 mount 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)
有任何想法吗?
您的 fstab 条目缺少文件系统类型的(未使用的)第三个字段。尝试这个:
c:/Users/slim /home/slim/ ntfs binary,posix=0,user 0 0
Run Code Online (Sandbox Code Playgroud)
(您也可以将 Cygwin 主目录设置为/etc/passwd.
| 归档时间: |
|
| 查看次数: |
6674 次 |
| 最近记录: |