AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1343894
Accepted
Arsenio Rechards
Arsenio Rechards
Asked: 2021-06-06 06:50:45 +0800 CST2021-06-06 06:50:45 +0800 CST 2021-06-06 06:50:45 +0800 CST

帮助理解日志

  • 772

刚刚安装了 Ubuntu 20.04。系统一直冻结,我必须使用电源按钮将其关闭并重新打开。有人可以帮我分析这个日志文件,如果我不知道有什么问题吗?

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] 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:~$

log
  • 1 1 个回答
  • 326 Views

1 个回答

  • Voted
  1. Best Answer
    heynnema
    2021-06-06T08:44:53+08:002021-06-06T08:44:53+08:00

    您的 /etc/fstab 不正确。

    它显示了 /swapfile 的三个条目...

    /swapfile                                 none            swap    sw              0       0
    /swapfile none swap sw 0 0
    /swapfile none swap sw 0 0
    

    使用应用程序编辑您的 /etc/fstab terminal,使用命令sudo -H gedit /etc/fstab,删除前两个 /swapfile 行,保留第三个 /swapfile 行,保存编辑的文件,然后重新启动。

    额外说明:不要使用badblocks或e2fsck损坏 SSD/nvme。

    更新#1:

    BIOS

    联想 V14-ADA

    您有版本 E8CN25WW,日期为 2020 年 10 月 13 日。有更新的 BIOS,版本 E8CN27WW,日期为 2021 年 2 月 5 日,可在此处下载。

    注意:确认我有适合您的型号的正确网页#。

    注意:在更新 BIOS 之前做好备份。

    交换

    你的 2G /swapfile 太小了。我们将它增加到4G...

    注意rm:和命令的错误使用dd会导致数据丢失。建议复制/粘贴。

    在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
    

    编辑 /etc/fstab,使用sudo -H gedit /etc/fstab或sudo pico /etc/fstab。

    在 /etc/fstab 中确认此 /swapfile 行...并确认没有其他“交换”行...在此行中使用空格...确认 NO TABS...

    /swapfile  none  swap  sw  0  0
    

    reboot                    # reboot and verify operation
    

    更新#2:

    这台计算机在 Ubuntu 和 Fedora 34 上死机。现在切换回 Windows。

    • 1

相关问题

  • Apache 和 PHP 日志文件在哪里?

  • 是否有以图形方式记录/显示文件系统 I/O 的应用程序?

  • 当应用程序崩溃而没有输出错误时,是否有我可以检查的日志?

  • 如何更改确定有效用户密码的规则?[关闭]

  • 我如何知道 Ubuntu 的安装日期?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve