更新 Ubuntu 后出现 initramfs 错误;不是 RAM

更新 Ubuntu 后出现 initramfs 错误;不是 RAM

我更新了 Ubuntu,重新启动后出现此错误屏幕:

在此处输入图片描述

到目前为止我尝试过的事情:

  • 从 USB 上的 Ubuntu Live 进行启动修复;没有变化;启动到各种恢复模式也无济于事。
  • Memtest 大约 90 分钟,未发现任何错误。
  • 完全更换 RAM;仍然没有区别。

我并不是害怕命令行,而是我对 Ubuntu 的了解不够深入。

df命令:

    Filesystem     1K-blocks    Used Available Use% Mounted on
udev             4038808       0   4038808   0% /dev
tmpfs             812256    1548    810708   1% /run
/dev/sdc1        7970032 1949540   6020492  25% /cdrom
/dev/loop0       1860480 1860480         0 100% /rofs
/cow             4061264  407568   3653696  11% /
tmpfs            4061264   46844   4014420   2% /dev/shm
tmpfs               5120       8      5112   1% /run/lock
tmpfs            4061264       0   4061264   0% /sys/fs/cgroup
tmpfs            4061264       0   4061264   0% /tmp
tmpfs             812252      52    812200   1% /run/user/999
/dev/loop1         93184   93184         0 100% /snap/core/6350
/dev/loop2         35456   35456         0 100% /snap/gtk-common-themes/818
/dev/loop3        144128  144128         0 100% /snap/gnome-3-26-1604/74
/dev/loop4          2304    2304         0 100% /snap/gnome-calculator/260
/dev/loop5         13312   13312         0 100% /snap/gnome-characters/139
/dev/loop6         14976   14976         0 100% /snap/gnome-logs/45
/dev/loop7          3840    3840         0 100% /snap/gnome-system-monitor/57
ubuntu@ubuntu:~$ 

fdisk-l:

Disk /dev/loop0: 1.8 GiB, 1905045504 bytes, 3720792 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop1: 91 MiB, 95408128 bytes, 186344 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop2: 34.6 MiB, 36216832 bytes, 70736 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop3: 140.7 MiB, 147496960 bytes, 288080 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop4: 2.3 MiB, 2355200 bytes, 4600 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop5: 13 MiB, 13619200 bytes, 26600 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop6: 14.5 MiB, 15208448 bytes, 29704 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop7: 3.7 MiB, 3878912 bytes, 7576 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/sda: 3.7 TiB, 4000787030016 bytes, 7814037168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: E69014CA-EC9D-4A42-A6E0-403744998B9B

Device     Start        End    Sectors  Size Type
/dev/sda1   2048       4095       2048    1M BIOS boot
/dev/sda2   4096 7814035455 7814031360  3.7T Linux filesystem




Disk /dev/sdb: 4.6 TiB, 5000981073920 bytes, 1220942645 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 268431360 bytes
Disklabel type: dos
Disk identifier: 0xa04a0c61

Device     Boot Start        End    Sectors  Size Id Type
/dev/sdb1         256 1220942591 1220942336  4.6T  7 HPFS/NTFS/exFAT


Disk /dev/sdc: 7.6 GiB, 8179140608 bytes, 15974884 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00433060

Device     Boot Start      End  Sectors  Size Id Type
/dev/sdc1  *     2048 15974883 15972836  7.6G  c W95 FAT32 (LBA)
ubuntu@ubuntu:~$ 

lsblk:

ubuntu@ubuntu:~$ sudo lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
loop0    7:0    0   1.8G  1 loop /rofs
loop1    7:1    0    91M  1 loop /snap/core/6350
loop2    7:2    0  34.6M  1 loop /snap/gtk-common-themes/818
loop3    7:3    0 140.7M  1 loop /snap/gnome-3-26-1604/74
loop4    7:4    0   2.3M  1 loop /snap/gnome-calculator/260
loop5    7:5    0    13M  1 loop /snap/gnome-characters/139
loop6    7:6    0  14.5M  1 loop /snap/gnome-logs/45
loop7    7:7    0   3.7M  1 loop /snap/gnome-system-monitor/57
sda      8:0    0   3.7T  0 disk 
├─sda1   8:1    0     1M  0 part 
└─sda2   8:2    0   3.7T  0 part 
sdb      8:16   0   4.6T  0 disk 
└─sdb1   8:17   0   4.6T  0 part 
sdc      8:32   1   7.6G  0 disk 
└─sdc1   8:33   1   7.6G  0 part /cdrom
sr0     11:0    1  1024M  0 rom  

答案1

由于您无法启动恢复模式,因此对于fsck您的文件系统...

  • 启动至 Ubuntu Live DVD/USB
  • 打开terminal窗户
  • 类型sudo fdisk -l
  • 识别“Linux 文件系统”的 /dev/XXXX 设备名称
  • 输入sudo fsck -f /dev/XXXX# 用你之前找到的数字替换 XXXX
  • 如果有错误,请重复 fsck 命令
  • 类型reboot

更新#1:

  • /dev/sda2 上的 fsck 很好
  • 计算机同时具有 -48 和 -50 内核,并且无法从其中任何一个启动
  • 我们更新了 -50 的 initrd.img 文件,没有帮助
  • -48 内核的 initrd.img 是 5 月 18 日的,所以它应该可以启动
    • -rw-r--r-- 1 root root 38477701 5月18日 10:37 initrd.img-4.15.0-48-generic
  • 两个选择:
    • 将 BIOS 从 2011 年的 A05 更新到 2017 年的 A20
    • 备份重要的 Ubuntu 文件并重新安装 Ubuntu

更新 #2:

  • BIOS 更新至 A20 未能解决问题

更新 #3:

  • Ubuntu 已重新安装
  • 但是它安装了错误版本的 GRUB,无法启动
  • boot-repair通过安装正确版本的 GRUB 解决了该问题
  • 用户应检查 BIOS 设置是否为 UEFI,然后擦除磁盘并重新安装 Ubuntu

相关内容