Hostxpeed
Login Get Started →
Server Management

How to Add New Disk to VPS

6 min read
23 views
Jun 10, 2026

Prerequisites

Before adding a new disk, make sure you have:

  • Additional disk attached via Hostxpeed control panel
  • SSH access to your VPS
  • Root or sudo privileges

Step 1: Verify New Disk is Detected

Connect to your VPS:

ssh hxroot@YOUR_SERVER_IP -p 22
lsblk

Look for a new disk (e.g., /dev/vdb, /dev/sdb).

Check with fdisk:

sudo fdisk -l

Step 2: Partition the New Disk

sudo fdisk /dev/vdb

Commands inside fdisk:

  • n – new partition
  • p – primary partition
  • 1 – partition number
  • Enter – default first sector
  • Enter – default last sector (use whole disk)
  • w – write changes and exit

Step 3: Format the Partition

For ext4 filesystem (recommended):

sudo mkfs.ext4 /dev/vdb1

For XFS (CentOS/RHEL):

sudo mkfs.xfs /dev/vdb1

Step 4: Create Mount Point

sudo mkdir -p /mnt/data

Step 5: Mount the New Disk

sudo mount /dev/vdb1 /mnt/data

Step 6: Verify Mount

df -h /mnt/data

Step 7: Mount Automatically on Boot

Get the UUID of new partition:

sudo blkid /dev/vdb1

Add to /etc/fstab:

sudo nano /etc/fstab

Add line:

UUID=your-uuid-here /mnt/data ext4 defaults 0 2

Step 8: Test fstab

sudo mount -a

No output means success. Reboot to test:

sudo reboot

After reboot, check:

df -h /mnt/data

Optional: Move Existing Data to New Disk

Example – move website files:

sudo systemctl stop nginx
sudo rsync -av /var/www/ /mnt/data/www/
sudo mount --bind /mnt/data/www /var/www
# Add bind mount to fstab
echo "/mnt/data/www /var/www none bind 0 0" | sudo tee -a /etc/fstab
sudo systemctl start nginx

✅ New disk added and mounted. You can now store data on the additional storage.

Was this article helpful?