diff --git a/genswap.sh b/genswap.sh index b67c976..849a836 100755 --- a/genswap.sh +++ b/genswap.sh @@ -41,8 +41,8 @@ function autoSwap(){ echo -e "${LGREEN}------------------------------------------------------------------${NC}" read - echo -e "${LCYAN}\nCreating file in ${SWAPPATH}...\n${NC}" - fallocate -l ${TOTALRAM}M ${SWAPPATH}${SWAPNAME} + echo -e "${LCYAN}\nCreating file ${SWAPPATH}/${SWAPNAME}...\n${NC}" + dd if=/dev/zero of=${SWAPPATH}${SWAPNAME} count=${TOTALRAM} bs=1MiB ls -lh ${SWAPPATH}${SWAPNAME} sleep 1