Hostxpeed
Login Get Started →
Server Management

How to Mount External Storage

5 min read
28 views
Jun 13, 2026

Prerequisites

Before mounting external storage, make sure you have:

  • SSH access to your VPS
  • Root or sudo privileges
  • External storage credentials or connection details

Method 1: Mount NFS Share

Connect to your VPS:

ssh hxroot@YOUR_SERVER_IP -p 22

Install NFS client:

sudo apt install nfs-common -y

Create mount point:

sudo mkdir -p /mnt/nfs

Mount NFS share:

sudo mount -t nfs 192.168.1.100:/export/path /mnt/nfs

Auto-mount on boot (add to /etc/fstab):

192.168.1.100:/export/path /mnt/nfs nfs defaults 0 0

Method 2: Mount SMB/CIFS (Windows Share)

Install cifs-utils:

sudo apt install cifs-utils -y

Create credentials file:

sudo nano /etc/smbcredentials
username=your_username
password=your_password
sudo chmod 600 /etc/smbcredentials

Mount SMB share:

sudo mount -t cifs //SERVER_IP/sharename /mnt/smb -o credentials=/etc/smbcredentials,uid=1000,gid=1000,iocharset=utf8

Method 3: Mount via SSHFS (SSH Filesystem)

Install sshfs:

sudo apt install sshfs -y

Create mount point and mount:

sudo mkdir -p /mnt/remote
sshfs user@remote-server:/remote/directory /mnt/remote

Unmount:

fusermount -u /mnt/remote

Method 4: Mount Block Storage (DigitalOcean, Vultr, etc.)

List available disks:

lsblk

If the volume is already formatted:

sudo mount /dev/vdb /mnt/volume

Verify Mounts

df -h
mount | grep /mnt

Unmount External Storage

sudo umount /mnt/nfs

Check External Storage Space

df -h /mnt/nfs

✅ External storage mounted successfully.

Was this article helpful?