From 8f289418fa1af6c3e3c1acc1b2c85f7ba9161acb Mon Sep 17 00:00:00 2001 From: wlf-darkmatter <62014693+wlf-darkmatter@users.noreply.github.com> Date: Mon, 13 Feb 2023 16:46:34 +0800 Subject: [PATCH] doc: Update mount.md (#469) --- command/mount.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/command/mount.md b/command/mount.md index 43b8e93d80c..fc284307895 100644 --- a/command/mount.md +++ b/command/mount.md @@ -7,6 +7,8 @@ mount **mount命令** Linux mount命令是经常会使用到的命令,它用于挂载Linux系统外的文件。 +如果通过webdav协议挂载网络磁盘,需要运行指令`apt install davfs2`安装必要的组件 + ### 语法 ```shell @@ -46,7 +48,7 @@ mount [-fnrsvw] [-t vfstype] [-o options] device dir -o loop=:使用 loop 模式用来将一个档案当成硬盘分割挂上系统。 ``` -### 实例 +### 实例1 将 `/dev/hda1` 挂在 `/mnt` 之下。 @@ -66,6 +68,14 @@ mount [-fnrsvw] [-t vfstype] [-o options] device dir #mount -o loop /tmp/image.iso /mnt/cdrom ``` +### 实例2 +通过 webdav 协议挂载网络硬盘 + +将`https://your.webdav.link.here`的网络存储以网络磁盘的形式挂载到系统路径`/path/to/mount` + +```shell +mount -t davfs https://your.webdav.link.here /path/to/mount +```