内核 5.4.0-51-generic 无法启动

内核 5.4.0-51-generic 无法启动

更新:在 Terrence 和 heynnema 的提示下,这个问题已经解决。内核 5.4.0-52 的更新可用,因此我从 /boot 中删除了内核 51 文件(小心地保留内核 48 文件),并允许更新程序运行。系统在 52 内核上启动正常。

我在华硕 PRIME X-470 Pro 主板上运行 AMD Ryzen 2400G。最近的更新给了我 5.4.0-51-generic,系统不再启动,而是进入 BusyBox 和 initramfs> 提示符。

恢复到 5.4.0-48-generic 工作。

现在有另一个可用的软件更新,但我需要保留 /boot 中的所有内容 5.4.0-48-generic,以防 5.4.0-whatevercomesnext-generic 也无法启动。

# dmidecode -s bios-version
5603
root@deepsky:~# free -h
              total        used        free      shared  buff/cache   available
Mem:           60Gi       2.0Gi        56Gi        81Mi       2.6Gi        58Gi
Swap:          62Gi          0B        62Gi
root@deepsky:~# lshw -c memory
  *-firmware                
       description: BIOS
       vendor: American Megatrends Inc.
       physical id: 0
       version: 5603
       date: 07/28/2020
       size: 64KiB
       capacity: 16MiB
       capabilities: pci apm upgrade shadowing cdboot bootselect socketedrom edd int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int9keyboard int14serial int17printer acpi usb biosbootspecification uefi
  *-memory
       description: System Memory
       physical id: 2e
       slot: System board or motherboard
       size: 64GiB
     *-bank:0
          description: DIMM DDR4 Synchronous Unbuffered (Unregistered) 2133 MHz (0.5 ns)
          product: CMK32GX4M2B3000C15
          vendor: Corsair
          physical id: 0
          serial: 00000000
          slot: DIMM_A1
          size: 16GiB
          width: 64 bits
          clock: 2133MHz (0.5ns)
     *-bank:1
          description: DIMM DDR4 Synchronous Unbuffered (Unregistered) 2133 MHz (0.5 ns)
          product: CMK32GX4M2B3000C15
          vendor: Corsair
          physical id: 1
          serial: 00000000
          slot: DIMM_A2
          size: 16GiB
          width: 64 bits
          clock: 2133MHz (0.5ns)
     *-bank:2
          description: DIMM DDR4 Synchronous Unbuffered (Unregistered) 2133 MHz (0.5 ns)
          product: CMK32GX4M2B3000C15
          vendor: Corsair
          physical id: 2
          serial: 00000000
          slot: DIMM_B1
          size: 16GiB
          width: 64 bits
          clock: 2133MHz (0.5ns)
     *-bank:3
          description: DIMM DDR4 Synchronous Unbuffered (Unregistered) 2133 MHz (0.5 ns)
          product: CMK32GX4M2B3000C15
          vendor: Corsair
          physical id: 3
          serial: 00000000
          slot: DIMM_B2
          size: 16GiB
          width: 64 bits
          clock: 2133MHz (0.5ns)
  *-cache:0
       description: L1 cache
       physical id: 30
       slot: L1 - Cache
       size: 384KiB
       capacity: 384KiB
       clock: 1GHz (1.0ns)
       capabilities: pipeline-burst internal write-back unified
       configuration: level=1
  *-cache:1
       description: L2 cache
       physical id: 31
       slot: L2 - Cache
       size: 2MiB
       capacity: 2MiB
       clock: 1GHz (1.0ns)
       capabilities: pipeline-burst internal write-back unified
       configuration: level=2
  *-cache:2
       description: L3 cache
       physical id: 32
       slot: L3 - Cache
       size: 4MiB
       capacity: 4MiB
       clock: 1GHz (1.0ns)
       capabilities: pipeline-burst internal write-back unified
       configuration: level=3
root@deepsky:~# ls -alh /boot
total 127M
drwxr-xr-x  3 root root 4.0K Oct 19 08:27 .
drwxr-xr-x 25 root root 4.0K Sep  9 13:58 ..
-rw-r--r--  1 root root 233K Sep 10 03:12 config-5.4.0-48-generic
-rw-r--r--  1 root root 233K Oct  5 06:34 config-5.4.0-51-generic
drwxr-xr-x  4 root root 4.0K Oct 15 06:28 grub
lrwxrwxrwx  1 root root   27 Oct 14 06:25 initrd.img -> initrd.img-5.4.0-51-generic
-rw-r--r--  1 root root  48M Oct  6 07:53 initrd.img-5.4.0-48-generic
-rw-r--r--  1 root root  48M Oct 14 06:25 initrd.img-5.4.0-51-generic
lrwxrwxrwx  1 root root   27 Oct 14 06:25 initrd.img.old -> initrd.img-5.4.0-48-generic
-rw-r--r--  1 root root 179K Aug 18 03:46 memtest86+.bin
-rw-r--r--  1 root root 181K Aug 18 03:46 memtest86+.elf
-rw-r--r--  1 root root 181K Aug 18 03:46 memtest86+_multiboot.bin
-rw-------  1 root root 4.6M Sep 10 03:12 System.map-5.4.0-48-generic
-rw-------  1 root root 4.6M Oct  5 06:34 System.map-5.4.0-51-generic
lrwxrwxrwx  1 root root   24 Oct 14 06:25 vmlinuz -> vmlinuz-5.4.0-51-generic
-rw-------  1 root root  12M Sep 10 03:36 vmlinuz-5.4.0-48-generic
-rw-------  1 root root  12M Oct  5 06:54 vmlinuz-5.4.0-51-generic
lrwxrwxrwx  1 root root   24 Oct 14 06:25 vmlinuz.old -> vmlinuz-5.4.0-48-generic
root@deepsky:~# exit

% grep -i swap /etc/fstab
# swap was on /dev/sda3 during installation
UUID=5c04123d-f760-4e3a-8e04-88ad2671dc38 none   swap     0       0

答案1

部分答案...即将编辑...

BIOS

华硕 PRIME X-470 Pro

您的 BIOS 当前版本为 5603。

/boot/initrd.img-5.4.0-51-通用

此文件可能已损坏。最好的重建它的方法是,启动到 -48 内核并:

sudo update-initramfs -c -k 5.4.0-51-generic

然后重新启动到-51内核。

记忆测试

Ryzen 处理器因内存兼容性问题而臭名昭著,因此......

https://www.memtest86.com/并免费下载/运行它们memtest来测试您的记忆力。至少完成一次所有 4/4 测试以确认记忆力良好。对于 64G RAM,这将需要几个小时才能完成。

交换

您有 64G RAM 和 60G 交换空间,除非您处于休眠状态,否则这对于交换空间来说太多了。我们将讨论一些不同的大小。请告诉我grep -i swap /etc/fstab

更新#1:

看来 -51 内核对你来说有问题。我们删除了它并重新运行Software Updater,它安装了 -52 内核,现在一切正常。

相关内容