分区脚本 cd /root cat <> /root/fdisk.sh #!/bin/bash disk=“/dev/vda” #Create a new partition echo "p n w " | fdisk $disk