Tencent cloud mount the hard drive

1. Cloud Tencent HOME directory hard mounted to select the file system and sequentially performed according to the actual directory

fdisk -l (查看没有挂载的磁盘)
df -lhT (查看系统盘是哪种文件格式ext4或者ext3,目前最新的都是ext4)
mkfs.ext4 /dev/vdb   (格式化)
mount /dev/vdb /home/  (默认挂载点home,也可以自己创建一个文件夹)
echo '/dev/vdb /home ext4 defaults 0 0' >> /etc/fstab  (服务器启动自动挂载磁盘,添加分区信息)
df -lh  (查看是否成功)

Guess you like

Origin www.cnblogs.com/virtulreal/p/11608647.html