SWAP
Edit /etc/fstab...
sudo -H gedit /etc/fstab
And edit this line to remove tabs, and use only spaces...
/swapfile none swap sw 0 0
Reduce your /swapfile... it's way too big...
Note: Incorrect use of the rm and dd commands can cause data loss. Suggest copy/paste.
In the terminal...
sudo swapoff -a # turn off swap
sudo rm -i /swapfile # remove old /swapfile
sudo dd if=/dev/zero of=/swapfile bs=1M count=4096
sudo chmod 600 /swapfile # set proper file protections
sudo mkswap /swapfile # init /swapfile
sudo swapon /swapfile # turn on swap
free -h # confirm 16G RAM and 4G swap
Edit /etc/fstab, using sudo -H gedit /etc/fstab or sudo pico /etc/fstab.
Confirm this /swapfile line in /etc/fstab... and confirm no other “swap” lines... use SPACES in this line... confirm NO TABS...
/swapfile none swap sw 0 0
reboot # reboot and verify operation
Reset your vm.swappiness...
Edit /etc/sysctl.conf...
sudo -H gedit /etc/sysctl.conf
Find the line that contains vm.swappiness=80 and change it to =60.
Save the file.
sudo sysctl -p
BIOS
ThinkPenguin Snares https://www.thinkpenguin.com/gnu-linux/snares-penguin-gnu-linux-notebook
You have a very old BIOS version 1.03.06 dated 06/25/2014. Tell me the EXACT make/model of your computer or motherboard, and we'll check for a newer BIOS.
Update #1:
Let's check your file system...
- boot to a Ubuntu Live DVD/USB in “Try Ubuntu” mode
- open a
terminal window by pressing Ctrl+Alt+T
- type
sudo fdisk -l
- identify the /dev/sdXX device name for your "Linux Filesystem"
- type
sudo fsck -f /dev/sdXX, replacing sdXX with the number you found earlier
- repeat the
fsck command if there were errors
- type
reboot
Update #2:
Initial failure during dd command. Freeze at login screen. fsck fixed some errors. Swap is now working correctly. BIOS appears to be old, but current. Runs ok when booted to Ubuntu Live DVD/USB. Needs Ubuntu reinstall.