Ubuntu 20.04 Crashing every 1-2 days

Solution 1:

BIOS

ASUS ROG STRIX X370-F GAMING

You have a really old BIOS version 3803 from 1/22/2018. There's a newer BIOS available, version 5603, from 8/10/2020, and can be downloaded from here.

Note: Confirm that I have the correct web page for your model # motherboard.

Note: Have good backups before updating the BIOS.

Note: Some BIOS allow updating from directly in the current BIOS. Otherwise, if you don't have Windows, try FreeDOS at http://www.freedos.org/.

MEMORY

Ryzen 7 1700

Ryzen processors are very fussy about RAM.

The Corsair CMW16GX4M2C3200C16 doesn't appear in the supported memory list document. See CPU/memory docs here.

Go to https://www.memtest86.com/ and download/run their free memtest to test your memory. Get at least one complete pass of all the 4/4 tests to confirm good memory. This may take many hours to complete.

DISK

KINGSTON SA400S37120G (SBFK71E0)

Note: Check for firmware updates for the SSD. Get the Kingston SSD Manager here.

/dev/sdb2 is being remounted read-only.

The SMART data looks fine.

Let's check your Linux filesystem on /dev/sdb2...

  • 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/sdb2, replacing sdXX with the number you found earlier
  • repeat the fsck command if there were errors
  • type reboot

SWAP

Your 2G /swapfile is too small. Let's 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 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

Update #1:

memtest did fail with the original memory. Memory replaced. memtest now runs without error.

Update #2:

Re-seated GPU.