initramfs 解包失败解码失败:重新安装 Grub 后出错

initramfs 解包失败解码失败:重新安装 Grub 后出错

我有双启动 Windows/Ubuntu。尝试安装新的 M.2 驱动器后,我一定是碰到了 CMOS 或其他东西,我的 BIOS 中的 RAID 配置被重置了。所以我再次启用了 RAID,但我的 Ubuntu 启动选项消失了。经过一番谷歌搜索后,我尝试通过 Boot USB 重新安装 GRUB。我按照这个邮政

重新启动后,我得到一个 grub 启动菜单,我选择 Ubuntu,然后出现错误:“initramfs 解压失败,解码失败”。

谷歌搜索告诉我我需要切换COMPRESS=lz4COMPRESS=gzipetc/initramfs-tools/initramfs.conf。所以我通过加载 Boot USB、将我的 / 挂载到 /mnt 然后 chroot 进入它并编辑 intramfs.conf 来做到这一点。编辑后,我尝试运行update-initramfs -u并出现错误: W: Couldn't identify type of root file system for fsck hook

我的/etc/fstab

#
# 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>
/dev/mapper/isw_baffbgegbh_Volume1p8 /               ext4    errors=remount-ro 0       1
/dev/mapper/isw_baffbgegbh_Volume1p7 /home           ext4    defaults        0       2

swapfile                                 none            swap    sw              0       0

UUID=9932-D05E  /boot/efi       vfat    defaults      0       1

以及结果sudo blkid

/dev/mapper/isw_baffbgegbh_Volume1p4: UUID="362E787B2E7835C9" TYPE="ntfs" PARTUUID="874795c7-2c6a-46ff-8faf-e8ad85989fb6"
/dev/mapper/isw_baffbgegbh_Volume1p1: UUID="9932-D05E" TYPE="vfat" PARTLABEL="EFI System Partition" PARTUUID="bbc8664e-ba5d-4339-b008-52c7d888450e"
/dev/mapper/isw_baffbgegbh_Volume1p2: UUID="353eb09f-1019-4fe0-873b-9ac455b08552" TYPE="ext4" PARTLABEL="Microsoft reserved partition" PARTUUID="b4119b1b-7e2c-48b9-88e3-41e2e2bb9dcd"
/dev/mapper/isw_baffbgegbh_Volume1p3: UUID="B4AA01F3AA01B2C2" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="36c545d4-6661-471e-af41-c38a89b5e60d"
/dev/mapper/isw_baffbgegbh_Volume1p5: UUID="529AC9C19AC9A1B9" TYPE="ntfs" PARTUUID="97ddcbf6-2bfb-41da-84a9-34ea28d29dc9"
/dev/mapper/isw_baffbgegbh_Volume1p7: UUID="2d6df6f0-9df0-49e1-b847-122f9bfeeb5b" TYPE="ext4" PARTUUID="4fcdf3d2-6b29-4a2c-8063-0c2483cbb442"
/dev/mapper/isw_baffbgegbh_Volume1p8: UUID="bf7d70a7-c14c-4b5c-9b8e-176c2d3ce7c2" TYPE="ext4" PTTYPE="dos" PARTUUID="86bcd4af-de29-4dfd-9a23-b284ce2ea905"
/dev/sdb: TYPE="isw_raid_member"
/dev/sda: TYPE="isw_raid_member"
/dev/loop0: TYPE="squashfs"
/dev/loop1: TYPE="squashfs"
/dev/loop2: TYPE="squashfs"
/dev/loop3: TYPE="squashfs"
/dev/loop4: TYPE="squashfs"
/dev/loop5: TYPE="squashfs"
/dev/loop6: TYPE="squashfs"
/dev/loop7: TYPE="squashfs"
/dev/sdc2: SEC_TYPE="msdos" UUID="0D5F-1DB6" TYPE="vfat" PARTUUID="663eb4c4-02"
/dev/mapper/isw_baffbgegbh_Volume1: PTUUID="a58fcf30-f4d6-4d13-bb2b-28cf1a480e23" PTTYPE="gpt"
/dev/sdc1: UUID="2018-07-25-03-21-56-00" LABEL="Ubuntu 18.04.1 LTS amd64" TYPE="iso9660" PTUUID="663eb4c4" PTTYPE="dos" PARTUUID="663eb4c4-01"

因此,即使我更改 initramfs.conf 后重新启动并尝试启动,它仍然会失败并出现相同的错误。有人知道这个吗?我惊呆了。我不知道是某些 Windows 更新搞乱了一切,还是我忘记了 Linux 更新,但这真的很烦人。我可以正常启动 Windows。

相关内容