Ubuntu Swap file 100% full
by Gnusboy from LinuxQuestions.org on (#53085)
Hi y'all
I'm in a pickle. I am a long time Ubuntu user, but don't have a lot of time under the hood.
Can I increase the size of the 1.1 GB swap partition? If not, when it fails does it make the system completely unusable?
Also, can I use a live CD to stabilize the system before it dies completely?
Any help will be appreciated. Thank you.
I attached a df -hT output below.
I have two partitions on a 650GB HDD (divided roughly 50-50)
Partition 1 = Ubuntu 14.04
Partition 2 = Ubuntu 16.04
External HDD 1 TB 2 partitions; 462 GB and 537 GB
When I installed the 650 GB drive,
I kept Ubuntu 14.04 to save a lot of my data.
In the other drive I installed Ubuntu 16.04
Background:
The two partitions worked well until a few months ago. There seemed to be plenty of space available, except the 1.1 GB Swap file was getting full.
Long story short, I planned to copy everything to the external drive and nuke the entire drive. Then I was going to install Ubuntu 18.04.
About 6 months went by without doing the project.
I was also adding many new and important files to both partitions.
I used the partitions interchangeably. I had important files stuck in numerous folders scattered through both partitions and had transferred many to the external drive as a backup.
My naming scheme made it impossible for me to be certain if the duplicate folders contained all the files I wanted to save. To be certain, I had to check each folder and cross reference them to the external HDD. It took enormous time.
So, through the months, the 14.04 partition was getting more unstable. The 16.04 partition is also going bad.
I did not realize the swap partition had become full, causing more problems as it progressed.
=============================
ubuntu@ubuntu:~$ df -hT
ubuntu@ubuntu:~$ df -hT
Filesystem Type Size Used Avail Use% Mounted on
udev devtmpfs 1.8G 0 1.8G 0% /dev
tmpfs tmpfs 370M 6.2M 364M 2% /run
/dev/sr0 iso9660 1.5G 1.5G 0 100% /cdrom
/dev/loop0 squashfs 1.4G 1.4G 0 100% /rofs
/cow overlay 1.9G 1.7G 180M 91% /
tmpfs tmpfs 1.9G 768K 1.9G 1% /dev/shm
tmpfs tmpfs 5.0M 8.0K 5.0M 1% /run/lock
tmpfs tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup
tmpfs tmpfs 1.9G 528K 1.9G 1% /tmp
tmpfs tmpfs 370M 100K 370M 1% /run/user/999
/dev/sdb1 ext3 976M 60K 976M 1% /media/ubuntu/897fbe47-71a3-4afa-9722-109fc80bc2a4
/dev/sdb3 ext3 431G 77G 354G 18% /media/ubuntu/205504c6-6bf7-4fc0-a732-4ea634c2d00a
/dev/sdb2 ext3 500G 81G 420G 17% /media/ubuntu/d60ed036-350a-4524-833e-c91e7dd76fc3
/dev/sda9 ext4 73G 63G 6.0G 92% /media/ubuntu/abea86ce-98c8-4ae3-bb03-de28109696d1
/dev/sda8 ext4 104G 99G 8.0K 100% /media/ubuntu/a2aad275-090f-490e-a903-e4b68f52eb19


I'm in a pickle. I am a long time Ubuntu user, but don't have a lot of time under the hood.
Can I increase the size of the 1.1 GB swap partition? If not, when it fails does it make the system completely unusable?
Also, can I use a live CD to stabilize the system before it dies completely?
Any help will be appreciated. Thank you.
I attached a df -hT output below.
I have two partitions on a 650GB HDD (divided roughly 50-50)
Partition 1 = Ubuntu 14.04
Partition 2 = Ubuntu 16.04
External HDD 1 TB 2 partitions; 462 GB and 537 GB
When I installed the 650 GB drive,
I kept Ubuntu 14.04 to save a lot of my data.
In the other drive I installed Ubuntu 16.04
Background:
The two partitions worked well until a few months ago. There seemed to be plenty of space available, except the 1.1 GB Swap file was getting full.
Long story short, I planned to copy everything to the external drive and nuke the entire drive. Then I was going to install Ubuntu 18.04.
About 6 months went by without doing the project.
I was also adding many new and important files to both partitions.
I used the partitions interchangeably. I had important files stuck in numerous folders scattered through both partitions and had transferred many to the external drive as a backup.
My naming scheme made it impossible for me to be certain if the duplicate folders contained all the files I wanted to save. To be certain, I had to check each folder and cross reference them to the external HDD. It took enormous time.
So, through the months, the 14.04 partition was getting more unstable. The 16.04 partition is also going bad.
I did not realize the swap partition had become full, causing more problems as it progressed.
=============================
ubuntu@ubuntu:~$ df -hT
ubuntu@ubuntu:~$ df -hT
Filesystem Type Size Used Avail Use% Mounted on
udev devtmpfs 1.8G 0 1.8G 0% /dev
tmpfs tmpfs 370M 6.2M 364M 2% /run
/dev/sr0 iso9660 1.5G 1.5G 0 100% /cdrom
/dev/loop0 squashfs 1.4G 1.4G 0 100% /rofs
/cow overlay 1.9G 1.7G 180M 91% /
tmpfs tmpfs 1.9G 768K 1.9G 1% /dev/shm
tmpfs tmpfs 5.0M 8.0K 5.0M 1% /run/lock
tmpfs tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup
tmpfs tmpfs 1.9G 528K 1.9G 1% /tmp
tmpfs tmpfs 370M 100K 370M 1% /run/user/999
/dev/sdb1 ext3 976M 60K 976M 1% /media/ubuntu/897fbe47-71a3-4afa-9722-109fc80bc2a4
/dev/sdb3 ext3 431G 77G 354G 18% /media/ubuntu/205504c6-6bf7-4fc0-a732-4ea634c2d00a
/dev/sdb2 ext3 500G 81G 420G 17% /media/ubuntu/d60ed036-350a-4524-833e-c91e7dd76fc3
/dev/sda9 ext4 73G 63G 6.0G 92% /media/ubuntu/abea86ce-98c8-4ae3-bb03-de28109696d1
/dev/sda8 ext4 104G 99G 8.0K 100% /media/ubuntu/a2aad275-090f-490e-a903-e4b68f52eb19