Files
tldr/pages.zh/windows/mount.md

32 lines
975 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 挂载
> 挂载网络文件系统NFS网络共享。
> 更多信息:<https://learn.microsoft.com/windows-server/administration/windows-commands/mount>。
- 将共享挂载到 "Z" 驱动器字母:
`mount \\{{computer_name}}\{{share_name}} {{Z:}}`
- 将共享挂载到下一个可用的驱动器字母:
`mount \\{{computer_name}}\{{share_name}} *`
- 以秒为单位挂载共享的读取超时默认为0.8可以设置为0.9或1到60
`mount -o timeout={{seconds}} \\{{computer_name}}\{{share_name}} {{Z:}}`
- 挂载共享如果失败则重试最多10次
`mount -o retry=10 \\{{computer_name}}\{{share_name}} {{Z:}}`
- 强制区分大小写地挂载共享:
`mount -o casesensitive \\{{computer_name}}\{{share_name}} {{Z:}}`
- 作为匿名用户挂载共享:
`mount -o anon \\{{computer_name}}\{{share_name}} {{Z:}}`
- 使用特定挂载类型挂载共享:
`mount -o mtype={{soft|hard}} \\{{computer_name}}\{{share_name}} {{Z:}}`