WordPress knowledge sharing

BT Panel Linux automatic disk mounting tool automatically mounts partitions to the/www directory

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 Blog Add a new partition and mount under Linux How 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.

Lao Wei suggested that the pagoda panel is suitable for novices and Xiaobai to build a website, and supports Linux and Windows systems, Click to go directly to the pagoda website Register an account and get a free professional edition gift package of ¥ 3188 (only 1188 yuan for permanent authorization of the professional edition). New users can enjoy a professional edition experience of 0.99 yuan for 7 days.
Recommended selection of pagoda panel Alibaba Cloud Tencent Cloud The server
For more information, see Special topic of pagoda panel
Click to view NetEase Cloud Classroom "Introduction to Pagoda Linux Panel for Novice"

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

Centos/Fedora:

yum install wget -y && wget -O auto_disk.sh https://download.bt.cn/tools/auto_disk.sh && bash auto_disk.sh

Ubuntu:

wget -O auto_disk.sh https://download.bt.cn/tools/auto_disk.sh && sudo bash auto_disk.sh

Debian:

wget -O auto_disk.sh https://download.bt.cn/tools/auto_disk.sh && bash auto_disk.sh

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.

 It is normal that the pagoda panel and website cannot be accessed when the data disk is mounted

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.

 How to see the data disk mounted successfully

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.

 Use the command line to verify whether the data disk is mounted successfully

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.

Like( zero )
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.