Skip to content

Commit 8f28941

Browse files
doc: Update mount.md (#469)
1 parent 67c5f56 commit 8f28941

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

command/mount.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ mount
77

88
**mount命令** Linux mount命令是经常会使用到的命令,它用于挂载Linux系统外的文件。
99

10+
如果通过webdav协议挂载网络磁盘,需要运行指令`apt install davfs2`安装必要的组件
11+
1012
### 语法
1113

1214
```shell
@@ -46,7 +48,7 @@ mount [-fnrsvw] [-t vfstype] [-o options] device dir
4648
-o loop=:使用 loop 模式用来将一个档案当成硬盘分割挂上系统。
4749
```
4850
49-
### 实例
51+
### 实例1
5052
5153
`/dev/hda1` 挂在 `/mnt` 之下。
5254
@@ -66,6 +68,14 @@ mount [-fnrsvw] [-t vfstype] [-o options] device dir
6668
#mount -o loop /tmp/image.iso /mnt/cdrom
6769
```
6870
71+
### 实例2
72+
通过 webdav 协议挂载网络硬盘
73+
74+
`https://your.webdav.link.here`的网络存储以网络磁盘的形式挂载到系统路径`/path/to/mount`
75+
76+
```shell
77+
mount -t davfs https://your.webdav.link.here /path/to/mount
78+
```
6979
7080
7181

0 commit comments

Comments
 (0)