If there is an additional data disk when you purchase a server, you need to mount the data disk to the directory specified by the system disk (that is, use the data disk as a folder of the system disk).Weieis BlogAdd a new partition and mount under LinuxHow to manually mount a data disk to a specified directory is described in detail in.However, manual attachment is troublesome, and unfamiliar friends are prone to make mistakes.For the convenience of netizens, the pagoda panel has launched a script for automatically attaching data disks. It supports Centos, Ubuntu, Debian, Fedora, and can automatically attach data disks to/www or any directory with one click.
If you need to mount to another directory, you can download the script locally, and change the "/www" after "setup_path=/www" to the directory you want to mount.
Note: Please mount the disk before installing the pagoda, otherwise the program will skip the mounting process directly.
Be sure to back up the website files and data before operation to avoid accidents.
Tool description: 1: This tool mounts the data disk to the/www directory by default 2: If your server has previously installed Windows, you need to manually delete the NTFS partition, and the mount tool will directly skip the NTFS partition 3: If your disk is partitioned and not mounted, the tool will automatically mount the partition to/www 4: If your disk is a new disk, the tool will automatically partition and format it into an ext4 file system 5: This tool only automatically mounts one partition. If you have multiple data disks, please manually mount the disks that are not automatically attached
If you are interested in it, you can try it. Compared with manual attachment, one click automatic attachment is much more convenient, and it is not easy to make mistakes.
matters needing attention:
1. It is normal that neither the pagoda panel nor the website can be accessed during data disk mounting. The command line shows that the two parts of the migrated data can be accessed normally until the data disk is mounted successfully (migration is completed)!
As shown in the figure below, it is not completed until the green done after starting is displayed.
2. If the data disk has a large capacity, it will take a long time. The command line will always display: data is hung in the middle, please wait patiently, and do not operate anything else!
3. How do you think the data disk is mounted successfully?
As shown in the figure below, the name of the data disk (787G) is/WWW, indicating that it has been mounted to the www directory of the system disk (50G), which means that the mount is successful.
Then use the command line to verify: use the df - h command to query, and you will see/dev/vda1 50G and/dev/vdb1 787G.
As shown in the figure below, we can see/dev/vda1 50G and/dev/vdb1 787G, where vdb1 is mounted in the/www directory, indicating that the mount is successful.
Today is the first day of 2018. We would like to thank our friends for their support and love for this blog for more than a year, and wish you all the best in the new year!I also hope that you can come to Weieis blog as always to exchange VPS knowledge.
Article name: BT Panel Linux Automatic Disk Mounting Tool Automatically Attaches Partitions to the/www Directory Article link:https://www.vpsss.net/3169.html Copyright notice: The resources of this website are only for personal learning and exchange, and are not allowed to be reproduced and used for commercial purposes, otherwise, legal issues will be borne by yourself. The copyright of the pictures belongs to their respective creators, and the picture watermark is for the purpose of preventing unscrupulous people from stealing the fruits of labor.