When you add an additional drive to your server, some service providers will automatically mount the new drive to your server at the location
This guide is intended to demonstrate how to change the mount-point of your drive to another location.
Please note that the cPanel staff can't perform these tasks for you as these are actions that our software does not manage. The server owner or System Administrator must perform this.
First, you will need to get the name of the new drive according to the server. The easiest way to do this is to see your currently mounted drives using the df command:
Filesystem 1K-blocks Used Available Use% Mounted on
devtmpfs 16060772 0 16060772 0% /dev
tmpfs 16085700 0 16085700 0% /dev/shm
/dev/sda1 41931756 6835028 35096728 17% /
/dev/loop0 3997376 60632 3727032 2% /tmp
/dev/sdb 418772567 12345 418772567 1% /mnt/VOLUME_123456
From the above example, the drive
/dev/sdb is the new drive that was added to the server, and you can see that this is currently mounted at
/mnt/VOLUME_123456. Let's say we wanted to change this to
/home2 so that it can be used for cPanel users.
1. Unmount the new drive from the server:
2. Create the new mount-point directory (in our example, /home2)
mkdir -v /home2
3. Mount the drive at /home2 using the "dev" disk name:
mount /dev/sdb /home2
If no error is received, you can check the output of df once again to confirm that the mount-point of the disk has been changed.
To ensure that the drive is mounted after each reboot at this new location, you will need to ensure that it is added to your fstab file. Please see the following article for additional information on this: How to add storage devices to /etc/fstab