Introduction
When you add a new drive to your server, some service providers will automatically mount the new drive to your server at the location /mnt/name-of-drive
. 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.
Procedure
- Use the
df
command to get the device name of the new drive.[root@server ~]# df
Please note that in the above example, the drive
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/dev/sdb
is the new drive that was added to the server and is currently mounted at/mnt/VOLUME_123456
. - Unmount the new drive from the server.
umount /mnt/VOLUME_123456
- Create the new mount-point directory.
mkdir -v /$mountpoint
Please note "$mountpoint" must be replaced with the new mount point. - Mount the drive on the new mount point.
mount /dev/sdb /$mountpoint
Please note that you must update the mount point in the/etc/fstab
file to ensure the drive is mounted on the new mount point after each reboot at this new location.
Comments
0 comments
Article is closed for comments.