First, check whether the hard disk device has a data disk # Execute fdisk -l first # The following are the results: Disk /dev/vda: 21.5 GB, 21474836480 bytes 255 heads, 63 sectors/track, 2610 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000736d7 Device Boot Start End Blocks Id System /dev/vda1 * 1 2611 20970496 83 Linux # Check the Tencent Cloud Server Data Hard Drive # We can see that there is a 20GB data disk that is not mounted. Look at the previous path /dev/vda1 Second, data hard disk partition (optional) # Execute fdisk /dev/vda1 # Enter n, p, 1, Enter, Enter, wq # The VDA here is the name of the data hard disk we saw above. If it is not this, you need to replace it according to your actual disk name. If it is the same as mine, just copy it directly. Third, ext3 format partition # Format as ext3 file system mkfs.ext3 /dev/vda1 Fourth, mount the new partition # A - Create a new directory mkdir /home # B - Mount the partition mount /dev/vda1 /home Fifth, write fstab to set automatic mounting at boot echo '/dev/vda1 /home ext3 defaults 0 0' >> /etc/fstab Sixth, check whether the mount is successful (df -h) # Execute df -h # The following is the execution result Filesystem Size Used Avail Use% Mounted on /dev/vda1 20G 1.2G 18G 7% / /dev/vda1 20G 1.2G 18G 7% /home The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: Detailed explanation of the role of the new operator in Js
>>: The difference between Decimal type and Float Double in MySQL (detailed explanation)
Problem: vue-cil3 runs with warnings potentially ...
Phenomenon: Run an image, for example, ubuntu14.0...
When the front-end requests the interface, it is ...
1. Use CSS Copy code The code is as follows: style...
Quickly modify the table structure of a MySQL tab...
Delete a file by its inode number First use ls -i...
In Beginners' Understanding MySQL Deadlock Pr...
Preface This tutorial installs the latest version...
The HTML specification document introduces the cr...
Use CSS to prevent Lightbox to realize the displa...
Effect picture: html: <div class='site_bar...
1. Tools We need two tools now: MySQL server (mys...
.imgbox{ width: 1200px; height: 612px; margin-rig...
Preface: This article mainly introduces the query...
Docker installation Install dependency packages s...