ok I recently formatted and reinstalled EndeavourOS
I want to set my Grub boot delay to zero (it’s my only OS)
and I’d like to set/reduce Swappiness to 10
but I forgot how to do it
Searching on DuckDuckGo produced way too many search results, most pointing to a systemctl.d folder, and creating a file, but they each use a different name for the file and I got all flummoxed
For changing grub timeout type sudo nano /etc/default/grub in a terminal and set GRUB_TIMEOUT=0 .
And generate grub config file with the command sudo grub-mkconfig -o /boot/grub/grub.cfg .
Getting rid of swapfile is easy . I assume you created the file /swapfile for swap .
Turn off swap with the command sudo swapoff /swapfile
Remove the fstab entry for swapfile . sudo nano /etc/fstab . Comment the line /swapfile none swap sw 0 0
Reboot and see if there is any delay in booting .
Delete the file /swapfile ( sudo rm /swapfile ) .
If it’s a partition don’t delete it . Just disable the swap with first command , replacing /swapfile with swap partition and remove fstab entry .
I had troubles with deleting a swap partition previously .
Edit : swapon --show this command will show you which file is used as swap .
Yep . Deleting a swap partition delayed my boot time 90s because the system was searching for that swap partition . This happened even after I remove the line from fstab . So don’t delete a swap partition unless you really know how to .
I’m not sure, if that is a good idea. It should be fine as long as no problems occur. You might get in trouble if there are problems with the latest kernel and you need to boot with another kernel (e.g. kernel-lts). I recommend to set the timeout to at least 1.
A swap partition gets activated by systemd no matter if you have an entry for it in fstab or not. You need to delete your swap partition or disable systemd “process” which activates it.