Update create-swap.sh
parent
1396c22b58
commit
722ac296f3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue