Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to add a hard disk to a CVM

2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article is about how to add a hard disk to a cloud server. The editor thinks it is very practical, so I hope you can learn something after reading this article. Let's take a look at it with the editor.

To add a hard disk to a CVM, you need to use the permissions of your root account to run the script. Here's how to mount the hard disk for the first time.

1. Enter the command at the terminal, and the script will be automatically downloaded and given permission.

Wget https://raw.githubusercontent.com/Vtrois/Auto-fdisk/master/auto_fdisk.sh

Chmod + x auto_fdisk.sh

. / auto_fdisk.sh

2. The script will automatically perform the initialization function of auto_fdisk.sh, after which the script will automatically detect and display the drive letter other than the system disk (/ dev/vda1) on the server, and then enter the drive letter to be executed. For example, enter Q if / dev/vdb exits.

3. The script will automatically create the partition and format the hard disk, and then you will be asked to enter the location where the hard disk needs to be mounted. For example, mounting / data is needed to install the general lnmp environment, and mounting / www is required to install the wdcp environment. You can enter it here according to the actual needs.

4. At this time, all the input work has been completed, waiting for the script to be mounted automatically and set to boot to mount automatically, and complete the operation of creating partition format and mounting hard disk in Linux environment.

The CVM is easy to operate, efficient and easy to use. It is equipped with a website management assistant and an automated server environment setting program, which is especially suitable for webmasters renting CVM.

The above is how to add a hard disk to a CVM. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report