Under Linux, mount a network disk that supports WebDav to expand the VPS space

888u

Last update at :2024-04-11,Edit by888u

Some time ago, I purchased a nextcloud network disk from Novos, which supports WebDav. Below are simple instructions for mounting to a VPS to expand a VPS with a small space.

novos’ nextcloud network disk purchase link: https://billing.novos.be/store/novos-brick

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

1. Install davfs2

Under Ubuntu/Debian

apt-get install davfs2

Under CentOS

yum install davfs2

2. Create the directory and mount it

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

Enter your account number and password.

2. Advanced usage

1. Create a user for davfs2

usermod -aG davfs2 username

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

mkdir ~/novos
mkdir ~/.davfs2

Copy configuration file

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

3. Set user permissions (change to your own user name)

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 password

It is recommended to add it in /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

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

Recommended site searches: virtual host application, domain name registration query IP proxy address, exclusive host, Hong Kong server, local IP query, registration-free jsp space, cheap cloud server 5 yuan a month, domain name registration service, space registration,

Under Linux, mount a network disk that supports WebDav to expand the VPS space

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码