Information Center

Virtual machine centos7 system mounts the hard disk


The command for attaching a hard disk to the CENTOS7 system:

American operation order:

df -TH
fdisk -l
fdisk /dev/xvdb
Press Enter twice
mkfs -t ext4 /dev/xvdb1
mkdir /www
mount /dev/xvdb1 /www
echo /dev/xvdb1 /www ext4 defaults 0 0 >> /etc/fstab

Some are mounted in the HOME directory. If we install the installation package in the HOME directory such as LNMP, we do not need to mount it. If we install WDCP and pagoda in the WWW directory, we need to change the HOME to the WWW mount directory.

Hong Kong Tsuen Wan VPS operation order:

mkdir /www

mount /dev/mapper/Xvdbgroup-xvdb1 /www
echo '/dev/mapper/Xvdbgroup-xvdb1 /www ext3 defaults 0 0' >> /etc/fstab


Pagoda installation order:

yum install -y wget && wget -O && sh ed8484bec