How to Install Visual Studio Code (VSCode) on
Visual Studio Code (VSCode) is a popular and versatile ...
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.
Before you start, ensure that:
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
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
).
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
).
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.
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
With the mount point created, you can now mount the disk using the following command:
sudo mount /dev/sdb1 /mnt/data
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
.
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.
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 light server-ULightHost, comparable to AWS Lightsail
Configuration | Disk | Traffic | System | Original Price | Promo Price | Link |
---|---|---|---|---|---|---|
1 Core 1G RAM | 40GB | 200GB | Linux/ Windows | $4/mo | $1/month or $3/quarter | Link |
1 Core 2G RAM | 40GB | 400GB | Linux/ Windows | $6/mo | $1.9/month or $5/quarter | Link |
2 Core 2G RAM | 60GB | 600GB | Linux/ Windows | $7/mo | $2.9/month or $8/quarter | Link |
2 Core 4G RAM | 80GB | 800GB | Linux/ Windows | $9/mo | $3.9/month or $11/quarter | Link |
1 Core 1G RAM | 40GB | 1024GB | Linux/ Windows | $5.5/mo | $1.9/month or $5/quarter | Link |
1 Core 2G RAM | 40GB | 1024GB | Linux/ Windows | $7.5/mo | $2.9/month or $8/quarter | Link |
2 Core 2G RAM | 60GB | 2048GB | LLinux/ Windows | $9.5/mo | $3.9/month or $11/quarter | Link |
2 Core 4G RAM | 80GB | 3072GB | Linux/ Windows | $13/mo | $5.9/month or $17/quarter | Link |
SurferCloud cloud server-UHost, comparable to AWS EC2
CPU | Memory | Disk | Traffic | System | Original Price | Promo Price | Link |
---|---|---|---|---|---|---|---|
1C | 2G | 40G | Unmetered | Linux/ Windows | $16.57/mo | $5.9/mo | Link |
2C | 2G | 40G | Unmetered | Linux/ Windows | $25.48/mo | $6.9/mo | Link |
2C | 4G | 40G | Unmetered | Linux/ Windows | $35.64/mo | $10.9/mo | Link |
4C | 8G | 40G | Unmetered | Linux/ Windows | $64.49/mo | $18.9/mo | Link |
8C | 16G | 40G | Unmetered | Linux/ Windows | $132.39/mo | $36.9/mo | Link |
16C | 32G | 40G | Unmetered | Linux/ Windows | $247.79/mo | $68.9/mo | Link |
Visual Studio Code (VSCode) is a popular and versatile ...
As internet usage grows, many users seek ways to enhanc...
In today's digital world, businesses are increasingly r...