How Do I Create a Swap Partition While Installing Ubuntu?
Contents

How do I create a swap partition after installing Ubuntu?

Creating the swap partition

  1. Boot to Ubuntu install CD and choose the option to run Ubuntu now.
  2. Go to system -> GParted Partition Editor.
  3. Delete the swap partition and, if there is nothing else in it, the extended partition that holds it.

How do I create a swap partition after installing 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.
Marcus Vance

Marcus Vance

Cybersecurity & Digital Privacy Researcher

Marcus Vance is a cybersecurity auditor and technology writer dedicated to educating the public about online safety, data privacy regulations, enterprise security, and emerging cyber threats.

Share this article
Twitter Facebook Pinterest