SurferCloud Blog SurferCloud Blog
  • HOME
  • NEWS
    • Latest Events
    • Product Updates
    • Service announcement
  • TUTORIAL
  • COMPARISONS
  • INDUSTRY INFORMATION
  • Telegram Group
SurferCloud Blog SurferCloud Blog
SurferCloud Blog SurferCloud Blog
  • HOME
  • NEWS
    • Latest Events
    • Product Updates
    • Service announcement
  • TUTORIAL
  • COMPARISONS
  • INDUSTRY INFORMATION
  • Telegram Group
  • banner shape
  • banner shape
  • banner shape
  • banner shape
  • plus icon
  • plus icon

How to Mount a Disk on SurferCloud: A Step-by-Step Guide

October 15, 2024
4 minutes
TUTORIAL
221 Views

Mounting a disk is an essential task when setting up cloud servers, ensuring that your server has access to the attached storage devices. On SurferCloud, this process is straightforward, and in this tutorial, we'll walk you through the steps to successfully mount a disk to your cloud server.

Prerequisites

Before you start, ensure that:

  • You have access to your SurferCloud VPS instance.
  • You have a disk that needs to be mounted (either a new disk or an additional one).

Step 1: Access Your Server

To begin, log into your SurferCloud VPS via SSH. Use the following command to connect, replacing username and server_ip with your actual credentials:

ssh username@server_ip

Step 2: Identify the New Disk

Once connected, you need to identify the new disk that needs to be mounted. To do this, run the following command to list all available storage devices:

lsblk

This will show you all block devices on your system, including their mount points (if already mounted). Look for the unmounted disk (e.g., /dev/sdb).

Step 3: Partition the Disk (Optional)

If the disk is new and unpartitioned, you may need to partition it using a tool like fdisk. To start the partitioning process, use:

sudo fdisk /dev/sdb

Follow the prompts to create a new partition. Once done, use lsblk again to verify the new partition (e.g., /dev/sdb1).

Step 4: Format the Disk

Next, format the partition to the desired filesystem. The most commonly used filesystem is ext4, which is stable and suitable for most use cases:

sudo mkfs.ext4 /dev/sdb1

This command formats the partition as ext4. If you prefer another filesystem like XFS or NTFS, replace ext4 with the appropriate option.

Step 5: Create a Mount Point

Now that the disk is formatted, create a directory where the disk will be mounted. For example, if you want to mount it at /mnt/data, use:

sudo mkdir /mnt/data

Step 6: Mount the Disk

With the mount point created, you can now mount the disk using the following command:

sudo mount /dev/sdb1 /mnt/data

Step 7: Verify the Mount

To confirm that the disk has been successfully mounted, use the df -h command, which will show all mounted file systems:

df -h

You should see /dev/sdb1 listed and mounted to /mnt/data.

Step 8: Automate the Mount at Boot

To ensure that the disk is automatically mounted every time the server reboots, you need to add it to the /etc/fstab file. Open the file with a text editor like nano:

sudo nano /etc/fstab

Add the following line at the bottom, adjusting the paths if necessary:

/dev/sdb1 /mnt/data ext4 defaults 0 0

Save and close the file. This will automatically mount the disk when the server boots.

Conclusion

You have successfully mounted a disk to your SurferCloud VPS. By following these steps, you can easily add additional storage to your server and configure it for automatic mounting at boot. Whether you're expanding your server's capacity or adding dedicated storage for specific tasks, this process ensures your server is set up efficiently.

For any further assistance or troubleshooting, feel free to contact SurferCloud support.

SurferCloud Official Channels:

  • SurferCloud Website (Registration portal)
  • YouTube
  • Twitter
  • Official Telegram Group
  • Customer Support Telegram 1
  • Customer Support Telegram 2

SurferCloud light server-ULightHost, comparable to AWS Lightsail

ConfigurationDiskTrafficSystemOriginal PricePromo PriceLink
1 Core
1G RAM
40GB200GBLinux/
Windows
$4/mo$1/month
or $3/quarter
Link
1 Core
2G RAM
40GB400GBLinux/
Windows
$6/mo$1.9/month
or $5/quarter
Link
2 Core
2G RAM
60GB600GBLinux/
Windows
$7/mo$2.9/month
or $8/quarter
Link
2 Core
4G RAM
80GB800GBLinux/
Windows
$9/mo$3.9/month
or $11/quarter
Link
1 Core
1G RAM
40GB1024GBLinux/
Windows
$5.5/mo$1.9/month
or $5/quarter
Link
1 Core
2G RAM
40GB1024GBLinux/
Windows
$7.5/mo$2.9/month
or $8/quarter
Link
2 Core
2G RAM
60GB2048GBLLinux/
Windows
$9.5/mo$3.9/month
or $11/quarter
Link
2 Core
4G RAM
80GB3072GBLinux/
Windows
$13/mo$5.9/month or
$17/quarter
Link

SurferCloud cloud server-UHost, comparable to AWS EC2

CPUMemoryDiskTrafficSystemOriginal PricePromo PriceLink
1C2G40GUnmeteredLinux/
Windows
$16.57/mo$5.9/moLink
2C2G40GUnmeteredLinux/
Windows
$25.48/mo$6.9/moLink
2C4G40GUnmeteredLinux/
Windows
$35.64/mo$10.9/moLink
4C8G40GUnmeteredLinux/
Windows
$64.49/mo$18.9/moLink
8C16G40GUnmeteredLinux/
Windows
$132.39/mo$36.9/moLink
16C32G40GUnmeteredLinux/
Windows
$247.79/mo$68.9/moLink
Tags : How to Mount a Disk Mount Disk SurferCloud SurferCloud VPS

Related Post

3 minutes TUTORIAL

How to Connect to a SurferCloud Windows VPS U

Remote Desktop Protocol (RDP) is a convenient way to ac...

3 minutes TUTORIAL

How to Change the SSH Port on Ubuntu: A Compl

Changing the default SSH port on Ubuntu is an effective...

7 minutes TUTORIAL

How to Create an RDP VPS?

What is RDP VPS? RDP VPS (Remote Desktop Protocol Vi...

Affordable CDN

ucdn

2025 Special Offers:

annual vps

Light Server promotion:

ulhost-promo

Cloud Server promotion:

cloud server

Copyright © 2024 SurferCloud All Rights Reserved.  Sitemap.