Quantcast
Viewing latest article 27
Browse Latest Browse All 41

Answer by Zoredache for Tips on using Linux without swap partition

I would fix it by going back and re-partitioning to give myself some virtual memory, but damn..

You don't need to have a full partition dedicated to swap, and you don't need to re-partition.

Create swap as a file is pretty easy. Just create a large empty file, run mkswap on it, then add the swap.

# create an big empty 1GB file (or whatever size you like)dd if=/dev/zero of=/swapfile bs=1M count=1024# format the file as swapmkswap /swapfile# turn it on.swapon /swapfile

If you want to make it permanent add it to your fstab

/swapfile swap swap defaults 0 0

Viewing latest article 27
Browse Latest Browse All 41

Trending Articles