From 9c569ea6495f147ff6b0f529c7f32d79d614b016 Mon Sep 17 00:00:00 2001 From: wlf-darkmatter <62014693+wlf-darkmatter@users.noreply.github.com> Date: Mon, 13 Feb 2023 16:38:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0mount=E5=AF=B9webdav=E7=9A=84?= =?UTF-8?q?=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 +```