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

[MicrosoftVisualStudio]: Hiển thị số dòng lệnh

Hiển thị số dòng lệnh trong Microsoft Visual Studio Hiển thị số dòng trong Microsoft Visual Studio giúp tìm đến dòng lệnh gây ra lỗi. Nhấn Options Đánh dấu mục Line numbers ở phần Display Nhấn OK để lưu lại thiết lập.

Learn MATLAB

MATLAB is an abbreviation for MAT rix LAB oratory. Here is list of free online courses to learn MATLAB.

Hydra: Notes

Hydra v9.1 (c) 2020 by van Hauser/THC & David Maciejak - Please do not use in military or secret service organizations, or for illegal purposes (this is non-binding, these *** ignore laws and ethics anyway).