Help with understanding log
Your /etc/fstab is incorrect.
It shows three entries for /swapfile...
/swapfile none swap sw 0 0
/swapfile none swap sw 0 0
/swapfile none swap sw 0 0
Edit your /etc/fstab using the terminal
application, with the command sudo -H gedit /etc/fstab
, and remove the first two /swapfile lines, and leave the third /swapfile line, save the edited file, and then reboot.
Extra note: Don't use badblocks
or e2fsck
to bad block a SSD/nvme.
Update #1:
BIOS
Lenovo V14-ADA
You have version E8CN25WW, dated 10/13/2020. There's a newer BIOS available, version E8CN27WW, dated 05 Feb 2021, and can be downloaded here.
Note: Confirm that I have the correct web page for your model #.
Note: Have good backups before updating the BIOS.
SWAP
Your 2G /swapfile is too small. We'll increase it to 4G...
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 12G 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
Update #2:
This computer freezes with Ubuntu and Fedora 34. Switching back to Windows for now.