1

just installed Ubuntu 20.04. the system keeps freezing and i have to turn it off with the power button and on again. Can someone help me analyze this log file, if there's maybe something wrong that i'm unaware of?

11:42:46 gdm-session-wor: gkr-pam: unable to locate daemon control file
11:42:45 logger: /usr/sbin/vmware-authdlauncher: error while loading shared libraries: libssl.so.1.0.2: cannot open shared object file: No such file or directory
11:42:37 kernel: snd_hda_intel 0000:03:00.6: No response from codec, resetting bus: last cmd=0x0143a000
11:42:35 systemd: Failed to start Load/Save Screen Backlight Brightness of backlight:amdgpu_bl0.
11:42:35 systemd-backlig: amdgpu_bl0: Failed to write system 'brightness' attribute: No such device or address
11:42:35 systemd: Failed to start Load/Save Screen Backlight Brightness of backlight:acpi_video0.
11:42:35 systemd: Failed to start Load/Save Screen Backlight Brightness of backlight:acpi_video0.
11:42:35 systemd-backlig: Failed to get backlight or LED device 'backlight:acpi_video0': No such device
11:42:34 kernel: snd_pci_acp3x 0000:03:00.5: Invalid ACP audio mode : 1
11:42:33 kernel: /usr/lib/systemd/system-generators/systemd-fstab-generator failed with exit status 1.
11:42:33 kernel: Failed to create unit file /run/systemd/generator/swapfile.swap, as it already exists. Duplicate entry in /etc/fstab?
11:42:33 kernel: Failed to create unit file /run/systemd/generator/swapfile.swap, as it already exists. Duplicate entry in /etc/fstab?
11:42:33 kernel: Failed to create unit file /run/systemd/generator/swapfile.swap, as it already exists. Duplicate entry in /etc/fstab?
11:42:33 kernel: integrity: Problem loading X.509 certificate -65

ar@Aruntu:~$ sudo lshw -C memory [sudo] password for ar:

  *-memory                  
       description: System Memory
       physical id: 1
       slot: System board or motherboard
       size: 12GiB
     *-bank:0
          description: Row of chips DDR4 Synchronous Unbuffered (Unregistered) 2400 MHz (0.4 ns)
          product: 8ATF1G64HZ-2G3B1
          vendor: Micron Technology
          physical id: 0
          serial: 14D7D62B
          slot: DIMM 0
          size: 8GiB
          width: 64 bits
          clock: 2400MHz (0.4ns)
     *-bank:1
          description: SODIMM DDR4 Synchronous Unbuffered (Unregistered) 2400 MHz (0.4 ns)
          product: 4ATF51264HZ-2G6E1
          vendor: Micron Technology
          physical id: 1
          serial: 00000000
          slot: DIMM 0
          size: 4GiB
          width: 64 bits
          clock: 2400MHz (0.4ns)
  *-cache:0
       description: L1 cache
       physical id: 3
       slot: L1 - Cache
       size: 192KiB
       capacity: 192KiB
       clock: 1GHz (1.0ns)
       capabilities: pipeline-burst internal write-back unified
       configuration: level=1
  *-cache:1
       description: L2 cache
       physical id: 4
       slot: L2 - Cache
       size: 1MiB
       capacity: 1MiB
       clock: 1GHz (1.0ns)
       capabilities: pipeline-burst internal write-back unified
       configuration: level=2
  *-cache:2
       description: L3 cache
       physical id: 5
       slot: L3 - Cache
       size: 4MiB
       capacity: 4MiB
       clock: 1GHz (1.0ns)
       capabilities: pipeline-burst internal write-back unified
       configuration: level=3
  *-firmware
       description: BIOS
       vendor: LENOVO
       physical id: d
       version: E8CN25WW
       date: 10/13/2020
       size: 128KiB
       capacity: 8MiB
       capabilities: pci upgrade shadowing cdboot bootselect edd int5printscreen int9keyboard int14serial int17printer int10video acpi usb biosbootspecification netboot uefi

ar@Aruntu:~$ sudo dmidecode -s bios-version E8CN25WW ar@Aruntu:~$ free -h

              total        used        free      shared  buff/cache   available
Mem:          9.7Gi       2.0Gi       2.4Gi       122Mi       5.3Gi       7.3Gi
Swap:         2.0Gi        14Mi       2.0Gi

ar@Aruntu:~$ cat /etc/fstab

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/nvme0n1p2 during installation
UUID=0cf09152-a222-487d-a43e-6d12f148d8bc /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/nvme0n1p1 during installation
UUID=B346-574B  /boot/efi       vfat    umask=0077      0       1
/swapfile                                 none            swap    sw              0       0

ar@Aruntu:~$

heynnema
  • 68,647
  • 15
  • 124
  • 180

1 Answers1

1

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.

heynnema
  • 68,647
  • 15
  • 124
  • 180
  • Hi, i'm new to this so can you please be more specific? what do you mean by "remove the first two lines"? how do i remove the lines? – Arsenio Rechards Jun 05 '21 at 16:56
  • @ArsenioRechards I updated my answer for you. – heynnema Jun 05 '21 at 17:02
  • @heynema, thank you for your support. i did the commands i will monitor the system for a day or two, if it doesn't happen again i will sure mark this answer as correct. – Arsenio Rechards Jun 05 '21 at 18:07
  • @heynema, Hi it just happened again while i was running a VM it also happens randomly even with no VM running. do you see any other thing in the log that might cause this? – Arsenio Rechards Jun 05 '21 at 19:49
  • Show me the `cat /etc/fstab` again, and upload /var/log/syslog to paste.ubuntu.com and give me the URL and I'll take a look for you. Ping me when it's done. – heynnema Jun 05 '21 at 20:15
  • i added the cat /etc/fstab to my question please check, for some reason i'm not able to post the log,i get an error bad gateway after i click paste can i share it with you another way? – Arsenio Rechards Jun 06 '21 at 00:39
  • @ArsenioRechards Your /etc/fstab is still showing 3 /swapfile lines. I thought that you had edited that. At paste.ubuntu.com you tried to paste your clipboard that contained the output of `cat /var/log/syslog`, yes? – heynnema Jun 06 '21 at 00:46
  • ,see url for pasted data https://paste.ubuntu.com/p/m7q8dyNJVX/ i removed the lines correctly – Arsenio Rechards Jun 06 '21 at 11:24
  • i also added another log please check, i only added the part where the machine froze, between 8.48 & 9:13, do see something that might cause the freeze? – Arsenio Rechards Jun 06 '21 at 12:27
  • https://paste.ubuntu.com/p/XgtZbZT4zk/ – Arsenio Rechards Jun 06 '21 at 12:38
  • @ArsenioRechards I'm still seeing "Jun 6 08:12:08 Aruntu kernel: [ 2.672474] systemd-fstab-generator[236]: Failed to create unit file /run/systemd/generator/swapfile.swap, as it already exists. Duplicate entry in /etc/fstab?" in syslog. Based on the last `cat /etc/fstab` that you showed me, it doesn't look like you removed the extra /swapfile lines. Am I missing something? – heynnema Jun 06 '21 at 15:03
  • @ArsenioRechards Have you installed/enabled zswap? – heynnema Jun 06 '21 at 15:04
  • @ArsenioRechards What video card? What version driver? Show me `sudo lshw -C video`. – heynnema Jun 06 '21 at 15:04
  • @ArsenioRechards Edit your question and show me `ls -al ~/.local/share/gnome-shell/extensions` and `ls -al /usr/share/gnome-shell/extensions`. – heynnema Jun 06 '21 at 15:07