Mount a WebDav-supported network disk under Linux to expand VPS space

Mount a WebDav-supported network disk under Linux to expand VPS space

Some time ago, I bought a novos nextcloud network disk that supports WebDav. Below are simple instructions for mounting to a VPS, which can expand a small VPS.

Novos's nextcloud cloud storage purchase link: https://billing.novos.be/store/novos-brick

1. The simplest way to mount a network disk that supports WebDav

1. Install davfs2

Ubuntu/Debian

 apt-get install davfs2

CentOS

 yum install davfs2

2. Create a directory and mount it

 mkdir /novos
mount -t davfs https://brick.novos.be/remote.php/dav/files/Account/ /novos

Just enter your account number and password.

2. Advanced Usage

1. Create a user for davfs2

 usermod -aG davfs2 username

2. Create the directory that needs to be mounted and the personal configuration file directory

 mkdir ~/novos
mkdir ~/.davfs2

Copy the configuration file

 cp /etc/davfs2/secrets ~/.davfs2/secrets

3. Set user permissions ( Change to your own username)

 chown : ~/.davfs2/secrets
chmod 600 ~/.davfs2/secrets

Edit ~/.davfs2/secrets and enter the WebDav network disk information, such as:

 https://brick.novos.be/remote.php/dav/files/Account/Username and Password

It is recommended to add it to /etc/davfs2/secrets

4. Add mount information to /etc/fstab

 https://brick.novos.be/remote.php/dav/files/Account/ /root/novos
davfs user,rw,auto 0 0

5. Use

Add to

 mount ~/novos

uninstall

 umount ~/novos

Main reference: https://docs.nextcloud.com/server/20/user_manual/en/files/access_webdav.html#creating-webdav-mounts-on-the-linux-command-line

<<:  TMT Hosting: $3.34/month/512MB memory/25GB space/1.TB traffic/1Gbps port/DDOS/KVM/Seattle; SpartanHost on the same line

>>:  silicomnetwork: US virtual host, SSD hard drive, unlimited space, unlimited traffic, annual payment of US$12

Recommend

Beginner's Tutorial: Teach you how to build a website using VPS

I had this plan a long time ago, but I was too la...

ValueVZ: $1/year/1 core/128MB memory/5GB space/unlimited traffic/Openvz

There is no lowest price, only lower. VPS with an...

OVZH 2GB RAM 100Mbps Port Los Angeles CN2 GIA KVM VPS Review

Details : OVZH: 45 yuan/month/512MB memory/15GB S...

Gestion DBI: $4.7/year/256MB memory/20GB space/500GB traffic/OpenVZ/Los Angeles

Gestion DBI, stable merchant, and excellent servi...

DexHost E5-2603v2 8GB RAM Dedicated Server Los Angeles Simple Review

Details: DexHost: $49/month/i3-2120/8GB RAM/480GB...

Gullo: $2/year/128MB RAM/3GB storage/125GB bandwidth/NAT/OpenVZ/Germany/Canada

Gullo, a foreign hosting provider, seems to have ...

Alibaba Cloud International 4GB RAM 30Mbps Bandwidth Santa Clara KVM VPS Review

Details: Alibaba Cloud International: $4.5/month/...