From 722ac296f304cc7e5404f3853d6a70b518875a87 Mon Sep 17 00:00:00 2001 From: yanglc <65783234+ylc429@users.noreply.github.com> Date: Mon, 21 Jun 2021 18:49:27 +0800 Subject: [PATCH] Update create-swap.sh --- create-swap.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/create-swap.sh b/create-swap.sh index 24fb892..84d8fd8 100644 --- a/create-swap.sh +++ b/create-swap.sh @@ -13,10 +13,10 @@ get_char() stty echo stty $SAVEDSTTY } -echo "按任意键添加1G大小的SWAP分区:" +echo "按任意键添加2G大小的SWAP分区:" char=`get_char` echo "###########开始添加SWAP分区##########" -dd if=/dev/zero of=/mnt/swap bs=1M count=1024 +dd if=/dev/zero of=/mnt/swap bs=1M count=2048 echo -e echo " ###########设置交换分区文件##########" mkswap /mnt/swap