Change Swap size on a running linux machine linux • Jul 10, 2017 Make all swap off sudo swapoff -a Resize the swapfile sudo dd if=/dev/zero of=/swapfile bs=1M count=1024 Make swapfile usable sudo mkswap /swapfile Make swapon again sudo swapon /swapfile Tags linux swap Subscribe to our newsletter Get the latest posts delivered right to your inbox. Your email address Subscribe Now check your inbox and click the link to confirm your subscription. Please enter a valid email address Oops! There was an error sending the email, please try later. davide Recommended for you Sony LA-EA4: Seamless Integration for A-Mount Lenses on E-Mount Cameras a year ago • 2 min read Sony LA-EA5: Bridging the Worlds of A-Mount and E-Mount Photography a year ago • 2 min read Sony 35mm f/1.8 (SAL35F18): Unveiling the Essence of Every Frame a year ago • 2 min read