Initialize New Volume in Linux Server
This document provides step-by-step instructions to identify, format, and mount a newly attached disk on a NeevCloud Linux Server.
Prerequisites
Before starting:
You are logged in as a root user or a user with sudo privileges.
The external disk has been attached to your Linux VM via the NeevCloud console. Link
You can verify the disk under “Attached Volumes” in your NeevCloud panel.
Step-by-Step Instructions
List Available Disks
Run the following command to check all available disks:
lsblkExample Output:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
vda 252:0 0 40G 0 disk /
vdc 252:16 0 100G 0 diskHere,
vdais your root disk.vdcis the newly attached external disk (unmounted).

Create a Partition on the New Disk
Use the fdisk command to create a partition:
sudo fdisk /dev/vdcThen inside fdisk:
n → Create a new partition
p → Choose primary partition
1 → Partition number 1
<Enter> → Default first sector
<Enter> → Default last sector (use full size)
w → Write changes and exit
Format the New Partition
After partition creation, format it with the ext4 filesystem:
sudo mkfs.ext4 /dev/vdc1
Create a Mount Directory
Create a directory where you want to mount the disk:
sudo mkdir /mnt/dataYou can replace /mnt/data with any folder name (e.g., /data, /backup).

Mount the Disk
Now mount the new partition to the folder:
sudo mount /dev/vdc1 /mnt/dataCheck if mounted successfully:
df -hYou should see an entry like:
/dev/vdc1 99G 60M 94G 1% /mnt/data
Make Mount Persistent (After Reboot)
Edit the /etc/fstab file:
sudo nano /etc/fstabAdd the following line at the end:
/dev/vdc1 /mnt/data ext4 defaults 0 0Save and exit ( Enter, Ctrl + X, then press y and enter).

Verify Configuration
Test your fstab entry to ensure no syntax errors:
sudo mount -aIf no errors appear, the mount is configured correctly and will persist across reboots.

Result
You have successfully mounted and configured an external disk on your NeevCloud Linux Server.
The new storage is now available at /mnt/data (or your chosen directory).
Last updated