Odd Situation

3 views
Skip to first unread message

Dwayne

unread,
Jul 7, 2026, 4:36:56 AM (13 days ago) Jul 7
to Errors in Easylinuxtipsproject
I have run into a very odd situation on 2 different LM 22.3 systems. I use the guide to create a larger swapfile to help with memory when using gnome-boxes for my VMs. I follow the guide to the letter. But, I did NOT reboot, I just used the  sudo swapon /swapfile command. Then I immediately checked to see the new swapfile was there. It was. Before doing anything else, I also enable zswap as well (also to help with VM usage). I followed that all the way through, rebooted then verified with grep -r . /sys/module/zswap/parameters/ and all looked good. But, for some reason, after completing the zswap, my swapfile showed in the File System folder as the correct size, but if I looked at the system info, it showed no swap for the system and  swapon --show returned nothing. After much trial and error, I found that in order for the swapfile to stay I had to create the new swapfile then reboot before setting up zswap. 

I don't know if this has happened to anyone else or not, but it may be helpful to just have people just reboot instead of using the sudo swapon /swapfile command. I never tried to set up the zswap first, but maybe I should have.

But, this is an incredible library of information and I wanted to do my part to try and help keep it as accurate and helpful as possible. 

Thanks so much for all the work you put into this.

Beheerder Computertip

unread,
Jul 7, 2026, 4:42:34 AM (13 days ago) Jul 7
to Errors in Easylinuxtipsproject
Thanks for this information! I haven't had any such problem on my machines yet, but I'll look into it....

Op dinsdag 7 juli 2026 om 10:36:56 UTC+2 schreef Dwayne:
Reply all
Reply to author
Forward
0 new messages