Change Swap partition in Ubuntu

  • Create swap and turn it on
  • add swap entry to fstab
  • update grub sudo gedit /etc/default/grub
  • update sudo gedit /etc/initramfs-tools/conf.d/resume
  • you can get UUID with sudo blkid
  • if you just update the fstab and not the RESUME values, it'll not boot on the next restart, will give an error about resume device.

Please note that this site and the posts on it are, and will always be, a work in progress. If i waited for perfection, i’d never get anything done.