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:

lsblk

Example Output:

NAME   MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
vda      252:0    0 40G  0 disk /
vdc      252:16   0 100G 0 disk
  • Here, vda is your root disk.

  • vdc is the newly attached external disk (unmounted).


Create a Partition on the New Disk

Use the fdisk command to create a partition:

Then inside fdisk:

Format the New Partition

After partition creation, format it with the ext4 filesystem:

Create a Mount Directory

Create a directory where you want to mount the disk:

You can replace /mnt/data with any folder name (e.g., /data, /backup).


Mount the Disk

Now mount the new partition to the folder:

Check if mounted successfully:

You should see an entry like:

Make Mount Persistent (After Reboot)

Edit the /etc/fstab file:

Add the following line at the end:

Save and exit ( Enter, Ctrl + X, then press y and enter).


Verify Configuration

Test your fstab entry to ensure no syntax errors:

If 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