Talk:Full New Users Installation guide
Confused at this stage
# mkswap root/swapfile
Edit /etc/fstab to add an entry for the swap file:
/swapfile none swap defaults 0 0
Once the system has booted, enable the swap file:
# swapon /swapfile
Gives an error when I reboot my Mate system in the startup about swap dependency then swapon says No such file or directory!
Hi,
I just noticed the same thing.
This worked for me:
Edit /etc/fstab to add an entry for the swap file:
/root/swapfile none swap defaults 0 0
And also,
# swapon /root/swapfile
Regards /Roger S
Actually, I think this is a more robust story:
Creating Swap File
As root use fallocate to create a swap file the size of your choosing (M = Megabytes, G = Gigabytes). For example, creating a 512 MB swap file:
# fallocate -l 512M /root/swapfile
Set the right permissions (a world-readable swap file is a huge local vulnerability)
# chmod 600 /root/swapfile
After creating the correctly sized file, format it to swap:
# mkswap /root/swapfile
Edit /etc/fstab to add an entry for the swap file:
/root/swapfile none swap defaults 0 0
Once the system has booted, enable the swap file:
# swapon /root/swapfile