Frequent Question: How Do I Increase Swap Space in Linux Mint?
Contents

How do I change the swap size in Linux Mint?

To resize swap, I did this:

  1. reboot from installation USB drive, so that the root filesystem is not mounted.
  2. reduce the size of the root filesystem: Code: Select all sudo lvresize -r -L -8G /dev/mint-vg/root.
  3. increase the size of the swap partition: Code: Select all sudo lvresize -L +8G /dev/mint-vg/swap_1.

How do I resize swap space in Linux?

The basic steps to take are simple:

  1. Turn off the existing swap space.
  2. Create a new swap partition of the desired size.
  3. Reread the partition table.
  4. Configure the partition as swap space.
  5. Add the new partition/etc/fstab.
  6. Turn on swap.
Robert Thorne

Robert Thorne

Automotive & Future Transportation Editor

Robert Thorne covers electric vehicle innovations, autonomous driving systems, global mobility trends, and automotive engineering developments.

Share this article
Twitter Facebook Pinterest