fallocate is no longer a viable option, use dd
This commit is contained in:
parent
f597d1285f
commit
52fde23819
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user