Alibaba Cloud Fast Disk Mounting Tutorial

 

 

 

 

Server connection tutorial: http://bbs.aliyun.com/read/146157.html?
Many new users are confused about how to mount and use the data disk after purchasing the server. Today, we will introduce to you how to quickly mount the hard disk to the system.
Note: Mount the hard disk first and then install the environment
Linux hard disk mounting is one of the more common management operations . By default, the data disk is not mounted and needs to be manually mounted to the system.    
The specific operation is divided into three steps:    
Hard disk mount 1) The disk needs to be formatted    
Hard disk mount 2) After formatting, the hard disk is mounted to the required mount point      
Hard disk mounting 3) Finally, it is necessary to add a partition startup table, so that the next time the system starts up, the hard disk is automatically   .
The detailed graphic tutorial of hard disk mounting is as follows:
Hard disk mount 1. View the data disk Before partitioning and formatting the data disk, use the " df -lh " command, you cannot see the data disk, you can use the "fdisk -l" command to view
 
 
 
Check that the newly added hard disk is /dev/xvdb: 21.5 GB
 
Hard disk mount 2: Format the unused disk. Before operating the data drive letter, please confirm whether the disk has been used. If there is important data, please operate with caution to avoid data loss and unnecessary trouble. The specific formatting command is: mkfs.ext3 /dev/xvdb , that is, it is being formatted. At this time, please wait patiently for the formatting to complete (it takes a long time).
 
 
Hard disk mounting 3: Mount the formatted disk to the hard disk. Before mounting the hard disk, create a mount point on the server that needs to be mounted. For example, you can create a www directory in the root directory. By default, the command to jump to the root directory is: cd .. The command to create a directory is: mkdir /www The hard disk is mounted to the www directory,
Hard disk mount command: mount /dev/xvdb /www/ ,
Modify fstab so that the hard disk will be automatically mounted when the system starts up, add partition information and use the command "echo '/dev/xvdb /www ext3 defaults 0 0' >> /etc/fstab" (without quotation marks) to write the new partition information.
 
Hard disk mount 4: Execute: init 6 to gracefully restart the server.
Hard disk mount 5: After restarting the server, enter the command: df -lh to check whether the second disk is properly mounted. If the hard disk is mounted normally, you will see that the second disk is mounted.
 
 
 
The following notes:
 
1: Hard disk mounting is suitable for installing wdCP panel installation tutorial, please see: http://bbs.aliyun.com/read/146205.html?
2: If you want to install LuManager; easypanel; AMH, please mount the hard disk to home, you just need to change the above WWW to home
3: Other panel installation tutorials: http://bbs.aliyun.com/read.php?spm=0.0.0.0.RUWJ3z&tid=146156
 

 
 
 
There are more articles about Alibaba Cloud server configuration , which will definitely help you 
Alibaba Cloud server, wamp environment, new site server configuration problems, and some questions about  
how to choose a server to configure a multi-server configuration if the local FTP connection is not connected  
Apache server configuration php problem  

 

 

 

 

 

 

 

 

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326567621&siteId=291194637