Skip to main content

Arch Linux: Create Swap Partition

Example of creating a 1.5GB swap partition on Arch Linux

fallocate -l 1536M /swapfile
dd if=/dev/zero of=/swapfile bs=1M count=1536 status=progress
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile

Edit /etc/fstab file

...
/swapfile none swap defaults 0 0

Mount partition

# mount -a

Popular posts from this blog

Wireguard VPN: Notes

Notes while trying Wireguard VPN on some of my testbeds.

Powershell: Install IIS

Run Powershell as Administrator, then run the command below to install IIS. Install-WindowsFeature Web-WebServer Check after installing Get-WindowsFeature *Web*

macOS: Free Softwares from Apple

The following Apple's softwares used to be NOT free. Apple's free software Software Price Notes GarageBand 0 iMovie 0 Keynote 0 Numbers 0 Pages 0 Photos 0 Replace iPhoto