1.查看服务器默认安装时根分区的大小和home分区的大小
2.把home分区的一部分空间划分给根分区
(1)把extend_root.sh文件上传到服务器上
[root@localhost ~]# ls
anaconda-ks.cfg extend_root.sh
(2)查看extend_root.sh内容
[root@localhost ~]#cat extend_root.sh
#!/bin/bash
#############################################################################
# @programe : extend_root.sh
# @version : 0.0.1
# @function@ :
# @campany :
# @dep. :
# @writer : Liu Cheng Ji
# @date : 2020-03-19
#############################################################################
if [ $(id -u) != "0" ];then
echo "Error:You must be use root to run this script,please use root to run!"