Sam@lemmy.ca to Selfhosted@lemmy.worldEnglish · 1 year agoHow much swap?message-squaremessage-square2fedilinkarrow-up10arrow-down10file-text
arrow-up10arrow-down1message-squareHow much swap?Sam@lemmy.ca to Selfhosted@lemmy.worldEnglish · 1 year agomessage-square2fedilinkfile-text
minus-squarez3bra@lemmy.sdf.orglinkfedilinkEnglisharrow-up0·1 year agoDon’t even bother with a SWAP partition. Create an empty file on your / partition so you can grow/shrink it as needed. did if=/dev/zero of=/SWAP bs=1024m count=4 mkswap /SWAP swapon /SWAP
minus-squarefloat@feddit.delinkfedilinkEnglisharrow-up0·edit-21 year agoThis is the way! There’s a catch with swap files on encrypted disks and hibernation but that’s quite a special case. Edit: forgot to mention zswap, the compressed version of swap.
Don’t even bother with a SWAP partition. Create an empty file on your / partition so you can grow/shrink it as needed.
did if=/dev/zero of=/SWAP bs=1024m count=4 mkswap /SWAP swapon /SWAP
This is the way! There’s a catch with swap files on encrypted disks and hibernation but that’s quite a special case. Edit: forgot to mention zswap, the compressed version of swap.