- Ensure that your system has sufficient swap space available. The swap space should be equal (not advisable) to or larger than your installed RAM.
- Edit the GRUB configuration file using a text editor:
sudo nano /etc/default/grub
sudo nano /etc/default/grub